How is possible find a data when a long value is null?
I try to do this, but an error occurs:
{
"query":{
"bool":{
"must":[
{
"term":{
"account":123
}
},
{
"term":{
"codoperator":null
}
}
]
}
},
"size":10000,
"sort":{
"name":{
"order":"asc"
}
}
}
This is the error:
{
"error":{
"root_cause":[
{
"type":"illegal_argument_exception",
"reason":"field name is null or empty"
}
],
"type":"illegal_argument_exception",
"reason":"field name is null or empty"
},
"status":400
}