Sorting on an analyzed field

We have a field on a document type called title. It is an analyzed field,
but when we sort on it, we get a QueryException. I suppose this is caused
because ES does not know how to sort the resulting list of tokens.

A custom score won't work because this is a alphabetic sorting problem. Are
there any recommended ways to work around this limitation?

Hi James

On Fri, 2011-04-29 at 11:36 -0400, James Cook wrote:

We have a field on a document type called title. It is an analyzed
field, but when we sort on it, we get a QueryException. I suppose this
is caused because ES does not know how to sort the resulting list of
tokens.

You can make it a multi-field and store a not_analyzed version, then you
can sort by that sub-field instead.

clint