C# Class Lucene.Net.QueryParsers.Xml.Builders.UserInputQueryBuilder

UserInputQueryBuilder uses 1 of 2 strategies for thread-safe parsing: 1) Synchronizing access to "Parse" calls on a previously supplied QueryParser or.. 2) creating a new QueryParser object for each parse request
Inheritance: IQueryBuilder
显示文件 Open project: apache/lucenenet

Public Methods

Method Description
GetQuery ( XmlElement e ) : Query

(non-Javadoc) @see org.apache.lucene.xmlparser.QueryObjectBuilder#process(org.w3c.dom.Element)

UserInputQueryBuilder ( QueryParser parser ) : Lucene.Net.Analysis

This constructor has the disadvantage of not being able to change choice of default field name

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

Protected Methods

Method Description
CreateQueryParser ( string fieldName, Analyzer analyzer ) : QueryParser

Method to create a QueryParser - designed to be overridden

Method Details

CreateQueryParser() protected method

Method to create a QueryParser - designed to be overridden
protected CreateQueryParser ( string fieldName, Analyzer analyzer ) : QueryParser
fieldName string
analyzer Lucene.Net.Analysis.Analyzer
return Lucene.Net.QueryParsers.Classic.QueryParser

GetQuery() public method

(non-Javadoc) @see org.apache.lucene.xmlparser.QueryObjectBuilder#process(org.w3c.dom.Element)
public GetQuery ( XmlElement e ) : Query
e System.Xml.XmlElement
return Lucene.Net.Search.Query

UserInputQueryBuilder() public method

This constructor has the disadvantage of not being able to change choice of default field name
public UserInputQueryBuilder ( QueryParser parser ) : Lucene.Net.Analysis
parser Lucene.Net.QueryParsers.Classic.QueryParser thread un-safe query parser
return Lucene.Net.Analysis

UserInputQueryBuilder() public method

public UserInputQueryBuilder ( string defaultField, Analyzer analyzer ) : Lucene.Net.Analysis
defaultField string
analyzer Lucene.Net.Analysis.Analyzer
return Lucene.Net.Analysis