Issue with has_parent query with score_type "score"

Hi,

I've come across an issue when attempting to query with has_parent.
Specifically it seems to be an issue when you have multiple child documents
and add "score_type": "score".

I've created a gist with a simple example using properties and people.

123 Fake St
-> John Smith
-> Bob Jones
-> Rob Bardon

Querying for "John Smith" with a parent "123 Fake St" returns "John Smith"
as expected.
Querying for "Bob Jones" with a parent "123 Fake St" returns no results. If
I remove the "score_type" it returns "Bob Jones" as expected.

ES Version: 0.90.0 and 0.90.2

Java Version:
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Am I doing something wrong? Is there a better way to construct the query?
In reality I'll have multiple search terms against a person's name (hence
the min should match) as well as the address and I want to order by best
match against both parent and child.

Cheers,
Nathan

--
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.