All Downloads are FREE. Search and download functionalities are using the official Maven repository.

querqy.lucene.rewrite.LuceneQueryFactoryVisitor Maven / Gradle / Ivy

There is a newer version: 5.8.lucene961.1
Show newest version
package querqy.lucene.rewrite;

public abstract class LuceneQueryFactoryVisitor {

    public R visit(final BooleanQueryFactory factory) {
        factory.getClauses().forEach(clause -> clause.queryFactory.accept(this));
        return null;
    }

    public R visit(final DisjunctionMaxQueryFactory factory) {
        factory.disjuncts.forEach(disjunct -> disjunct.accept(this));
        return null;
    }

    public R visit(final TermSubQueryFactory factory) {
        return factory.root.accept(this);
    }



    public R visit(final TermQueryFactory factory) {
        return null;
    }



    public R visit(final NeverMatchQueryFactory factory) {
        return null;
    }



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy