How does MultiFieldQueryParser work? Any example showing its mechanism please

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How does MultiFieldQueryParser work? Any example showing its mechanism please

baris.kazar
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: [hidden email]
For additional commands, e-mail: [hidden email]