Using a query string query -cat should work. David
> Le 8 févr. 2015 à 14:36, NM <n.maisonne...@gmail.com> a écrit : > > hi , > > How to formulate a negative query in ES that matches : all the documents that > don't have the word "cat' in the title? > > thanks > > NM > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/baf37d43-867d-4717-8a1d-bb77add2ab4b%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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7D43F995-C376-4035-9939-7669C7035090%40pilato.fr. For more options, visit https://groups.google.com/d/optout.