Thanks for the reply,But I have a lot of others scoring filters too which 
are further complicated. So I just saw the score reaching to infiinity, and 
sorting was a mess then. I can not use this, So my priority is to 
understand this logic instead of using this trick. I need to understand how 
these two scoring mechanism are being combinded to give final scoring.

On Thursday, 30 January 2014 19:05:38 UTC+5:30, Binh Ly wrote:
>
> 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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2641c9e2-1f4f-4be5-a8aa-1ddb0031c2c2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to