Has_parent does not support filter

Hello, I'm new to ElasitcSearch and struggling a bit trying to learn the
query syntax. Spent ages trying to get a query working that searches
children and uses a filter on parent, specifically find all persons named
Jim within a given geo distance of a branch location, like this:

/_search
{
"query" : {
"filtered": {
"query": {
"match" : {
"person_name": "jim"
},
"filter" : {
"has_parent" : {
"type" : "branch",

"filter" : {
"geo_distance" : {
"distance" : "5mi",
"location" : {
"lat" : 40.00,
"lon" : -74.00
}
}
}
}
}
}
}
}
}

This gives an error that has this in it: nested:
QueryParsingException[[places] [has_parent] query does not support
[filter]]
.
But this page:
http://www.elastic.co/guide/en/elasticsearch/reference/1.3/query-dsl-has-parent-filter.html
seems to say that this is valid syntax. Confused over what syntax is
allowed where. How would I do a query like this? Is it even possible? I
don't really want to try de-normalizing all my data, just too much of it.

The geo location part by itself as a query works fine, it seems any kind of
filter inside has_parent gives the same error.

Also, pretty minor, but is there any way to strip off all those literal
'\n' and '\t' characters that are in my nicely formatted request but are
then returned in the 400 error response? 90% of my responses right now are
errors while I learn this stuff and they make it hard to read! Without them
the response would be much easier to read in a json formatter such as one
of the chrome plugins.

--
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/2301a7e5-e718-4965-8527-1a200be55efe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.