Thanks for the clarification Jörg. Do you have any guidance on
dis_max([multiple fields]) vs _all with appropriate include_in_all in the
mapping?
Mike.
On Wednesday, October 23, 2013 3:16:45 AM UTC-4, Jörg Prante wrote:
With scripting, you burn a lot of CPU. You are not quite right about the
index sitting in memory. Maybe it fits in filesystem cache but your use
case is another one, that is, loading the index docs into the heap to
compute scores and boosts. The hot thread at least shows the script runs
through all the docs loading fields. Doc fetching is expensive. Scripts are
working like this: traversing through all(!) hits of a query, fetching all
docs, and loading required fields into the heap, which takes a lot of
resources, and that is why scripts are always second choice in my eyes.Yes, boosting at document level when indexing is way more efficient.
The less filters you use the faster the response is.
Jörg
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.