Skip to content

Add hashtag score for better sorting of autosuggestions - #11427

Merged
Gargron merged 2 commits into
masterfrom
fix-hashtag-autocomplete-sort
Jul 30, 2019
Merged

Gargron merged 2 commits into
masterfrom
fix-hashtag-autocomplete-sort

Conversation

@Gargron

@Gargron Gargron commented Jul 28, 2019 •

Copy link
Copy Markdown
Member

Every time a hashtag enters the trending set (this happens at most once per day), its score is incremented by one. Hashtag search results are sorted by shortness first (closer to what the user typed), then by score (things that trended before are more interesting/relevant), then alphabetically.

@Gargron
Gargron force-pushed the fix-hashtag-autocomplete-sort branch from 076e684 to fa359df Compare July 29, 2019 18:56
@Gargron Gargron changed the title Fix useless sorting of hashtag autosuggestions Add hashtag score for better sorting of autosuggestions Jul 29, 2019
@Gargron
Gargron requested a review from ClearlyClaire July 30, 2019 05:12
@Gargron
Gargron force-pushed the fix-hashtag-autocomplete-sort branch from fa359df to 20e1a1a Compare July 30, 2019 10:05
@Gargron
Gargron merged commit 648cdbc into master Jul 30, 2019
@Gargron
Gargron deleted the fix-hashtag-autocomplete-sort branch July 30, 2019 11:10
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Add hashtag score for better sorting of autosuggestions

* Do not use `~<~` operator with no text_pattern_ops index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants