Narinder,
Can you try changing the script to boost for each of your filters.
Something like this:
"filters": [
{
"filter": {
"term": {
"subtype": "GeoNeighborhood"
}
},
"boost": 1
},
{
"filter": {
"term": {
"subtype": "GeoCity"
}
},
"boost": 100
},
{
"filter": {
"term": {
"subtype": "GeoState"
}
},
"boost": 10000
},
{
"filter": {
"term": {
"subtype": "GeoCountry"
}
},
"boost": 1000000
}
],
--
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/a48edebe-ffcd-44f8-863a-1ae917563aa5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.