Function score query does NOT replace boost field well - how to access child's fields?!

Hello

Boost field is deprecated since ES 1.0.0 so I've decided to change it to
the function score query as suggested in the docs.

So I tried to change this:

Into this:

The problem is that i can't use child's fields inside the top_children
query. How should I handle this?

Thanks in advance

Paweł Młynarczyk

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4d68bab8-30cf-4382-bf78-36753b9f3ca6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.