SuggestionRankingStrategy Enum
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.
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. 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. 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 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. |