SearchSuggestionSpec.SuggestionRankingStrategyTermFrequency Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.App.AppSearch.SuggestionRankingStrategy enum directly instead of this field.
Ranked by the term appear frequency.
[Android.Runtime.Register("SUGGESTION_RANKING_STRATEGY_TERM_FREQUENCY", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.SuggestionRankingStrategy enum directly instead of this field.", true)]
public const Android.App.AppSearch.SuggestionRankingStrategy SuggestionRankingStrategyTermFrequency = 1;
[<Android.Runtime.Register("SUGGESTION_RANKING_STRATEGY_TERM_FREQUENCY", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppSearch.SuggestionRankingStrategy enum directly instead of this field.", true)>]
val mutable SuggestionRankingStrategyTermFrequency : Android.App.AppSearch.SuggestionRankingStrategy
Field Value
Value = 1Implements
- Attributes
Remarks
Ranked by the term appear frequency.
Suppose the following document is in the index.
Doc1 contains: term1 term2 term2 term2
Doc2 contains: term1
Then, suppose that a search suggestion for "t" is issued with the TERM_FREQUENCY, the returned SearchSuggestionResult
s will be: term2, term1. The term2 will have higher score and appear in the results first.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.