You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/05/14 20:01:42 UTC

[Solr Wiki] Update of "CommonQueryParameters" by HossMan

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

------------------------------------------------------------------------------
  "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.
  
- This param can be specified multiple times, and the filters are additive.{{{
+ This param can be specified multiple times, and the filters are additive. A single fq value of
+ '''{{{+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
- fq=+popularity:[10 TO *] +section:0}}} is equivalent to {{{
- fq=popularity:[10 TO *]&fq=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
+ former if those clauses appeared together often, and the latter if they were relatively independent.
- they were relatively independent.
  
  == fl ==