# 5.6 \> 7.9 upgrade, auto\_generate\_phrase\_query alternatives?

**URL:** <https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164>\
**Category:** Elasticsearch\
**Created:** [January 5, 2021, 7:01am UTC](https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164 "2021-01-05T07:01:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![myspacebarisbroken](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@myspacebarisbroken](https://discuss.elastic.co/u/myspacebarisbroken)\
**Post date:** [January 5, 2021, 7:01am UTC](https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164/1 "2021-01-05T07:01:39Z")

</div>

Hello,

I'm upgrading my codebase's ElasticSearch from 5.6 to 7.x due to some features I'd like to explore.

I'm currently using GoLang & "[github.com/olivere/elastic/v5](http://github.com/olivere/elastic/v5)" specifically.

However, auto\_generate\_phrase\_query has been depreciated, and AutoGeneratePhraseQueries no longer works on v7 (or v6) ("[github.com/olivere/elastic/v7](http://github.com/olivere/elastic/v7)").

I've read to use explicit quoted queries, is there no setting i can set to true/false in ES when making requests to achieve this? Must i explicitly wrap my queries in quotation marks? Surely there must be a proper way to do this...

Ontop of this question, this might seem like a novice question, but is there performance updates in newer versions of ES or is it strictly Functionality updates?

Thanks!

---

<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:** [January 5, 2021, 7:04am UTC](https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164/2 "2021-01-05T07:04:46Z")

</div>

I can't answer the first part sorry.

> [@myspacebarisbroken](#):
>
> Ontop of this question, this might seem like a novice question, but is there performance updates in newer versions of ES or is it strictly Functionality updates?

Both. There's been tonnes of performance improvements from 5.X to 7.X 🙂

---

<div class="post-metadata">

**Author:** ![myspacebarisbroken](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@myspacebarisbroken](https://discuss.elastic.co/u/myspacebarisbroken)\
**Post date:** [January 5, 2021, 7:12am UTC](https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164/3 "2021-01-05T07:12:15Z")

</div>

Hi Mark,

Thank you for taking the time of day to respond to me! This is more incentive to upgrade!

---

<div class="post-metadata">

**Author:** ![myspacebarisbroken](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@myspacebarisbroken](https://discuss.elastic.co/u/myspacebarisbroken)\
**Post date:** [January 9, 2021, 7:26am UTC](https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164/4 "2021-01-09T07:26:16Z")

</div>

The best similar thing i could get was using `"type": "phrase"` for any future lurkers having a similar needs!

---

<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:** [February 6, 2021, 7:26am UTC](https://discuss.elastic.co/t/5-6-7-9-upgrade-auto-generate-phrase-query-alternatives/260164/5 "2021-02-06T07:26:20Z")

</div>

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