Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class QueryParser

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Inheritance
    object
    QueryParser
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.QueryParsers.Surround.Parser
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class QueryParser

    Constructors

    QueryParser()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public QueryParser()

    QueryParser(ICharStream)

    Constructor with user supplied ICharStream.

    Declaration
    public QueryParser(ICharStream stream)
    Parameters
    Type Name Description
    ICharStream stream

    QueryParser(QueryParserTokenManager)

    Constructor with generated Token Manager.

    Declaration
    public QueryParser(QueryParserTokenManager tm)
    Parameters
    Type Name Description
    QueryParserTokenManager tm

    Properties

    Jj_nt

    Next token.

    Declaration
    public Token Jj_nt { get; set; }
    Property Value
    Type Description
    Token

    Token

    Current token.

    Declaration
    public Token Token { get; set; }
    Property Value
    Type Description
    Token

    TokenSource

    Generated Token Manager.

    Declaration
    public QueryParserTokenManager TokenSource { get; set; }
    Property Value
    Type Description
    QueryParserTokenManager

    Methods

    AllowedSuffix(string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual bool AllowedSuffix(string suffixed)
    Parameters
    Type Name Description
    string suffixed
    Returns
    Type Description
    bool

    AllowedTruncation(string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual bool AllowedTruncation(string truncated)
    Parameters
    Type Name Description
    string truncated
    Returns
    Type Description
    bool

    AndQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery AndQuery()
    Returns
    Type Description
    SrndQuery

    CheckDistanceSubQueries(DistanceQuery, string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected static void CheckDistanceSubQueries(DistanceQuery distq, string opName)
    Parameters
    Type Name Description
    DistanceQuery distq
    string opName

    Disable_tracing()

    Disable tracing.

    Declaration
    public void Disable_tracing()

    Enable_tracing()

    Enable tracing.

    Declaration
    public void Enable_tracing()

    FieldsQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery FieldsQuery()
    Returns
    Type Description
    SrndQuery

    FieldsQueryList()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public IList<SrndQuery> FieldsQueryList()
    Returns
    Type Description
    IList<SrndQuery>

    GenerateParseException()

    Generate ParseException.

    Declaration
    public virtual ParseException GenerateParseException()
    Returns
    Type Description
    ParseException

    GetAndQuery(IList<SrndQuery>, bool, Token)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetAndQuery(IList<SrndQuery> queries, bool infix, Token andToken)
    Parameters
    Type Name Description
    IList<SrndQuery> queries
    bool infix
    Token andToken
    Returns
    Type Description
    SrndQuery

    GetDistanceQuery(IList<SrndQuery>, bool, Token, bool)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetDistanceQuery(IList<SrndQuery> queries, bool infix, Token dToken, bool ordered)
    Parameters
    Type Name Description
    IList<SrndQuery> queries
    bool infix
    Token dToken
    bool ordered
    Returns
    Type Description
    SrndQuery

    GetFieldsQuery(SrndQuery, IList<string>)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetFieldsQuery(SrndQuery q, IList<string> fieldNames)
    Parameters
    Type Name Description
    SrndQuery q
    IList<string> fieldNames
    Returns
    Type Description
    SrndQuery

    GetNextToken()

    Get the next Token.

    Declaration
    public Token GetNextToken()
    Returns
    Type Description
    Token

    GetNotQuery(IList<SrndQuery>, Token)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetNotQuery(IList<SrndQuery> queries, Token notToken)
    Parameters
    Type Name Description
    IList<SrndQuery> queries
    Token notToken
    Returns
    Type Description
    SrndQuery

    GetOpDistance(string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected static int GetOpDistance(string distanceOp)
    Parameters
    Type Name Description
    string distanceOp
    Returns
    Type Description
    int

    GetOrQuery(IList<SrndQuery>, bool, Token)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetOrQuery(IList<SrndQuery> queries, bool infix, Token orToken)
    Parameters
    Type Name Description
    IList<SrndQuery> queries
    bool infix
    Token orToken
    Returns
    Type Description
    SrndQuery

    GetPrefixQuery(string, bool)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetPrefixQuery(string prefix, bool quoted)
    Parameters
    Type Name Description
    string prefix
    bool quoted
    Returns
    Type Description
    SrndQuery

    GetTermQuery(string, bool)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetTermQuery(string term, bool quoted)
    Parameters
    Type Name Description
    string term
    bool quoted
    Returns
    Type Description
    SrndQuery

    GetToken(int)

    Get the specific Token.

    Declaration
    public Token GetToken(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    Token

    GetTruncQuery(string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    protected virtual SrndQuery GetTruncQuery(string truncated)
    Parameters
    Type Name Description
    string truncated
    Returns
    Type Description
    SrndQuery

    NQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery NQuery()
    Returns
    Type Description
    SrndQuery

    NotQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery NotQuery()
    Returns
    Type Description
    SrndQuery

    OptionalFields()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public IList<string> OptionalFields()
    Returns
    Type Description
    IList<string>

    OptionalWeights(SrndQuery)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public void OptionalWeights(SrndQuery q)
    Parameters
    Type Name Description
    SrndQuery q

    OrQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery OrQuery()
    Returns
    Type Description
    SrndQuery

    Parse(string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public static SrndQuery Parse(string query)
    Parameters
    Type Name Description
    string query
    Returns
    Type Description
    SrndQuery

    Parse2(string)

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public virtual SrndQuery Parse2(string query)
    Parameters
    Type Name Description
    string query
    Returns
    Type Description
    SrndQuery

    PrefixOperatorQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery PrefixOperatorQuery()
    Returns
    Type Description
    SrndQuery

    PrimaryQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery PrimaryQuery()
    Returns
    Type Description
    SrndQuery

    ReInit(ICharStream)

    Reinitialize.

    Declaration
    public virtual void ReInit(ICharStream stream)
    Parameters
    Type Name Description
    ICharStream stream

    ReInit(QueryParserTokenManager)

    Reinitialize.

    Declaration
    public virtual void ReInit(QueryParserTokenManager tm)
    Parameters
    Type Name Description
    QueryParserTokenManager tm

    SimpleTerm()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery SimpleTerm()
    Returns
    Type Description
    SrndQuery

    TopSrndQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery TopSrndQuery()
    Returns
    Type Description
    SrndQuery

    WQuery()

    This class is generated by JavaCC. The only method that clients should need to call is Parse(string).

    This parser generates queries that make use of position information (Span queries). It provides positional operators (w and n) that accept a numeric distance, as well as boolean operators (and, or, and not, wildcards (/// and ?), quoting (with "), and boosting (via ^).

    The operators (W, N, AND, OR, NOT) can be expressed lower-cased or upper-cased, and the non-unary operators (everything but NOT) support both infix (a AND b AND c) and prefix AND(a, b, c) notation.

    The W and N operators express a positional relationship among their operands. N is ordered, and W is unordered. The distance is 1 by default, meaning the operands are adjacent, or may be provided as a prefix from 2-99. So, for example, 3W(a, b) means that terms a and b must appear within three positions of each other, or in other words, up to two terms may appear between a and b.

    Declaration
    public SrndQuery WQuery()
    Returns
    Type Description
    SrndQuery
    Back to top Copyright © 2024 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.