I am not sure AND has a higher priority than OR in Lucene. I would try
"grouping":
"some AND (random OR other)"
-- Raffaele
On Tue, Nov 6, 2012 at 1:59 PM, gchen kevinch84@gmail.com wrote:
Hi,
I'm trying to do text search with boolean using QueryString query but it's
not hehaving as expected.Let's say i have a field call *headline *in my database and i have the
following two headlines...headline 1: "some random headline"
headline 2: "some other headline"{"query_string":{
"default_field":"headline",
"query":"some AND random OR other"}
}The above query should return both docs right? If not, what is wrong with
my query?If i can change the query to "some OR random OR other", then it does
return both docs, but why didn't the AND work?Thanks in advance for the help.
--
--