# Phrase suggester's sort mode

**URL:** <https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537>\
**Category:** Elasticsearch\
**Created:** [August 30, 2014, 8:13pm UTC](https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537 "2014-08-30T20:13:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heval\_Azizoglu](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@Heval\_Azizoglu](https://discuss.elastic.co/u/Heval_Azizoglu)\
**Post date:** [August 30, 2014, 8:13pm UTC](https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537/1 "2014-08-30T20:13:49Z")

</div>

Hi,

Is there any way to change the way direct generators outputs combination?  
It uses most frequent terms to produce top results, but i want to use  
calculated scores to sort the generator results and combine the top ones?  
Any body know how?

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [August 30, 2014, 11:18pm UTC](https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537/2 "2014-08-30T23:18:48Z")

</div>

You'd have to write a plugin or patch to elasticsearch. Plugin would be  
easier in the short run but a patch in elasticsearch is more likely to be  
of higher quality because of the code review process.  
On Aug 30, 2014 4:13 PM, "Heval Azizoğlu" [azizogluheval@gmail.com](mailto:azizogluheval@gmail.com) wrote:

> Hi,
> 
> Is there any way to change the way direct generators outputs combination?  
> It uses most frequent terms to produce top results, but i want to use  
> calculated scores to sort the generator results and combine the top ones?  
> Any body know how?
> 
> Thanks.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Heval\_Azizoglu](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@Heval\_Azizoglu](https://discuss.elastic.co/u/Heval_Azizoglu)\
**Post date:** [September 1, 2014, 5:57pm UTC](https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537/3 "2014-09-01T17:57:13Z")

</div>

Yeah i know that actually currently i am manipulating term suggester to get  
what i want but this feature is quite basic, i think, that I thought maybe  
i am missing something and there is an easy way to do that. Thanks for the  
answer.

On Sun, Aug 31, 2014 at 2:18 AM, Nikolas Everett [nik9000@gmail.com](mailto:nik9000@gmail.com) wrote:

> You'd have to write a plugin or patch to elasticsearch. Plugin would be  
> easier in the short run but a patch in elasticsearch is more likely to be  
> of higher quality because of the code review process.  
> On Aug 30, 2014 4:13 PM, "Heval Azizoğlu" [azizogluheval@gmail.com](mailto:azizogluheval@gmail.com) wrote:
> 
> > Hi,
> > 
> > Is there any way to change the way direct generators outputs combination?  
> > It uses most frequent terms to produce top results, but i want to use  
> > calculated scores to sort the generator results and combine the top ones?  
> > Any body know how?
> > 
> > Thanks.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/YBjy7POumbU/unsubscribe](https://groups.google.com/d/topic/elasticsearch/YBjy7POumbU/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPJuJmkXBHJeDGJF7ZcYLoYxZRcRJSKK6yYdadR0GU9pg\_Tmtw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPJuJmkXBHJeDGJF7ZcYLoYxZRcRJSKK6yYdadR0GU9pg_Tmtw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [September 1, 2014, 8:11pm UTC](https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537/4 "2014-09-01T20:11:50Z")

</div>

Sounds like a useful feature then! I'll certainly review it if you send a  
pull request though I can't merge stuff.  
On Sep 1, 2014 1:57 PM, "Heval Azizoğlu" [azizogluheval@gmail.com](mailto:azizogluheval@gmail.com) wrote:

> Yeah i know that actually currently i am manipulating term suggester to  
> get what i want but this feature is quite basic, i think, that I thought  
> maybe i am missing something and there is an easy way to do that. Thanks  
> for the answer.
> 
> On Sun, Aug 31, 2014 at 2:18 AM, Nikolas Everett [nik9000@gmail.com](mailto:nik9000@gmail.com)  
> wrote:
> 
> > You'd have to write a plugin or patch to elasticsearch. Plugin would be  
> > easier in the short run but a patch in elasticsearch is more likely to be  
> > of higher quality because of the code review process.  
> > On Aug 30, 2014 4:13 PM, "Heval Azizoğlu" [azizogluheval@gmail.com](mailto:azizogluheval@gmail.com)  
> > wrote:
> > 
> > > Hi,
> > > 
> > > Is there any way to change the way direct generators outputs  
> > > combination? It uses most frequent terms to produce top results, but i want  
> > > to use calculated scores to sort the generator results and combine the top  
> > > ones? Any body know how?
> > > 
> > > Thanks.
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > 
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1918ad6c-73d3-4f81-a35b-cb96364ce900%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/YBjy7POumbU/unsubscribe](https://groups.google.com/d/topic/elasticsearch/YBjy7POumbU/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd18MJtEEyAwqv8LNS58DRoHLeMbcvS-ryM6UGJ0dcUKxg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAPJuJmkXBHJeDGJF7ZcYLoYxZRcRJSKK6yYdadR0GU9pg\_Tmtw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPJuJmkXBHJeDGJF7ZcYLoYxZRcRJSKK6yYdadR0GU9pg_Tmtw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAPJuJmkXBHJeDGJF7ZcYLoYxZRcRJSKK6yYdadR0GU9pg\_Tmtw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPJuJmkXBHJeDGJF7ZcYLoYxZRcRJSKK6yYdadR0GU9pg_Tmtw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd1YLJkCvJkizEUA3-%2BJWvyn5B60Sh8fNPdK2wOWsXX%2BPQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd1YLJkCvJkizEUA3-%2BJWvyn5B60Sh8fNPdK2wOWsXX%2BPQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:05am UTC](https://discuss.elastic.co/t/phrase-suggesters-sort-mode/19537/5 "2017-07-06T01:05:04Z")

</div>

Closed on July 6, 2017, 1:05am UTC


