Class BasicQueryFactory
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.BasicQueryFactory
-
public class BasicQueryFactory extends Object
Factory for creating basic term queries
-
-
Constructor Summary
Constructors Constructor Description BasicQueryFactory()
BasicQueryFactory(int maxBasicQueries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkMax()
boolean
equals(Object obj)
Two BasicQueryFactory's are equal when they generate the same types of basic queries, or both cannot generate queries anymore.int
getMaxBasicQueries()
int
getNrQueriesMade()
int
hashCode()
SpanTermQuery
newSpanTermQuery(Term term)
TermQuery
newTermQuery(Term term)
String
toString()
-
-
-
Method Detail
-
getNrQueriesMade
public int getNrQueriesMade()
-
getMaxBasicQueries
public int getMaxBasicQueries()
-
checkMax
protected void checkMax() throws TooManyBasicQueries
- Throws:
TooManyBasicQueries
-
newTermQuery
public TermQuery newTermQuery(Term term) throws TooManyBasicQueries
- Throws:
TooManyBasicQueries
-
newSpanTermQuery
public SpanTermQuery newSpanTermQuery(Term term) throws TooManyBasicQueries
- Throws:
TooManyBasicQueries
-
-