Ahh, thanks. Thought as much about the normalization. Can it be turned off 
anywhere except in the mapping?
Function score works with boost_mode=replace!

On Friday, May 9, 2014 3:04:57 PM UTC+2, Binh Ly wrote:
>
> For the first one, you are probably experiencing score normalization 
> happening. If you add explain: true to the query, it will tell you how it 
> is being normalized.
>
> For the second one, if you want the function_score to totally override the 
> Lucene score, you can "replace" the Lucene score with whatever comes out of 
> the function_score:
>
> {
>   "query": {
>     "function_score": {
>       "query": {...}
>       },
>       "script_score": {
>         "script": "3"
>       },
>       "boost_mode": "replace"
>     }
>   }
> }
>

-- 
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/6c998b20-5db2-49f7-acfa-eb8569c28953%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to