ML in SE: increase priority thresholds in semantic actions contributor

Previous thresholds led to matching results for completely messy queries consisting of the same letter

GitOrigin-RevId: 0e4606fa6f2dbbc2d3394ab23d9a75b62be7935c
This commit is contained in:
Evgeny Abramov
2024-01-03 20:40:02 +00:00
committed by intellij-monorepo-bot
parent 6891da670f
commit 2439ed75b3
@@ -200,7 +200,7 @@ class SemanticActionSearchEverywhereContributor(defaultContributor: ActionSearch
companion object {
private val logger = Logger.getInstance(SemanticActionSearchEverywhereContributor::class.java)
val PRIORITY_THRESHOLDS = (ORDERED_PRIORITIES zip listOf(0.35, 0.25, 0.2)).toMap()
val PRIORITY_THRESHOLDS = (ORDERED_PRIORITIES zip listOf(0.68, 0.5, 0.4)).toMap()
private const val DESIRED_RESULTS_COUNT = 10
private fun extractAction(item: Any): AnAction? {