Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by HossMan: http://wiki.apache.org/solr/CommonQueryParameters ------------------------------------------------------------------------------ [[TableOfContents]] + [[Anchor(sort)]] == sort == Handlers that support sorting including DisMaxRequestHandler and the StandardRequestHandler use a common parameter "sort" @@ -19, +20 @@ Other then the optional sort specification the only difference between how this query string is parsed, and how the Lucene !QueryParser works, is that by default, the Solr !QueryParser uses constant score variations of Range and Prefix queries by default, so you don't need to worry about the dreaded "Too Many Clauses" exception. Open-ended range queries are also supported by using "*" as an end-point. [added in Solr 1.2 for StandardRequestHandler] + [[Anchor(start)]] == start == This parameter is used to paginate results from a query. When specified, it indicates the offset in the complete result set for the queries where the set of returned documents should begin. The default value is "`0`". + [[Anchor(rows)]] == rows == This parameter is used to paginate results from a query. When specified, it indicates the maximum number of documents from the complete result set to return to the client. The default value is "`10`" - + [[Anchor(fq)]] == fq == "fq" stands for filter query. This parameter can be used to specify a raw lucene query that can be used to restrict the super set of documents that can be returned, without influence score. It can be very useful for speeding up complex queries since they queries specified with fq are cached independently from the main query. @@ -40, +43 @@ '''{{{+popularity:[10 TO *] +section:0}}}''' is equivalent to two instances of fq with the values '''{{{popularity:[10 TO *]}}}''' and '''{{{section:0}}}'''. fq's are cached independently, so for best efficiency, one would want to use the former if those clauses appeared together often, and the latter if they were relatively independent. + [[Anchor(fl)]] == fl == This parameter can be used to specify a set of fields to use to limit the amount of information in the response. When returning the results to the client, only fields in this list will be included. @@ -59, +63 @@ The default value is "`*`" + [[Anchor(debugQuery)]] == debugQuery == If this parameter is present (regardless of its value) then additional debugging information will be included in the response, including "explain" info for each of the documents returned. This debugging info is meant for human consumption... its XML format could change in the future. The default behavior is not to include debugging info. + [[Anchor(explainOther)]] == explainOther == This parameter allows clients to specify a Lucene query to identify a set of documents. If non-blank, the explain info of each document which matches this query, relative the ''main query'' (specified by the q parameter) will be returned along with the rest of the debugging information.
