Excluding Terms Using a Minus Sign

Is there a way to exclude a term if the user precedes it with a minus sign;
the way google does. For example, if I want to search for the word lovre,
but I don't want the museum in France, I can search for:
louve -museum as my search terms. Does ES support this? I am not finding
anything like that in the documentation.

Thanks All!

--
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/b7e7fa83-332f-4fc9-a704-5abccb2d9856%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes simple query string query supports this.
See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#query-dsl-simple-query-string-query

David

Le 15 janv. 2015 à 20:37, Cindy Conway cindyannconway@gmail.com a écrit :

Is there a way to exclude a term if the user precedes it with a minus sign; the way google does. For example, if I want to search for the word lovre, but I don't want the museum in France, I can search for:
louve -museum as my search terms. Does ES support this? I am not finding anything like that in the documentation.

Thanks All!

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/b7e7fa83-332f-4fc9-a704-5abccb2d9856%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/483A7A3D-24E0-4292-B156-55DD3874AEA5%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.