Can I sort has_child query result by child's numeric field?

(fiefdx yang) #1

I found this:

it use custom_score, but it can not work at version 1.2.1.
I try to use function_score, but get exception:
nested: PropertyAccessException[[Error: could not access: offer; in class:]\n[Near : {...
doc[offer.price].value ....}
"offer" is the child's index type.
Please some one know that, help me, thanks!

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
To view this discussion on the web visit
For more options, visit

(system) #2