List of usage examples for org.apache.lucene.queryParser.surround.query SpanNearClauseFactory getFieldName
public String getFieldName()
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 w ww.j ava2s .com }); }