Term Aggregate on Analyzed Fields?

I have a field with values like:

foo
bar
bar-one

Unfortunately, when I set up this index, I didn't realize that I wanted to
turn off tokenization ("index": "not_analyzed"). Now when I try and do
terms aggregation, I get back the tokenized values:

foo
bar (2)
one

Is there any way to do an aggregation on the full value of the field,
ignoring tokenization?

--
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/1b975d21-a69e-4dca-ab27-b0c39650e571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

As far as I know, you can not do this, because ES do not store field value by default(It uses ‘_source’). If ES read the value from ‘_source’, it will cost a long time.

在 2014年10月24日,下午10:32,Matt Hughes hughes.matt@gmail.com 写道:

I have a field with values like:

foo
bar
bar-one

Unfortunately, when I set up this index, I didn't realize that I wanted to turn off tokenization ("index": "not_analyzed"). Now when I try and do terms aggregation, I get back the tokenized values:

foo
bar (2)
one

Is there any way to do an aggregation on the full value of the field, ignoring tokenization?

--
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 mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b975d21-a69e-4dca-ab27-b0c39650e571%40googlegroups.com https://groups.google.com/d/msgid/elasticsearch/1b975d21-a69e-4dca-ab27-b0c39650e571%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout 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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9E1F7BF4-A662-4054-802C-B86DF389B8BC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.