Hi, I am trying to apply the custom filter score to a filtered query. The filtered query works fine, but when I wrap the custom filter score with filters around it it gives me error. Listed below is the query. Can someone tell me what's wrong with it?
POST _search
{
"query":
{
"custom_filters_score":
{
"query":
{
"filtered":
{
"query":
{
"match_all": {}
},
"filter":
{
"or":
[
{
"geo_distance" :
{
"distance" : "20km",
"senGeoPointLst" :
{
"lat" : 31.8655875846,
"lon" : 65.8461840664
}
}
},
{
"geo_distance" :
{
"distance" : "20km",
"fcGeoPointLst" :
{
"lat" : 88.1,
"lon" : -120.1
}
}
}
]
}
}
},
" filters":
[
{
"geo_distance" :
{
"distance" : "20km",
"fcGeoPointLst" :
{
"lat" : 88.1,
"lon" : -120.1
}
},
"boost":3
}
]
}
}
}
The error I get is :QueryParsingException[[hws] [custom_filters_score]
query does not support [ filters]]; }]",
Thanks!
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0f7141d1-bb1f-49b5-ac5b-a4dc0c785138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
