# Data indexing process taking a lot of time

**URL:** <https://discuss.elastic.co/t/data-indexing-process-taking-a-lot-of-time/6946>\
**Category:** Elasticsearch\
**Created:** [March 8, 2012, 3:19pm UTC](https://discuss.elastic.co/t/data-indexing-process-taking-a-lot-of-time/6946 "2012-03-08T15:19:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asamirmohamed](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@asamirmohamed](https://discuss.elastic.co/u/asamirmohamed)\
**Post date:** [March 8, 2012, 3:19pm UTC](https://discuss.elastic.co/t/data-indexing-process-taking-a-lot-of-time/6946/1 "2012-03-08T15:19:29Z")

</div>

Hi,

I have 9000 documents in my ES index .

I want to sort by an analyzed string field, so, in order to do that i knew ( through Google ) that i must update the mapping to make the field not-analyzed so i can sort by this field and i must re-index the data again to reflect the change in mapping .

The re-indexing process consumed about 20 minutes on my machine .

The strange thing is that the re-indexing process consumed about 2 hours on a very powerful production server !!!

I checked the memory status and the processor usage on that server and everything was normal ..

- What i want to know is :

1- Is there a way to sort documents by an analyzed, tokenized field without re-indexing the whole documents ?

2- If i must re-index the whole documents, then why does it take such huge time to re-index the documents on the server ?? or how to trace the slowness reason on that server ???

Cheers,

---

<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, 3:36am UTC](https://discuss.elastic.co/t/data-indexing-process-taking-a-lot-of-time/6946/2 "2017-07-06T03:36:39Z")

</div>

Closed on July 6, 2017, 3:36am UTC


