다음을 통해 공유


SearchSuggestionSpec.SuggestionRankingStrategyTermFrequency Field

Definition

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 = 1

Implements

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 SearchSuggestionResults will be: term2, term1. The term2 will have higher score and appear in the results first.

Java documentation for android.app.appsearch.SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_TERM_FREQUENCY.

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.

Applies to