Does doc_values supports array of docs?

I have a doc like this

{
title:'',
distr_sentiment:[
{k:"key1", v:"value1"},
{k:"key2", v:"value2"}
]
}

I want to set distr_sentiment.k and distr_sentiment.v doc_values=true, But
I got an error with this message "MergeMappingException[Merge failed with
failures {[mapper [distr_sentiment.v] has different doc_values values,
mapper [distr_sentiment.k] has different doc_values values]}]", How can I
use doc_values in array of docs? Oh what can I do to reduce the memory
useage on sorting and aggs on this fields?

--
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/f48b8220-eaef-4c52-847f-2c292b259f88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi,

I believe you are trying to enable doc_values on an existing index?
Unfortunately, it cannot be added on the fly and needs to be configured at
index creation time (which means you will need to reindex if you already
have some data indexed).

On Mon, Nov 3, 2014 at 9:44 AM, Garbin Huang garbinh@gmail.com wrote:

I have a doc like this

{
title:'',
distr_sentiment:[
{k:"key1", v:"value1"},
{k:"key2", v:"value2"}
]
}

I want to set distr_sentiment.k and distr_sentiment.v doc_values=true, But
I got an error with this message "MergeMappingException[Merge failed with
failures {[mapper [distr_sentiment.v] has different doc_values values,
mapper [distr_sentiment.k] has different doc_values values]}]", How can I
use doc_values in array of docs? Oh what can I do to reduce the memory
useage on sorting and aggs on this fields?

--
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/f48b8220-eaef-4c52-847f-2c292b259f88%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/f48b8220-eaef-4c52-847f-2c292b259f88%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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/CAL6Z4j7zYE2CixxnQ7aaC5cPkAHSd5ympFooQL%2B98%3DTuP6Lwyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.