Class CoreParser
Assembles a IQueryBuilder which uses only core Lucene Query objects
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class CoreParser : IQueryBuilder
Constructors
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.
|
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 |
string |
defaultField |
The default field name used by QueryParsers constructed for UserQuery tags
|
Analyzer |
analyzer |
|
CoreParser(string, Analyzer, QueryParser)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
protected CoreParser(string defaultField, Analyzer analyzer, QueryParser parser)
Parameters
Fields
m_analyzer
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
protected Analyzer m_analyzer
Field Value
Type |
Description |
Analyzer |
|
m_filterFactory
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
protected FilterBuilderFactory m_filterFactory
Field Value
m_parser
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
protected QueryParser m_parser
Field Value
m_queryFactory
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
protected QueryBuilderFactory m_queryFactory
Field Value
maxNumCachedFilters
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public static int maxNumCachedFilters
Field Value
Methods
AddFilterBuilder(string, IFilterBuilder)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual void AddFilterBuilder(string nodeName, IFilterBuilder builder)
Parameters
AddQueryBuilder(string, IQueryBuilder)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual void AddQueryBuilder(string nodeName, IQueryBuilder builder)
Parameters
GetQuery(XmlElement)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual Query GetQuery(XmlElement e)
Parameters
Returns
Parse(Stream)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual Query Parse(Stream xmlStream)
Parameters
Type |
Name |
Description |
Stream |
xmlStream |
|
Returns
Parse(TextReader)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual Query Parse(TextReader xmlTextReader)
Parameters
Returns
Parse(XmlDocument)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual Query Parse(XmlDocument xmlDocument)
Parameters
Returns
Parse(XmlReader)
Assembles a IQueryBuilder which uses only core Lucene Query objects
Declaration
public virtual Query Parse(XmlReader xmlReader)
Parameters
Returns
Implements