SearchSuggestionSpec.Builder.SetRankingStrategy Method
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.
Sets ranking strategy for suggestion results.
[Android.Runtime.Register("setRankingStrategy", "(I)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder SetRankingStrategy(Android.App.AppSearch.SuggestionRankingStrategy rankingStrategy);
[<Android.Runtime.Register("setRankingStrategy", "(I)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)>]
member this.SetRankingStrategy : Android.App.AppSearch.SuggestionRankingStrategy -> Android.App.AppSearch.SearchSuggestionSpec.Builder
Parameters
- rankingStrategy
- SuggestionRankingStrategy
Value is one of the following: SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_NONE SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_DOCUMENT_COUNT SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_TERM_FREQUENCY
Returns
- Attributes
Remarks
Sets ranking strategy for suggestion results. The default value SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_DOCUMENT_COUNT will be used if this method is never called.
Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.setRankingStrategy.
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.