How to treat sorting for string fields as not_analyzed

Only when performing a sort operation, I would like to treat a string field
like
{name: "first last"}

as not_analyzed ... is this possible?

--
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/b02b4a7b-7505-4a30-be81-c727898c18b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

It is not possible. The common solution to this kind of issues is to index
the field twice: once analyzed and once not_analyzed. You can do it with
multi fields
http://www.elastic.co/guide/en/elasticsearch/reference/current/_multi_fields.html

On Thu, Mar 26, 2015 at 9:10 PM, pulkitsinghal pulkitsinghal@gmail.com
wrote:

Only when performing a sort operation, I would like to treat a string
field like
{name: "first last"}

as not_analyzed ... is this possible?

--
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/b02b4a7b-7505-4a30-be81-c727898c18b3%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b02b4a7b-7505-4a30-be81-c727898c18b3%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien

--
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/CAO5%3DkAiRV2uhw%2B-8PTrJL1m40QA%3DLZYxeJgT45ALe%2BDbw77VzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.