Example usage for org.apache.lucene.queryParser.surround.query SpanNearClauseFactory getFieldName

List of usage examples for org.apache.lucene.queryParser.surround.query SpanNearClauseFactory getFieldName

Introduction

In this page you can find the example usage for org.apache.lucene.queryParser.surround.query SpanNearClauseFactory getFieldName.

Prototype

public String getFieldName() 

Source Link

Usage

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
    });
}