Thanks Binh, that seems obvious now.  It's interesting that I can specify a
"field" query for a primitive type, or an array, but not a leaf field.  I
would have thought that a leaf field would be treated like an array, but I
suppose then it would have no name to reference on.

Thanks for the feedback.




On Tue, Feb 18, 2014 at 10:21 AM, Binh Ly <[email protected]> wrote:

> Jay, let's say I index another document:
>
> POST http://localhost:9200/foo/bar
> { "foo": ["bar", "bar2"] }
>
> Then when I query again, it would yield the results like you asked.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/1dMSGYmJcyw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/cd31dd72-9e95-4917-8bb9-5b9e6942e7d4%40googlegroups.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAD3qxy5oHuXG9XgegQNjZKBdPfbm0ANeiw9jN4Aee58nBdh1jg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to