Table of Contents

Public classSealed SortField

Namespace
Rowles.LeanLucene.Search.Scoring
Assembly
Rowles.LeanLucene.dll

Specifies a field and direction for sorting search results.

public sealed class SortField
SortField

Public constructor SortField(SortFieldType, string, bool)

Initialises a new SortField with the given type, field name, and direction.

Public field DocId

Sort by internal document ID (insertion order).

Public field Score

Sort by relevance score (default).

Public property Descending

Gets a value indicating whether results are sorted in descending order.

Public property FieldName

Gets the name of the field to sort by. Empty for Score and DocId.

Public property Type

Gets the sort criterion type.

Public method Numeric(string, bool)

Creates a numeric sort on the given field.

Public method String(string, bool)

Creates a string sort on the given field.