Class SpanNearClauseFactory
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SpanNearClauseFactory
-
public class SpanNearClauseFactory extends java.lang.Object
Factory forSpanOrQuery
-
-
Constructor Summary
Constructors Constructor Description SpanNearClauseFactory(IndexReader reader, java.lang.String fieldName, BasicQueryFactory qf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSpanQuery(Query q)
void
addTermWeighted(Term t, float weight)
void
clear()
BasicQueryFactory
getBasicQueryFactory()
java.lang.String
getFieldName()
IndexReader
getIndexReader()
SpanQuery
makeSpanClause()
int
size()
-
-
-
Constructor Detail
-
SpanNearClauseFactory
public SpanNearClauseFactory(IndexReader reader, java.lang.String fieldName, BasicQueryFactory qf)
-
-
Method Detail
-
getIndexReader
public IndexReader getIndexReader()
-
getFieldName
public java.lang.String getFieldName()
-
getBasicQueryFactory
public BasicQueryFactory getBasicQueryFactory()
-
size
public int size()
-
clear
public void clear()
-
addTermWeighted
public void addTermWeighted(Term t, float weight) throws java.io.IOException
- Throws:
java.io.IOException
-
addSpanQuery
public void addSpanQuery(Query q)
-
makeSpanClause
public SpanQuery makeSpanClause()
-
-