Fork me on GitHub
  • API

    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.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    Lucene.Net.Search.SortField
    ToParentBlockJoinSortField
    Inherited Members
    Lucene.Net.Search.SortField.FIELD_SCORE
    Lucene.Net.Search.SortField.FIELD_DOC
    Lucene.Net.Search.SortField.MissingValue
    Lucene.Net.Search.SortField.m_missingValue
    Lucene.Net.Search.SortField.STRING_FIRST
    Lucene.Net.Search.SortField.STRING_LAST
    SortField.SetMissingValue(Object)
    SortField.SetMissingValue(SByte)
    SortField.SetMissingValue(Byte)
    SortField.SetMissingValue(Int16)
    SortField.SetMissingValue(Int32)
    SortField.SetMissingValue(Int64)
    SortField.SetMissingValue(Double)
    SortField.SetMissingValue(Single)
    Lucene.Net.Search.SortField.Field
    Lucene.Net.Search.SortField.Type
    Lucene.Net.Search.SortField.Parser
    Lucene.Net.Search.SortField.IsReverse
    Lucene.Net.Search.SortField.ComparerSource
    Lucene.Net.Search.SortField.ToString()
    SortField.Equals(Object)
    Lucene.Net.Search.SortField.GetHashCode()
    Lucene.Net.Search.SortField.BytesComparer
    Lucene.Net.Search.SortField.Rewrite(Lucene.Net.Search.IndexSearcher)
    Lucene.Net.Search.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.Search.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.

    Lucene.Net.Search.SortFieldType type

    The sort type on the nested / child level.

    System.Boolean reverse

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

    Lucene.Net.Search.Filter parentFilter

    Lucene.Net.Search.Filter that identifies the parent documents.

    Lucene.Net.Search.Filter childFilter

    Lucene.Net.Search.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.

    Lucene.Net.Search.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.

    Lucene.Net.Search.Filter parentFilter

    Lucene.Net.Search.Filter that identifies the parent documents.

    Lucene.Net.Search.Filter childFilter

    Lucene.Net.Search.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
    Lucene.Net.Search.FieldComparer
    Overrides
    SortField.GetComparer(Int32, Int32)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.