When I do this request, I can get mappings of the index:
GET /users
And it returns this:
{
"user":{
"mappings":{
"skill":{
"properties":{
...
"Rouge":{
"type":"float"
},
"Ruby":{
"type":"float"
},
"Rust":{
"type":"float"
},
"SAS":{
"type":"float"
},
"SASS":{
"type":"float"
},
"SCSS":{
"type":"float"
},
...
"settings":{
"index":{
"creation_date":"1584415338201",
"number_of_shards":"5",
"number_of_replicas":"0",
"provided_name":"user"
}
}
}
}
}
}
}
The problem is, some of the fields are empty and I want to find them.
For example no one has a value for Ruby. If I can specifically search for a field to see if it is empty/null I can do it, but I need a query to find all the empty fields, which unfortunately I couldn't find anything online.
Of course I can get all the fields and run an empty-check query on all of them, but it is probably a bad idea. Do you know how to do it better?
I am using version 6.8.
Rubynever has a value for any document it counts, but ifRougehad a value for one doc it doesn't countRubyin the results if there are no documents withRubyvalue regardless of other fields. Assume that I have 3 fields (let's sayA,BandC) and there are 3 docs, 1 hasAandBvalue, 1 has onlyAand 1 has onlyBvalue. In this case I expect to seeCin the result, because no document has a value forC.