org.apache.lucene.queryParser.surround.query
Class SpanNearClauseFactory
java.lang.Object
org.apache.lucene.queryParser.surround.query.SpanNearClauseFactory
public class SpanNearClauseFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpanNearClauseFactory
public SpanNearClauseFactory(IndexReader reader,
String fieldName,
BasicQueryFactory qf)
getIndexReader
public IndexReader getIndexReader()
getFieldName
public String getFieldName()
getBasicQueryFactory
public BasicQueryFactory getBasicQueryFactory()
getTermEnum
public TermEnum getTermEnum(String termText)
throws IOException
- Throws:
IOException
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
addSpanNearQuery
public void addSpanNearQuery(Query q)
makeSpanNearClause
public SpanQuery makeSpanNearClause()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.