Thanks Ivan for the tip, but I think the boost_mode is just fine in my queries. The problem is that I only can access the field of the child document, if I have an additional bool part query with the has_child query inside. This causes the sum. The custom score is multiplied with the has_child query score that is correct.
I also think that this is a bug.. Thanks, Csaba 2014. június 6., péntek 18:52:39 UTC+2 időpontban Ivan Brusic a következőt írta: > > Did you change the boost_mode of your function score script? The default > should be "multiply", which is the behavior you want, not "sum", which is > what you are experiencing. > > > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html > > I have never used it with nested documents, so perhaps it is a bug (or a > feature :) ) > > -- > Ivan > > > On Fri, Jun 6, 2014 at 3:55 AM, Csaba Dezsényi <[email protected] > <javascript:>> wrote: > >> I could find only one related post: >> >> https://groups.google.com/forum/#!msg/elasticsearch/EGCeJZbhVtA/i32ROGVmFswJ >> But this has different question... >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/6152742a-4d32-47a4-890d-49cd6a4dd291%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/6152742a-4d32-47a4-890d-49cd6a4dd291%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/f5b5354c-9849-4e7b-a171-33fd63b907cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
