Sorting String values in a manner similar to Number "missing" : "_last"

Hi,

The documentation states we can use "missing" : "_last" for sorting
Numbers. This is extremely useful.

Is there a similar mechanism for sorting on String values? (or am I missing
something very obvious)

Any pointers would be very useful.

Thanks!

If I'm correct if you try to missing option for a string field an
error will be returned.
Right now I can't think of an easy way to have this sorting behavior
other then setting this the sort field
with lexicographically high value during indexing. Which should result
in the behavior you want.

I see that there is an issue open for this:

Martijn

On 2 August 2012 17:45, ABC satish.bhatia@gmail.com wrote:

Hi,

The documentation states we can use "missing" : "_last" for sorting Numbers.
This is extremely useful.

Is there a similar mechanism for sorting on String values? (or am I missing
something very obvious)

Any pointers would be very useful.

Thanks!

--
Met vriendelijke groet,

Martijn van Groningen