Improve emoji search rankings.

This commit is contained in:
Greyson Parrelli
2022-12-21 09:26:30 -05:00
parent 91fbc236ce
commit eada1e96ee
6 changed files with 123 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ import java.util.function.Consumer
private const val MINIMUM_QUERY_THRESHOLD = 1
private const val MINIMUM_INLINE_QUERY_THRESHOLD = 2
private const val EMOJI_SEARCH_LIMIT = 20
private const val EMOJI_SEARCH_LIMIT = 50
private val NOT_PUNCTUATION = "[^\\p{Punct}]".toRegex()