Show / Hide Table of Contents

    Class SlopQueryNode

    A SlopQueryNode represents phrase query with a slop.

    From Lucene FAQ: Is there a way to use a proximity operator (like near or within) with Lucene? There is a variable called slop that allows you to perform NEAR/WITHIN-like queries. By default, slop is set to 0 so that only exact phrases will match. When using TextParser you can use this syntax to specify the slop: "doug cutting"~2 will find documents that contain "doug cutting" as well as ones that contain "cutting doug".

    Inheritance
    System.Object
    QueryNode
    SlopQueryNode
    Implements
    IFieldableNode
    IQueryNode
    Inherited Members
    QueryNode.PLAINTEXT_FIELD_NAME
    QueryNode.Allocate()
    QueryNode.Add(IQueryNode)
    QueryNode.Add(IList<IQueryNode>)
    QueryNode.IsLeaf
    QueryNode.Set(IList<IQueryNode>)
    QueryNode.Clone()
    QueryNode.GetChildren()
    QueryNode.SetTag(String, Object)
    QueryNode.UnsetTag(String)
    QueryNode.ContainsTag(String)
    QueryNode.GetTag(String)
    QueryNode.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(String)
    QueryNode.TagMap
    QueryNode.RemoveFromParent()
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class SlopQueryNode : QueryNode, IFieldableNode, IQueryNode

    Constructors

    | Improve this Doc View Source

    SlopQueryNode(IQueryNode, Int32)

    Declaration
    public SlopQueryNode(IQueryNode query, int value)
    Parameters
    Type Name Description
    IQueryNode query

    QueryNode Tree with the phrase

    System.Int32 value

    slop value

    Properties

    | Improve this Doc View Source

    Field

    Declaration
    public virtual string Field { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Value

    Declaration
    public virtual int Value { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    CloneTree()

    Declaration
    public override IQueryNode CloneTree()
    Returns
    Type Description
    IQueryNode
    Overrides
    QueryNode.CloneTree()
    | Improve this Doc View Source

    GetChild()

    Declaration
    public virtual IQueryNode GetChild()
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    ToQueryString(IEscapeQuerySyntax)

    Declaration
    public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escapeSyntaxParser
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToQueryString(IEscapeQuerySyntax)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToString()

    Implements

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