You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ba...@oracle.com on 2018/08/24 21:26:22 UTC
How does MultiFieldQueryParser work? Any example showing its
mechanism please
Hi,-
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org