# Search slow down after upgrade to 2.4

**URL:** <https://discuss.elastic.co/t/search-slow-down-after-upgrade-to-2-4/85401>\
**Category:** Elasticsearch\
**Created:** [May 11, 2017, 1:00pm UTC](https://discuss.elastic.co/t/search-slow-down-after-upgrade-to-2-4/85401 "2017-05-11T13:00:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Mehta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deepak_mehta1/32/94163_2.png) [@Deepak\_Mehta1](https://discuss.elastic.co/u/Deepak_Mehta1)\
**Post date:** [May 11, 2017, 1:00pm UTC](https://discuss.elastic.co/t/search-slow-down-after-upgrade-to-2-4/85401/1 "2017-05-11T13:00:01Z")

</div>

Hello,

We have recently upgraded to elastic search 2.4.2 from 1.6.1. Our searches are taking double time then 1.6.1

One of query example here,  
We have two types of documents.

1. seller
2. buyer.

Below is complex query we execute:

[http://localhost:9200/{index\_name}/buyer%2Cseller/\_search?pretty](http://localhost:9200/%7Bindex_name%7D/buyer%2Cseller/_search?pretty) -d '{"query":{"filtered":{"query":{"bool":{"should":[{"bool":{"must":[{"term":{"\_type":"buyer"}},{"bool":{"should":[{"term":{"buyerName":"india darshan"}},{"match":{"buyerName":{"query":"india darshan","boost":6}}},{"match":{"buyerName.trigram":{"query":"india darshan","boost":4,"minimum\_should\_match":"50%"}}},{"simple\_query\_string":{"fields":["content^3.0","userName^2.0","userFullName^2.0","comments^1.0"],"query":"india darshan"}},{"simple\_query\_string":{"fields":["content^3.0","userName^2.0","userFullName^2.0","comments^1.0"],"query":"india\* darshan\*"}}]}}]}},{"bool":{"must":[{"term":{"\_type":"seller"}},{"bool":{"should":[{"term":{"sellerName":"india darshan"}},{"match":{"sellerName":{"query":"india darshan","boost":8}}},{"match":{"sellerName.trigram":{"query":"india darshan","boost":4,"minimum\_should\_match":"50%"}}},{"simple\_query\_string":{"fields":["description^1.0"],"query":"india darshan"}},{"simple\_query\_string":{"fields":["description^1.0"],"query":"india\* darshan\*"}}]}}]}}]}},"filter":{"and":[{"term":{"orgId":196323}},{"term":{"deleted":0}}]}}},"\_source":{"exclude":["content"]},"highlight":{"fields":{"content":{"fragment\_size":150,"number\_of\_fragments":3,"no\_match\_size":150}}},"from":0,"size":40}'

Anything wrong in this in context to 2.4.2 upgrade?

These queries used to take around 3sec in 1.6 and now increased to 7 secs in 2.4.2

---

<div class="post-metadata">

**Author:** ![Deepak\_Mehta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deepak_mehta1/32/94163_2.png) [@Deepak\_Mehta1](https://discuss.elastic.co/u/Deepak_Mehta1)\
**Post date:** [May 17, 2017, 9:24am UTC](https://discuss.elastic.co/t/search-slow-down-after-upgrade-to-2-4/85401/2 "2017-05-17T09:24:13Z")

</div>

Any suggestions on this?

---

<div class="post-metadata">

**Author:** ![Deepak\_Mehta1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deepak_mehta1/32/94163_2.png) [@Deepak\_Mehta1](https://discuss.elastic.co/u/Deepak_Mehta1)\
**Post date:** [May 23, 2017, 9:07am UTC](https://discuss.elastic.co/t/search-slow-down-after-upgrade-to-2-4/85401/4 "2017-05-23T09:07:55Z")

</div>

> **[hotThreads.txt on Egnyte](https://deepakmehta.egnyte.com/dl/cphJYG7N17)**
>
> Intelligent file sharing in the cloud and on premises

* * *

Hot Threads attached.

---

<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:** [June 20, 2017, 9:08am UTC](https://discuss.elastic.co/t/search-slow-down-after-upgrade-to-2-4/85401/5 "2017-06-20T09:08:28Z")

</div>

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