Vinoth,

When you access _source.X in a script, the _source field is loaded per doc, 
parsed, and then provided to the script. Depending on how many documents 
you are hitting, it can be slow if there are a lot.

The document _boost should already be factored into the score, but if you 
need to extract a numeric boost value and make it part of your script, try 
using doc["boostfield"].value, instead of _source.boostfield. That way, the 
values are loaded into memory and would perform better. Just be aware that 
it will take up some memory.

-- 
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/2788e9f4-4532-46dc-971b-77ec54585faa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to