It is not related to that issue. In that issue, your query would work, but
all the nested documents are returned, not just the relevant.

It seems like the query fails on fields named "id". If you rename that
field, the query works, so it has nothing to do with your mapping. I would
report it as a bug or use another field name.

-- 
Ivan


On Thu, Jun 26, 2014 at 9:29 AM, dazraf <[email protected]>
wrote:

> Is this related to this issue?
> https://github.com/elasticsearch/elasticsearch/issues/3022
>
>
> On Tuesday, 24 June 2014 14:43:01 UTC+1, dazraf wrote:
>
>> Hi,
>>
>> Very grateful for any help with the following (rather urgent) issue.
>> Gist: https://gist.github.com/dazraf/55ebb900b3c17583bf58
>>
>>
>> The script clears the indices and sets up dynamic mapping so that all
>> child documents are treated as nested.
>> Then there are two queries on fields of
>> *message.statistics.timings.measure.thing*.
>> The first, on *uniqueThing* field succeeds.
>> The second on the *id* field fails with zero documents.
>>
>> Not sure why the second query is failing to locate any documents.
>>
>> Any help much appreciated!
>>
>> thanks
>> Fuzz.
>>
>>  --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/14de51ef-8569-476b-9495-edd2c4967837%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/14de51ef-8569-476b-9495-edd2c4967837%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCjSKdgk%3D--P9UGzN06TjQ%3DbePyWUneCdALGos2DehbGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to