Conjunction of queries

Hey guys,

I have a query in the form : ((field1:a OR field2:i*) AND (f5:x OR f6:y OR)) OR test:y

I know I can do this with query string, but if the value to query has 'or' or 'and' as it's prefix, it returns all possible values for that field. Is there any other way for me to write this other than query_string

Youc an build the query yoursearch using a combination of bool queries and
text queries on the relevant fields.

On Thu, Apr 5, 2012 at 6:00 PM, android orcunsimsek@gmail.com wrote:

Hey guys,

I have a query in the form : ((field1:a OR field2:i*) AND (f5:x OR f6:y
OR))
OR test:y

I know I can do this with query string, but if the value to query has 'or'
or 'and' as it's prefix, it returns all possible values for that field. Is
there any other way for me to write this other than query_string

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/conjunction-of-queries-tp3887473p3887473.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.