Coder,

Your query is probably working properly. The explain does not show your 
custom score script logic but it should still be working as expected. You 
can verify it easily by changing your script logic. For example:

Try:

String script = "doc['po'].empty ? 1000 : doc['po'].value";

And you'll see that the actual score of the document is the value of your 
po field. (or 1000 if it doesn't exist).

-- 
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/0e86cfc2-b19e-4662-86e6-aede06743d9f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to