You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
Hi,
I noticed that the terms returned by the FST suggester are always sorted alphabetically. However, I would like to have them sorted by frequency. As far as I can tell, this would require changing the ShardSuggestResponse to include not only the terms but also their weight and then aggregating the shard responses in TransportSuggestAction.newResponse to form a list of all suggestions sorted by weight. While doing that one could also expose the number of buckets used by FSTCompletionLookup as a configuration setting and alternatively also support using WFSTCompletionLookup.
But, before I start with any of that:
Are you open to accepting a pull request making these changes?
Do you know if there is another way to get term completion suggestion sorted by frequency? I think that the new ES completion suggester is not the right fit since I want it to suggest single terms.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I noticed that the terms returned by the FST suggester are always sorted alphabetically. However, I would like to have them sorted by frequency. As far as I can tell, this would require changing the ShardSuggestResponse to include not only the terms but also their weight and then aggregating the shard responses in TransportSuggestAction.newResponse to form a list of all suggestions sorted by weight. While doing that one could also expose the number of buckets used by FSTCompletionLookup as a configuration setting and alternatively also support using WFSTCompletionLookup.
But, before I start with any of that:
Thanks!
The text was updated successfully, but these errors were encountered: