lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject How does MultiFieldQueryParser work? Any example showing its mechanism please
Date Fri, 24 Aug 2018 21:26:22 GMT

  i am trying to understand what this api does and it seems

it decomposes the input string by spaces and OR's them and then 
depending on occur field setting the whole OR'ed expression is either 
under "+" (i.e,must) or just OR'ed again.

Such as:

input string abc def

occur values are : must, should

there are two fields to search

then query string is +(field1:abc field1:def) (field2:abc field2:def)

i want to search abc def in field1 such that abc must def should and 
also abc should def must again in field1.

if i cant find anything i can try the above query string then.

Best regards

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message