Language

SuggestionRankingStrategy Enum

Definition

public enum SuggestionRankingStrategy
type SuggestionRankingStrategy = 
Inheritance
SuggestionRankingStrategy

Fields

Name Value Description
DocumentCount 0

Ranked by the document count that contains the term. Suppose the following document is in the index. Then, suppose that a search suggestion for "t" is issued with the DOCUMENT_COUNT, the returned SearchSuggestionResults will be: term1, term2. The term1 will have higher score and appear in the results first.

Android reference for android.app.appsearch.SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_DOCUMENT_COUNT.

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.

TermFrequency 1

Ranked by the term appear frequency. Suppose the following document is in the index. 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.

Android reference 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.

None 2

No Ranking, results are returned in arbitrary order.

Android reference for android.app.appsearch.SearchSuggestionSpec.SUGGESTION_RANKING_STRATEGY_NONE.

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