C# Class Lucene.Net.QueryParsers.Xml.CoreParser

Assembles a IQueryBuilder which uses only core Lucene Query objects
Inheritance: IQueryBuilder
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
maxNumCachedFilters int

Protected Properties

Property Type Description
analyzer Lucene.Net.Analysis.Analyzer
filterFactory FilterBuilderFactory
parser Lucene.Net.QueryParsers.Classic.QueryParser
queryFactory QueryBuilderFactory

Public Methods

Method Description
AddFilterBuilder ( string nodeName, IFilterBuilder builder ) : void
AddQueryBuilder ( string nodeName, IQueryBuilder builder ) : void
CoreParser ( Analyzer analyzer, QueryParser parser ) : Lucene.Net.Analysis

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

CoreParser ( string defaultField, Analyzer analyzer ) : Lucene.Net.Analysis

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

GetQuery ( XmlElement e ) : Query
Parse ( Stream xmlStream ) : Query
Parse ( TextReader xmlTextReader ) : Query
Parse ( XmlDocument xmlDocument ) : Query
Parse ( XmlReader xmlReader ) : Query

Protected Methods

Method Description
CoreParser ( string defaultField, Analyzer analyzer, QueryParser parser ) : Lucene.Net.Analysis

Private Methods

Method Description
ParseXML ( Stream pXmlFile ) : XmlDocument
ParseXML ( TextReader pXmlFile ) : XmlDocument
ParseXML ( XmlReader pXmlFile ) : XmlDocument

Method Details

AddFilterBuilder() public method

public AddFilterBuilder ( string nodeName, IFilterBuilder builder ) : void
nodeName string
builder IFilterBuilder
return void

AddQueryBuilder() public method

public AddQueryBuilder ( string nodeName, IQueryBuilder builder ) : void
nodeName string
builder IQueryBuilder
return void

CoreParser() public method

Construct an XML parser that uses a single instance QueryParser for handling UserQuery tags - all parse operations are synchronised on this parser
public CoreParser ( Analyzer analyzer, QueryParser parser ) : Lucene.Net.Analysis
analyzer Lucene.Net.Analysis.Analyzer
parser Lucene.Net.QueryParsers.Classic.QueryParser A which will be synchronized on during parse calls.
return Lucene.Net.Analysis

CoreParser() public method

Constructs an XML parser that creates a QueryParser for each UserQuery request.
public CoreParser ( string defaultField, Analyzer analyzer ) : Lucene.Net.Analysis
defaultField string The default field name used by s constructed for UserQuery tags
analyzer Lucene.Net.Analysis.Analyzer
return Lucene.Net.Analysis

CoreParser() protected method

protected CoreParser ( string defaultField, Analyzer analyzer, QueryParser parser ) : Lucene.Net.Analysis
defaultField string
analyzer Lucene.Net.Analysis.Analyzer
parser Lucene.Net.QueryParsers.Classic.QueryParser
return Lucene.Net.Analysis

GetQuery() public method

public GetQuery ( XmlElement e ) : Query
e System.Xml.XmlElement
return Lucene.Net.Search.Query

Parse() public method

public Parse ( Stream xmlStream ) : Query
xmlStream Stream
return Lucene.Net.Search.Query

Parse() public method

public Parse ( TextReader xmlTextReader ) : Query
xmlTextReader System.IO.TextReader
return Lucene.Net.Search.Query

Parse() public method

public Parse ( XmlDocument xmlDocument ) : Query
xmlDocument System.Xml.XmlDocument
return Lucene.Net.Search.Query

Parse() public method

public Parse ( XmlReader xmlReader ) : Query
xmlReader XmlReader
return Lucene.Net.Search.Query

Property Details

analyzer protected_oe property

protected Analyzer,Lucene.Net.Analysis analyzer
return Lucene.Net.Analysis.Analyzer

filterFactory protected_oe property

protected FilterBuilderFactory,Lucene.Net.QueryParsers.Xml filterFactory
return FilterBuilderFactory

maxNumCachedFilters public_oe static_oe property

public static int maxNumCachedFilters
return int

parser protected_oe property

protected QueryParser,Lucene.Net.QueryParsers.Classic parser
return Lucene.Net.QueryParsers.Classic.QueryParser

queryFactory protected_oe property

protected QueryBuilderFactory queryFactory
return QueryBuilderFactory