Comment 2 for bug 236947

Revision history for this message
solrize (solrize) wrote : Re: search API improvements

How does this look as an expanded search api:

q is a dictionary (json formatted) contains the following fields:

offset :: Integer -> result number to start at, default 0
rows :: Integer -> number of rows to return, default 20

EXACTLY ONE OF:
query :: String -> basic query string ("basic query" means cross-field)
advanced_query :: dictionary

The advanced query dictionary would be something like the above. We could make a syntax for Boolean combinations.

Another (simpler) approach would be to just use a string in Lucene syntax, but we may not want to always stay with that.