# How to profile search query in elasticsearch 1.6?

**URL:** <https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933>\
**Category:** Elasticsearch\
**Created:** [November 14, 2016, 5:37am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933 "2016-11-14T05:37:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![himan\_Jain](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@himan\_Jain](https://discuss.elastic.co/u/himan_Jain)\
**Post date:** [November 14, 2016, 5:37am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/1 "2016-11-14T05:37:55Z")

</div>

How can I profile search query in elasticsearch 1.6 since ProfileAPI is not available for this version?

---

<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 14, 2016, 5:49am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/2 "2016-11-14T05:49:47Z")

</div>

You can't.  
Upgrade.

---

<div class="post-metadata">

**Author:** ![himan\_Jain](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@himan\_Jain](https://discuss.elastic.co/u/himan_Jain)\
**Post date:** [November 14, 2016, 5:55am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/3 "2016-11-14T05:55:14Z")

</div>

Thanks..  
Which version would be ideal to upgrade for production environment?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 14, 2016, 6:24am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/4 "2016-11-14T06:24:21Z")

</div>

We always recommend the latest, so 5.0.0.  
But I think 1.7.6 is the latest in the 1.X stream.

---

<div class="post-metadata">

**Author:** ![himan\_Jain](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@himan\_Jain](https://discuss.elastic.co/u/himan_Jain)\
**Post date:** [November 14, 2016, 6:33am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/5 "2016-11-14T06:33:12Z")

</div>

I have a little shy about the latest versions, and okay with most stable below latest.  
If I'm going to upgrade, is 5.0 a reliable one for production real time or should I opt for just below 5.0 which is 2.4.1?

Or any feature in 5.0 which is helpful and not available in 2.4.1?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 14, 2016, 6:45am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/6 "2016-11-14T06:45:23Z")

</div>

There are a lot of improvements in 5.0, but as I don't know anything about your use case it is hard to tell which ones would be relevant or not. There are also some changes to the query DSL, so it may mean less changes to go to 2.4.1. Another consideration is how easy your data is to migrate, and you should run the [migration plugin](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking-changes-5.0.html#migration-plugin) to identify any potential issues. If it turns out you need to reindex, you may save one migration later by going directly to 5.0.

---

<div class="post-metadata">

**Author:** ![himan\_Jain](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@himan\_Jain](https://discuss.elastic.co/u/himan_Jain)\
**Post date:** [November 14, 2016, 8:45am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/7 "2016-11-14T08:45:08Z")

</div>

Thanks, it helps 🙂

---

<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:** [December 12, 2016, 8:45am UTC](https://discuss.elastic.co/t/how-to-profile-search-query-in-elasticsearch-1-6/65933/8 "2016-12-12T08:45:15Z")

</div>

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