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/fc443609-1208-4412-bfdd-40a788f4a58a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to