SearchSuggestionSpec.SuggestionRankingStrategyDocumentCount 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 document count that contains the term.
[Android.Runtime.Register("SUGGESTION_RANKING_STRATEGY_DOCUMENT_COUNT", 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 SuggestionRankingStrategyDocumentCount = 0;
[<Android.Runtime.Register("SUGGESTION_RANKING_STRATEGY_DOCUMENT_COUNT", 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 SuggestionRankingStrategyDocumentCount : Android.App.AppSearch.SuggestionRankingStrategy
Field Value
Value = 0Implements
- Attributes
Remarks
Ranked by the document count that contains the term.
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 DOCUMENT_COUNT, the returned SearchSuggestionResult
s will be: term1, term2. The term1 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.