I am looking at parsing boolean query strings as below :
condition 1 AND conditon2 OR condition3 NOT (condition 4 AND condition5 NOT condition6) AND condition7
Can someone suggest if there is already a boolean query parser that would break down the above query into tokens? Or I will have to manually break the above string into tokens?
Also BoolQueryBuilder class has MUST, MUST NOT and Should.
Can someone tell me the difference between MUST and SHOULD?
What could one use for OR condition?
Please advice. Thanks!