Main query parameters
- DB
- database name. If the DB parameter is specified more than once, each value is used to allow searching over multiple databases. Also, the value of each DB parameter may be a list of database names separated by "/". If no DB parameters are specified, then the database name defaults to default. If you want to search over a combination of databases by default then you can make the default database a stub database file - see the "Overview" document in xapian-core for details of the format.
- xDB
- database(s) used for last query (separated by / if appropriate). If the database(s) used change then relevance judgements are discarded and the first page of matches is shown. If xDB is not set, the database is assumed not to have changed, which means if you only deal with one database you don't have to pass a useless extra parameter around.
- DEFAULTOP
- default operator - values recognised AND, and, OR, or. As of version 1.3.0, the default is AND (previously it was OR). If you want to implement "match any words", set DEFAULTOP=or.
- P
- query string to parse (may occur multiple times - if so, each will be parsed and the results combined with OP_AND).
- P.PREFIX
- like P, but parsed with the default prefix set to PREFIX. For example, P.A will search the author by default.
- xP
- terms from the previous parsed query - used to decide if this is a fresh query (in which case relevance judgements are discarded and the first page of matches is shown), an extended query (in which case the first page of matches is shown), or an unchanged query.
- ADD
- if present, any X parameters are appended to the value of the first non-empty P parameter, or used to build a query if there are no non-empty P parameters (used for topterms support when JavaScript isn't supported or is disabled).
- X
- topterms to add to query (each term in a separate X parameter). If ADD is set, these will be appended to the value of the first non-empty P parameter, or used to build a query if there are no non-empty P parameters.
- R
- relevant document(s) (multiple values separated by ".")
- MORELIKE
value is a numeric Xapian document id to return similar pages to, or a term name (which will be looked up and the document id of the first document it indexes will be used - this allows a MORELIKE query based on the unique id from an external database).
Since Omega 1.4.18, MORELIKE queries are built with explicit OR operators if DEFAULTOP isn't OR (which it isn't by default since 1.3.0).
Also since Omega 1.4.18, MORELIKE can be specified multiple times to find more documents like a specified set of documents. In earlier versions, only one of the values would be used in this case.
- RAWSEARCH
- when set to non-zero value, this prevents TOPDOC being snapped to a multiple of HITSPERPAGE. Normally we snap TOPDOC like this so that things work nicely if HITSPERPAGE is in a picker or on radio buttons. If we're postprocessing the output of omega and want variable sized pages, this is unhelpful.
- MINHITS
- can be set to look for more matches than would otherwise be looked for to you can be sure how many more consecutive pages will definitely be needed to show results. By default omega asks for one hit more than the last one displayed on this page (so we know for sure if there is a next page or not). If MINHITS is set, we ask for at least MINHITS matches from the start of the current page - you can think of MINHITS as defaulting to (HITSPERPAGE + 1).