Property | Type | Description | |
---|---|---|---|
FIELD_DOC | |||
FIELD_SCORE | |||
STRING_FIRST | object | ||
STRING_LAST | object | ||
missingValue | object |
Method | Description | |
---|---|---|
Equals ( object o ) : bool |
Returns true if
|
|
GetComparator ( int numHits, int sortPos ) : |
Returns the FieldComparator to use for sorting. @lucene.experimental
|
|
GetHashCode ( ) : int |
Returns true if
|
|
NeedsScores ( ) : bool |
Whether the relevance score is needed to sort documents.
|
|
Rewrite ( |
Rewrites this SortField, returning a new SortField if a change is made. Subclasses should override this define their rewriting behavior when this SortField is of type SortField.Type#REWRITEABLE
|
|
SortField ( string field, Lucene.Net.Search.FieldCache parser ) : System |
Creates a sort by terms in the given field, parsed to numeric values using a custom IFieldCache.Parser.
|
|
SortField ( string field, FieldCache parser, bool reverse ) : System |
Creates a sort, possibly in reverse, by terms in the given field, parsed to numeric values using a custom IFieldCache.Parser.
|
|
SortField ( string field, FieldComparatorSource comparator ) : System |
Creates a sort with a custom comparison function.
|
|
SortField ( string field, FieldComparatorSource comparator, bool reverse ) : System |
Creates a sort, possibly in reverse, with a custom comparison function.
|
|
SortField ( string field, Type_e type ) : System |
Creates a sort by terms in the given field with the type of term values explicitly given.
|
|
SortField ( string field, Type_e type, bool reverse ) : System |
Creates a sort, possibly in reverse, by terms in the given field with the type of term values explicitly given.
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
InitFieldType ( string field, Type_e type ) : void |
public GetComparator ( int numHits, int sortPos ) : |
||
numHits | int | number of top hits the queue will store |
sortPos | int | position of this SortField within {@link /// Sort}. The comparator is primary if sortPos==0, /// secondary if sortPos==1, etc. Some comparators can /// optimize themselves when they are the primary sort. |
return |
public Rewrite ( |
||
searcher | IndexSearcher to use during rewriting | |
return |
public SortField ( string field, Lucene.Net.Search.FieldCache parser ) : System | ||
field | string | Name of field to sort by. Must not be null. |
parser | Lucene.Net.Search.FieldCache | Instance of a |
return | System |
public SortField ( string field, FieldCache parser, bool reverse ) : System | ||
field | string | Name of field to sort by. Must not be null. |
parser | FieldCache | Instance of a |
reverse | bool | True if natural order should be reversed. |
return | System |
public SortField ( string field, FieldComparatorSource comparator ) : System | ||
field | string | Name of field to sort by; cannot be null . |
comparator | FieldComparatorSource | Returns a comparator for sorting hits. |
return | System |
public SortField ( string field, FieldComparatorSource comparator, bool reverse ) : System | ||
field | string | Name of field to sort by; cannot be null . |
comparator | FieldComparatorSource | Returns a comparator for sorting hits. |
reverse | bool | True if natural order should be reversed. |
return | System |
public SortField ( string field, Type_e type ) : System | ||
field | string | Name of field to sort by. Can be null if
/// type is SCORE or DOC. |
type | Type_e | Type of values in the terms. |
return | System |
public SortField ( string field, Type_e type, bool reverse ) : System | ||
field | string | Name of field to sort by. Can be null if
/// type is SCORE or DOC. |
type | Type_e | Type of values in the terms. |
reverse | bool | True if natural order should be reversed. |
return | System |
public static SortField,Lucene.Net.Search FIELD_DOC | ||
return |
public static SortField,Lucene.Net.Search FIELD_SCORE | ||
return |