Sort "missing" parameter from query string


(sebastian-2) #1

Hello,

Can I specify the sort "missing" parameter from query string?

From body:

{
"sort" : [
{ "price" : {"missing" : "_last"} },
],
"query" : {
"term" : { "user" : "kimchy" }
}
}

Thanks!

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

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/5bfd91c2-9cda-42e6-88bc-38ba1c08ae5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(sebastian-2) #2

Is it possible to specify it from mapping?

On Monday, May 11, 2015 at 5:05:27 PM UTC-3, sebastian wrote:

Hello,

Can I specify the sort "missing" parameter from query string?

From body:

{
"sort" : [
{ "price" : {"missing" : "_last"} },
],
"query" : {
"term" : { "user" : "kimchy" }
}
}

Thanks!

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

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/1a51531d-a0ed-408b-bc05-a0acdb2e0e2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3