querqy.lucene.rewrite.LuceneTermQueryBuilder 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
The newest version!
package querqy.lucene.rewrite;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.TermQuery;
import querqy.lucene.rewrite.DocumentFrequencyCorrection;
import querqy.lucene.rewrite.FieldBoost;
import querqy.lucene.rewrite.TermQueryBuilder;
import java.util.Optional;
public class LuceneTermQueryBuilder implements TermQueryBuilder {
@Override
public Optional getDocumentFrequencyCorrection() {
return Optional.empty();
}
@Override
public TermQuery createTermQuery(final Term term, final FieldBoost boost) {
return new TermQuery(term);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy