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