Use a SQL backend and document it for clients to write search API requests that are SQL oriented.