It simply comes down to the matter of whether you commonly use two (or more) constraints at the same time, or if selection of the multiple constraints are independent. If you commonly use them together, combine them into one filter query. If you commonly pick and choose what constraints to apply, make them separate filter queries.

-- Jack Krupansky

-----Original Message----- From: geeky2
Sent: Tuesday, March 12, 2013 12:48 AM
To: solr-user@lucene.apache.org
Subject: Re: question about syntax for multiple terms in filter query

otis and jack -

thank you VERY much for the feedback -

jack -


use a single fq containing two mandatory
clauses if those clauses appear together often
<<

this is the use case i  have to account for - eg,

right now i have this in my request handler

<requestHandler name="partItemNoSearch" class="solr.SearchHandler"
default="false">
     ...
     <str name="fq">itemType:1</str>
     ...
</requestHandler>

which says - i only want parts

but i need to augment the filter so only parts that have a price >= 1.0 are
returned from the request handler

so i believe i need to have this in the RH
<requestHandler name="partItemNoSearch" class="solr.SearchHandler"
default="false">
     ...
     <str name="fq">+itemType:1 +sellingPrice:[1 TO *]</str>
     ...
</requestHandler>

thx
mark







--
View this message in context: http://lucene.472066.n3.nabble.com/question-about-syntax-for-multiple-terms-in-filter-query-tp4046442p4046548.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to