On 1/12/07, Apache Wiki <[EMAIL PROTECTED]> wrote:
The following page has been changed by ThorstenScherler:
http://wiki.apache.org/solr/CommonQueryParameters

- This param can be specified multiple times, and the filters are additive.
+ This param can be specified multiple times, and the filters are additive. Do 
not try to add more then one filter to each fq, since only the first one will 
be taken. So instead of {{{
+ fq=date:[* TO 26-10-2006] section:0}}} you need to use {{{
+ fq=date:[* TO 26-10-2006]&fq=section:0}}}

Actually, that's not quite right... you can add multiple clauses to a single fq.
Your example fq is in lucene query syntax and thus means
date:[* TO 26-10-2006] OR section:0
You could do fq=+date:[* TO 26-10-2006] +section:0
and that would be functionally equivalent to
fq=date:[* TO 26-10-2006]&fq=section:0

The difference comes mostly in caching... 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 of
they were relatively independent.

-Yonik

Reply via email to