Binh, I remember your helpful answer last time. Thanks you again for your 
help!

May I ask you two things more:
1. The doc on sort has a section on cast score for missing values, but is 
there a simple way or setting to ignore missing values altogether?
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html
2. Do you think the above is a good way to handle the "sort string field 
numerically" issue?



On Tuesday, January 28, 2014 1:51:59 AM UTC+8, Binh Ly wrote:
>
> Arthur,
>
> Can you try to set "ignore_malformed": true for your float field and see 
> if that works. Something like this:
>
>         "foo": {
>           "type": "multi_field",
>           "fields": {
>             "foo": {
>               "type": "string",
>               "index": "not_analyzed"
>             },
>             "f": {
>               "type": "float",
>               "ignore_malformed": true
>             }
>           }
>         }
>
> After that, you should be able to sort numerically on the field "foo.f".
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/00a200ef-b032-42d4-bf8b-6fc455faf3a5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to