querqy.lucene.rewrite.LuceneQueryFactoryVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querqy-lucene Show documentation
Show all versions of querqy-lucene Show documentation
Querqy library for query rewriting for Lucene
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