Show / Hide Table of Contents

    Class ToParentBlockJoinSortField

    A special sort field that allows sorting parent docs based on nested / child level fields. Based on the sort order it either takes the document with the lowest or highest field value into account.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    SortField
    ToParentBlockJoinSortField
    Inherited Members
    SortField.FIELD_SCORE
    SortField.FIELD_DOC
    SortField.MissingValue
    SortField.m_missingValue
    SortField.STRING_FIRST
    SortField.STRING_LAST
    SortField.Field
    SortField.Type
    SortField.Parser
    SortField.IsReverse
    SortField.ComparerSource
    SortField.ToString()
    SortField.Equals(Object)
    SortField.GetHashCode()
    SortField.BytesComparer
    SortField.Rewrite(IndexSearcher)
    SortField.NeedsScores
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Join
    Assembly: Lucene.Net.Join.dll
    Syntax
    public class ToParentBlockJoinSortField : SortField

    Constructors

    | Improve this Doc View Source

    ToParentBlockJoinSortField(String, SortFieldType, Boolean, Filter, Filter)

    Create ToParentBlockJoinSortField. The parent document ordering is based on child document ordering (reverse).

    Declaration
    public ToParentBlockJoinSortField(string field, SortFieldType type, bool reverse, Filter parentFilter, Filter childFilter)
    Parameters
    Type Name Description
    System.String field

    The sort field on the nested / child level.

    SortFieldType type

    The sort type on the nested / child level.

    System.Boolean reverse

    Whether natural order should be reversed on the nested / child level.

    Filter parentFilter

    Filter that identifies the parent documents.

    Filter childFilter

    Filter that defines which child documents participates in sorting.

    | Improve this Doc View Source

    ToParentBlockJoinSortField(String, SortFieldType, Boolean, Boolean, Filter, Filter)

    Create ToParentBlockJoinSortField.

    Declaration
    public ToParentBlockJoinSortField(string field, SortFieldType type, bool reverse, bool order, Filter parentFilter, Filter childFilter)
    Parameters
    Type Name Description
    System.String field

    The sort field on the nested / child level.

    SortFieldType type

    The sort type on the nested / child level.

    System.Boolean reverse

    Whether natural order should be reversed on the nested / child document level.

    System.Boolean order

    Whether natural order should be reversed on the parent level.

    Filter parentFilter

    Filter that identifies the parent documents.

    Filter childFilter

    Filter that defines which child documents participates in sorting.

    Methods

    | Improve this Doc View Source

    GetComparer(Int32, Int32)

    Declaration
    public override FieldComparer GetComparer(int numHits, int sortPos)
    Parameters
    Type Name Description
    System.Int32 numHits
    System.Int32 sortPos
    Returns
    Type Description
    FieldComparer
    Overrides
    SortField.GetComparer(Int32, Int32)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)