Imagine that we have a nested field adress : adress.street, adress.zipCode
I cannot use a missing filter on adress :
{
"query": {
"constant_score": {
"filter": {
"missing": {
"field": "adress"
}
}
}
}
}
nor on sub-fields :
{
"query": {
"constant_score": {
"filter": {
"missing": {
"field": "adress.zipCode"
}
}
}
}
}
Imagine that we have a nested field adress : adress.street, adress.zipCode
I cannot use a missing filter on adress :
{
"query": {
"constant_score": {
"filter": {
"missing": {
"field": "adress"
}
}
}
}
}
nor on sub-fields :
{
"query": {
"constant_score": {
"filter": {
"missing": {
"field": "adress.zipCode"
}
}
}
}
}
I'm sorry but I'm not sure to understand. Actually I did not use any
specific mapping. I just index the structure described in my post.
I've read and read and read again the documentation and I really don't get
how to make the missing filter working for that structure. Can you post any
example ?
I'm sorry but I'm not sure to understand. Actually I did not use any
specific mapping. I just index the structure described in my post.
I've read and read and read again the documentation and I really don't get
how to make the missing filter working for that structure. Can you post any
example ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.