Storing dyanamic key value pairs in Elastic search

Hi,
Is it possible to store dynamically changing hashmap values in elastic
search document and index it?
Eg: my name field must have a {blue=>black, white=>red}
value which I can search.
Thanks,
Lavanya

--
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/5f5b98e7-31ac-4420-b9b2-a4c026575c8e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Lavanya,

Something like this?

{
"name": [
{ "blue": "black" },
{ "white": "red" }
]
}

Also how would you want to search it, for example?

--
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/64d29839-a4d8-4a94-bea7-459c4b256663%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.