Determines the rank mode searchd uses to rank matched documents.
Only valid with Extended and Extended2.
Namespace: Gronewold.SphinxConnectorAssembly: Gronewold.SphinxConnector (in Gronewold.SphinxConnector.dll) Version: 2.7.0.3011 (2.7.0.3011)
Syntax
| C# |
|---|
public enum SphinxRankMode |
| Visual Basic |
|---|
Public Enumeration SphinxRankMode |
Members
| Member name | Value | Description | |
|---|---|---|---|
| ProximityBM25 | 0 | Default ranking mode which uses and combines both phrase proximity and BM25 ranking. | |
| BM25 | 1 | Statistical ranking mode which uses BM25 ranking only. | |
| None | 2 | Disabled ranking mode. A weight of 1 is assigned to all matches. | |
| WordCount | 3 | Ranks by keyword occurrences count. | |
| Proximity | 4 | Returns raw phrase proximity value as a result. Version must be at least 0.9.9. | |
| MatchAny | 5 | Returns rank as it was computed in Any mode ealier, and is internally used to emulate Any queries. | |
| Fieldmask | 6 | Returns a 32-bit mask with N-th bit corresponding to N-th fulltext field, numbering from 0. The bit will only be set when the respective field has any keyword occurences satisfiying the query. | |
| SPH04 | 7 | Based on ProximityBM25 ranker, but additionally boosts the matches when they occur in the very beginning or the very end of a text field. Thus, if a field equals the exact query, SPH04 should rank it higher than a field that contains the exact query but is not equal to it. Version must be at least 1.10.1 | |
| Expression | 8 | Lets you specify the ranking formula at run time. It exposes a number of internal text factors and lets you define how the final weight should be computed from those factors Version must be at least 2.0.2 | |
| Total | 9 | Version must be at least 1.10.1 |