Show / Hide Table of Contents

    Class CoreParser

    Assembles a IQueryBuilder which uses only core Lucene Query objects

    Inheritance
    System.Object
    CoreParser
    CorePlusExtensionsParser
    Implements
    IQueryBuilder
    Namespace: Lucene.Net.QueryParsers.Xml
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class CoreParser : object, IQueryBuilder

    Constructors

    | Improve this Doc View Source

    CoreParser(Analyzer, QueryParser)

    Construct an XML parser that uses a single instance QueryParser for handling UserQuery tags - all parse operations are synchronised on this parser

    Declaration
    public CoreParser(Analyzer analyzer, QueryParser parser)
    Parameters
    Type Name Description
    Analyzer analyzer
    QueryParser parser

    A QueryParser which will be synchronized on during parse calls.

    | Improve this Doc View Source

    CoreParser(String, Analyzer)

    Constructs an XML parser that creates a QueryParser for each UserQuery request.

    Declaration
    public CoreParser(string defaultField, Analyzer analyzer)
    Parameters
    Type Name Description
    System.String defaultField

    The default field name used by QueryParsers constructed for UserQuery tags

    Analyzer analyzer
    | Improve this Doc View Source

    CoreParser(String, Analyzer, QueryParser)

    Declaration
    protected CoreParser(string defaultField, Analyzer analyzer, QueryParser parser)
    Parameters
    Type Name Description
    System.String defaultField
    Analyzer analyzer
    QueryParser parser

    Fields

    | Improve this Doc View Source

    m_analyzer

    Declaration
    protected Analyzer m_analyzer
    Field Value
    Type Description
    Analyzer
    | Improve this Doc View Source

    m_filterFactory

    Declaration
    protected FilterBuilderFactory m_filterFactory
    Field Value
    Type Description
    FilterBuilderFactory
    | Improve this Doc View Source

    m_parser

    Declaration
    protected QueryParser m_parser
    Field Value
    Type Description
    QueryParser
    | Improve this Doc View Source

    m_queryFactory

    Declaration
    protected QueryBuilderFactory m_queryFactory
    Field Value
    Type Description
    QueryBuilderFactory
    | Improve this Doc View Source

    maxNumCachedFilters

    Declaration
    public static int maxNumCachedFilters
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    AddFilterBuilder(String, IFilterBuilder)

    Declaration
    public virtual void AddFilterBuilder(string nodeName, IFilterBuilder builder)
    Parameters
    Type Name Description
    System.String nodeName
    IFilterBuilder builder
    | Improve this Doc View Source

    AddQueryBuilder(String, IQueryBuilder)

    Declaration
    public virtual void AddQueryBuilder(string nodeName, IQueryBuilder builder)
    Parameters
    Type Name Description
    System.String nodeName
    IQueryBuilder builder
    | Improve this Doc View Source

    GetQuery(XmlElement)

    Declaration
    public virtual Query GetQuery(XmlElement e)
    Parameters
    Type Name Description
    XmlElement e
    Returns
    Type Description
    Query
    | Improve this Doc View Source

    Parse(Stream)

    Declaration
    public virtual Query Parse(Stream xmlStream)
    Parameters
    Type Name Description
    Stream xmlStream
    Returns
    Type Description
    Query
    | Improve this Doc View Source

    Parse(TextReader)

    Declaration
    public virtual Query Parse(TextReader xmlTextReader)
    Parameters
    Type Name Description
    TextReader xmlTextReader
    Returns
    Type Description
    Query
    | Improve this Doc View Source

    Parse(XmlDocument)

    Declaration
    public virtual Query Parse(XmlDocument xmlDocument)
    Parameters
    Type Name Description
    XmlDocument xmlDocument
    Returns
    Type Description
    Query
    | Improve this Doc View Source

    Parse(XmlReader)

    Declaration
    public virtual Query Parse(XmlReader xmlReader)
    Parameters
    Type Name Description
    XmlReader xmlReader
    Returns
    Type Description
    Query

    Implements

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