# Sort "missing" parameter from query string

**URL:** <https://discuss.elastic.co/t/sort-missing-parameter-from-query-string/23608>\
**Category:** Elasticsearch\
**Created:** [May 11, 2015, 8:05pm UTC](https://discuss.elastic.co/t/sort-missing-parameter-from-query-string/23608 "2015-05-11T20:05:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian\_2](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sebastian\_2](https://discuss.elastic.co/u/sebastian_2)\
**Post date:** [May 11, 2015, 8:05pm UTC](https://discuss.elastic.co/t/sort-missing-parameter-from-query-string/23608/1 "2015-05-11T20:05:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sebastian\_2](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sebastian\_2](https://discuss.elastic.co/u/sebastian_2)\
**Post date:** [May 11, 2015, 8:32pm UTC](https://discuss.elastic.co/t/sort-missing-parameter-from-query-string/23608/2 "2015-05-11T20:32:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:14am UTC](https://discuss.elastic.co/t/sort-missing-parameter-from-query-string/23608/3 "2017-07-06T00:14:34Z")

</div>


