public class UserInputQueryBuilder extends Object implements QueryBuilder
Constructor and Description |
---|
UserInputQueryBuilder(QueryParser parser)
This constructor has the disadvantage of not being able to change choice of default field name
|
UserInputQueryBuilder(String defaultField,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
protected QueryParser |
createQueryParser(String fieldName,
Analyzer analyzer)
Method to create a QueryParser - designed to be overridden
|
Query |
getQuery(Element e) |
public UserInputQueryBuilder(QueryParser parser)
parser
- thread un-safe query parserpublic Query getQuery(Element e) throws ParserException
getQuery
in interface QueryBuilder
ParserException
protected QueryParser createQueryParser(String fieldName, Analyzer analyzer)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.