# Type ignored when using a sort by \_timestamp

**URL:** <https://discuss.elastic.co/t/type-ignored-when-using-a-sort-by--timestamp/14310>\
**Category:** Elasticsearch\
**Created:** [November 7, 2013, 10:11pm UTC](https://discuss.elastic.co/t/type-ignored-when-using-a-sort-by--timestamp/14310 "2013-11-07T22:11:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevins/32/946_2.png) [@kevins](https://discuss.elastic.co/u/kevins)\
**Post date:** [November 7, 2013, 10:11pm UTC](https://discuss.elastic.co/t/type-ignored-when-using-a-sort-by--timestamp/14310/1 "2013-11-07T22:11:17Z")

</div>

My index has two types: story, tags

type story has the \_timestamp enabled and stored

When I query this I get 50 hits of type STORY: (which is correct)

[http://localhost:9200/index/story/\_search?q=abc&size=50](http://localhost:9200/index/story/_search?q=abc&size=50)

When I query this I get 50 hits of type STORY and TAGS (which seems  
incorrect)

[http://localhost:9200/index/story/\_search?q=abc&size=50&sort:\_timestamp:desc](http://localhost:9200/index/story/_search?q=abc&size=50&sort:_timestamp:desc)

In other words, it seems to ignore the type in the URL. What could cause  
this? My tags type does not use \_timestamp.

Thank you.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 8, 2013, 8:18am UTC](https://discuss.elastic.co/t/type-ignored-when-using-a-sort-by--timestamp/14310/2 "2013-11-08T08:18:47Z")

</div>

Interesting. Do you mind creating a full curl recreation? I would like to replay that.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

7 novembre 2013 at 23:11:20, Kevin S ([kevinsteger@gmail.com](mailto:kevinsteger@gmail.com)) a écrit:

My index has two types: story, tags

type story has the \_timestamp enabled and stored

When I query this I get 50 hits of type STORY: (which is correct)

[http://localhost:9200/index/story/\_search?q=abc&size=50](http://localhost:9200/index/story/_search?q=abc&size=50)

When I query this I get 50 hits of type STORY and TAGS (which seems incorrect)

[http://localhost:9200/index/story/\_search?q=abc&size=50&sort:\_timestamp:desc](http://localhost:9200/index/story/_search?q=abc&size=50&sort:_timestamp:desc)

In other words, it seems to ignore the type in the URL. What could cause this? My tags type does not use \_timestamp.

## Thank you.

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:08am UTC](https://discuss.elastic.co/t/type-ignored-when-using-a-sort-by--timestamp/14310/3 "2017-07-06T02:08:12Z")

</div>

Closed on July 6, 2017, 2:08am UTC


