Hi GX, “term" query does NOT analyzed your string. See: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-term-query.html#query-dsl-term-query
On the other hand, “query_string” query analyze your string. If you want to know the difference, you can use _validate API. See : http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-validate.html#search-validate Example commands are as follows: GET hoge/fuga/_validate/query?explain { "query": { "term": { "ac": "3A822F3B-3ECF-4463-98F86DF6DE28EC5C" } } } GET hoge/fuga/_validate/query?explain { "query": { "query_string" : { "default_field" : "ac", "query" : "3A822F3B-3ECF-4463-98F86DF6DE28EC5C" } } } I hope that those help you out. ------------ Jun Ohtani joht...@gmail.com blog : http://blog.johtani.info twitter : http://twitter.com/johtani > 2014/11/21 14:45、GX <mailme...@gmail.com> のメール: > > Hi All > > Im having the following scenario (elasticsearch 1.0): > the query > "query": { > "term": { > "ac": "3A822F3B-3ECF-4463-98F86DF6DE28EC5C" > } > } > > yields no results > > but this works > > "query": { > "query_string" : { > "default_field" : "ac", > "query" : "3A822F3B-3ECF-4463-98F86DF6DE28EC5C" > } > } > > the problem is when I combine it with a "must_not" or "not" filter I still > get the same results > > what is the correct syntax I need? > > Thanks > > GX > > -- > 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/a1f4c507-f85a-4ebd-b71f-4962259abf5a%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/634B3D51-39A8-469D-938A-A6F5BCDA2D67%40gmail.com. For more options, visit https://groups.google.com/d/optout.