Hi,
First, sorry for my poor english, not my primary langage.
Then, this is my problem.
I used the missing syntx in 2.4.1 and it works well, but now i cant make it work for 5.0.1
For exemple, i have 100 documents, 55 with an existing "color" field, 45 with not.
if my request is
{
"size" : 50,
"_source":["color"],
"query" : {
"bool" : {
"filter" : [
{
"query_string" : {
"query" : " _exists_:color",
"fields" : [ ],
"use_dis_max" : true,
"tie_breaker" : 0.0,
"default_operator" : "or",
"auto_generate_phrase_queries" : false,
"max_determined_states" : 10000,
"lowercase_expanded_terms" : true,
"enable_position_increment" : true,
"fuzziness" : "AUTO",
"fuzzy_prefix_length" : 0,
"fuzzy_max_expansions" : 50,
"phrase_slop" : 0,
"locale" : "und",
"escape" : false,
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"ext" : { }
}
I will see the 55 documents that i need.
But if my querystring is :
"query" : " _missing_:color"
i will see 0 documents.
Am i using the wrong syntax ?
How can i do this to work ?
Thanks in advance.
Trynar.
PS : for my use, i have to do it with querystring, i just let the simple example to be more understandeable, but i cant go without querystring for my use.