Re: exist filter also matching on nested fields

2015-02-10 Thread Jilles van Gurp
Thanks, I've been trying to reproduce this myself with a minimal example but so far it seems specific to our index in production. Our mapping there is kind of large (over 7000 lines: https://gist.github.com/jillesvangurp/4328b0df634b09c60f44) with lots of auto generated fields, so that doesn'

Re: exist filter also matching on nested fields

2015-02-10 Thread Hannes Korte
Hi Jilles, I just tried, but wasn't able to reproduce this behavior. In my test ES only returned the correct document. I created a gist for that: https://gist.github.com/hkorte/ca5f91e2f4838213d956 I tried it using ES 1.4.1. Which version are you using? Does my gist work for you? I noticed th

exist filter also matching on nested fields

2015-02-10 Thread Jilles van Gurp
I'm trying to filter documents that have a particular field at the top level. Like for example: { "group_id":"xxx" } so I wrote the following query: GET inbot_users/usercontact/_search { "query": { "filtered": { "query": { "match_all": {} }, "filter": { "