Has_parent not working for me

I'm probably doing something wrong, but I can't figure out what!

Index and query script
http://pastebin.com/vjLREEzE

Results
http://pastebin.com/C7ypv4uX

I was expecting the second query to list the book id=2 : 'Guns and lasers'.
Can somebody help me out?

Tested on 0.90.0-Beta1

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

query books script - Pastebin.com

I was expecting the second query to list the book id=2 : 'Guns and
lasers'. Can somebody help me out?

Your query is querying type 'books', but the type is actually 'book'

clint

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

I know I was being really stupid! Thanks!
Jaap Taal

[ Q42 BV | tel 070 44523 42 | direct 070 44523 65 | http://q42.nl |
Waldorpstraat 17F, Den Haag | Vijzelstraat 72 unit 4.23, Amsterdam |
KvK 30164662 ]

On Thu, Mar 21, 2013 at 4:50 PM, Clinton Gormley clint@traveljury.com wrote:

query books script - Pastebin.com

I was expecting the second query to list the book id=2 : 'Guns and
lasers'. Can somebody help me out?

Your query is querying type 'books', but the type is actually 'book'

clint

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

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