Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class QueryNodeOperation

    Allow joining 2 QueryNode Trees, into one.

    Inheritance
    System.Object
    QueryNodeOperation
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Util
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public sealed class QueryNodeOperation

    Methods

    | Improve this Doc View Source

    LogicalAnd(IQueryNode, IQueryNode)

    perform a logical and of 2 QueryNode trees. if q1 and q2 are ANDQueryNode nodes it uses head Node from q1 and adds the children of q2 to q1 if q1 is a AND node and q2 is not, add q2 as a child of the head node of q1 if q2 is a AND node and q1 is not, add q1 as a child of the head node of q2 if q1 and q2 are not ANDQueryNode nodes, create a AND node and make q1 and q2 children of that node if q1 or q2 is null it returns the not null node if q1 = q2 = null it returns null

    Declaration
    public static IQueryNode LogicalAnd(IQueryNode q1, IQueryNode q2)
    Parameters
    Type Name Description
    IQueryNode q1
    IQueryNode q2
    Returns
    Type Description
    IQueryNode
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.