Hi,
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.
Thanks,
Nicolas
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d64c1df7-0fef-4614-940b-94b7c5b87654%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.