public class SpanNearClauseFactory extends Object
SpanOrQuery
Constructor and Description |
---|
SpanNearClauseFactory(IndexReader reader,
String fieldName,
BasicQueryFactory qf) |
Modifier and Type | Method and 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() |
public SpanNearClauseFactory(IndexReader reader, String fieldName, BasicQueryFactory qf)
public IndexReader getIndexReader()
public String getFieldName()
public BasicQueryFactory getBasicQueryFactory()
public int size()
public void clear()
protected void addSpanQueryWeighted(SpanQuery sq, float weight)
public void addTermWeighted(Term t, float weight) throws IOException
IOException
public void addSpanQuery(Query q)
public SpanQuery makeSpanClause()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.