From 79f9b8923b0b608e7f737bae729ffca14505cbae Mon Sep 17 00:00:00 2001 From: kean Date: Tue, 17 Oct 2023 19:06:26 -0400 Subject: [PATCH] Tune suggestions --- .../Post/Search/PostSearchSuggestionsService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Post/Search/PostSearchSuggestionsService.swift b/WordPress/Classes/ViewRelated/Post/Search/PostSearchSuggestionsService.swift index b9e9d985c647..f605ca98d0ca 100644 --- a/WordPress/Classes/ViewRelated/Post/Search/PostSearchSuggestionsService.swift +++ b/WordPress/Classes/ViewRelated/Post/Search/PostSearchSuggestionsService.swift @@ -54,7 +54,7 @@ actor PostSearchSuggestionsService { let search = StringRankedSearch(searchTerm: searchTerm) return tokens.compactMap { let score = search.score(for: $0.displayName) - guard score > 0.8 else { return nil } + guard score > 0.7 else { return nil } return RankedToken(token: $0, score: score) } } @@ -85,7 +85,7 @@ actor PostSearchSuggestionsService { let search = StringRankedSearch(searchTerm: searchTerm) return tokens.compactMap { let score = search.score(for: $0.tag) - guard score > 0.8 else { return nil } + guard score > 0.7 else { return nil } return RankedToken(token: $0, score: score) } }