# Sorting on a sparse field gets timeout

**URL:** <https://discuss.elastic.co/t/sorting-on-a-sparse-field-gets-timeout/159983>\
**Category:** Kibana\
**Created:** [December 7, 2018, 10:26pm UTC](https://discuss.elastic.co/t/sorting-on-a-sparse-field-gets-timeout/159983 "2018-12-07T22:26:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmhwong](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@fmhwong](https://discuss.elastic.co/u/fmhwong)\
**Post date:** [December 7, 2018, 10:26pm UTC](https://discuss.elastic.co/t/sorting-on-a-sparse-field-gets-timeout/159983/1 "2018-12-07T22:26:40Z")

</div>

I have multiple types of documents in one index. Most of the documents are type 1. When the first document from type 2 added to the index, the visualization failed to return the document and I got "Request Timeout after 30000ms".

The visualization has a filter to include type 2 documents only and sort on a new field in type 2 which does not exist in type 1 documents.

Does anyone know how to solve the timeout issue?

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 12, 2018, 11:15pm UTC](https://discuss.elastic.co/t/sorting-on-a-sparse-field-gets-timeout/159983/2 "2018-12-12T23:15:23Z")

</div>

Hello Felix,

Where do you see this timeout error? Can you please post a screenshot of it?

Also what do your Kibana and elasticsearch logs say?

Thanks,  
Bhavya

---

<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:** [January 9, 2019, 11:19pm UTC](https://discuss.elastic.co/t/sorting-on-a-sparse-field-gets-timeout/159983/3 "2019-01-09T23:19:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
