Show / Hide Table of Contents

    Enum SortFieldType

    Specifies the type of the terms to be sorted, or special types such as CUSTOM

    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public enum SortFieldType : int

    Fields

    Name Description
    BYTE

    Sort using term values as encoded s. Sort values are and lower values are at the front.

    BYTES

    Sort use byte[] index values.

    CUSTOM

    Sort using a custom . Sort values are any and sorting is done according to natural order.

    DOC

    Sort by document number (index order). Sort values are and lower values are at the front.

    DOUBLE

    Sort using term values as encoded s. Sort values are and lower values are at the front.

    INT16

    Sort using term values as encoded s. Sort values are and lower values are at the front.

    NOTE: This was SHORT in Lucene

    INT32

    Sort using term values as encoded s. Sort values are and lower values are at the front.

    NOTE: This was INT in Lucene

    INT64

    Sort using term values as encoded s. Sort values are and lower values are at the front.

    NOTE: This was LONG in Lucene

    REWRITEABLE

    Force rewriting of SortField using Rewrite(IndexSearcher) before it can be used for sorting

    SCORE

    Sort by document score (relevance). Sort values are and higher values are at the front.

    SINGLE

    Sort using term values as encoded s. Sort values are and lower values are at the front.

    NOTE: This was FLOAT in Lucene

    STRING

    Sort using term values as s. Sort values are s and lower values are at the front.

    STRING_VAL

    Sort using term values as s, but comparing by value (using CompareTo(BytesRef)) for all comparisons. this is typically slower than STRING, which uses ordinals to do the sorting.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)