Class UserInputQueryBuilder
UserInputQueryBuilder uses 1 of 2 strategies for thread-safe parsing:
- Synchronizing access to "Parse" calls on a previously supplied QueryParser or..
- creating a new QueryParser object for each parse request
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Xml.Builders
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class UserInputQueryBuilder : IQueryBuilder
Constructors
UserInputQueryBuilder(QueryParser)
This constructor has the disadvantage of not being able to change choice of default field name
Declaration
public UserInputQueryBuilder(QueryParser parser)
Parameters
Type | Name | Description |
---|---|---|
QueryParser | parser | thread un-safe query parser |
UserInputQueryBuilder(string, Analyzer)
UserInputQueryBuilder uses 1 of 2 strategies for thread-safe parsing:
- Synchronizing access to "Parse" calls on a previously supplied QueryParser or..
- creating a new QueryParser object for each parse request
Declaration
public UserInputQueryBuilder(string defaultField, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
string | defaultField | |
Analyzer | analyzer |
Methods
CreateQueryParser(string, Analyzer)
Method to create a QueryParser - designed to be overridden
Declaration
protected virtual QueryParser CreateQueryParser(string fieldName, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | |
Analyzer | analyzer |
Returns
Type | Description |
---|---|
QueryParser |
GetQuery(XmlElement)
(non-Javadoc) @see org.apache.lucene.xmlparser.QueryObjectBuilder#process(org.w3c.dom.Element)
Declaration
public virtual Query GetQuery(XmlElement e)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | e |
Returns
Type | Description |
---|---|
Query |