List of usage examples for org.apache.lucene.queryParser.surround.query SpanNearClauseFactory addTermWeighted
public void addTermWeighted(Term t, float weight) throws IOException
From source file:it.intext.pattern.gindex.SpanSimpleTerm.java
License:Apache License
public void addSpanQueries(final SpanNearClauseFactory sncf) throws IOException { visitMatchingTerms(sncf.getIndexReader(), sncf.getFieldName(), new MatchingTermVisitor() { public void visitMatchingTerm(Term term) throws IOException { sncf.addTermWeighted(term, getWeight()); }//from ww w. j a v a2 s. c o m }); }