Set default_operator to AND, except in field queries


I wonder if I can set the default operator to AND, except in field queries.

The goal is for the user to write something like: "roger moore
tags:(marketing twitter)", and it would be translated to "roger AND moore
AND tags:(marketing OR twitter)".

I know I can do it with term filters. "roger moore" would be the query
string and the tags would be in term filters.

But in my app, I need the user to be able to type the query in a text
field, and I wonder if I really have to make a parser to translate the user
queries, or there is an option to support this in ElasticSearch.


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit