Use fq 

Bill Bell
Sent from mobile


> On Sep 23, 2015, at 1:00 PM, Andreas Hubold <andreas.hub...@coremedia.com> 
> wrote:
> 
> Hi,
> 
> we're using Solr 4.10.4 and the dismax query parser to search across multiple 
> fields. One of the fields is configured with a StandardTokenizer (type 
> "text_general"). I set mm=100% to only get hits that match all terms.
> 
> This does not seem to work for queries that are split into multiple tokens. 
> For example a query for "CC-WAV-001" (tokenized to "cc", "wav", "001") 
> returns documents that only have "cc" in it. I need a result with documents 
> that contains all tokens - as returned by the /select handler.
> 
> Is there a way to force AND semantics for such dismax queries? I also tried 
> to set q.op=AND but it did not help.
> 
> The query is parsed as:
> 
> (+DisjunctionMaxQuery(((textbody:cc textbody:wav textbody:001) | 
> productCode:CC-WAV-001)~0.1) DisjunctionMaxQuery((textbody:"cc wav 
> 001")~0.1))/no_coord
> 
> Thanks in advance!
> 
> Regards,
> Andreas

Reply via email to