querqy.lucene.rewrite.FieldBoost 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 java.io.IOException;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.IndexSearcher;
import querqy.model.Term;
/**
* A FieldBoost provides the boost factors for all Lucene queries that are created from a single Querqy query Term.
* FieldBoosts must implement the equals and hashCode methods
*
* @author rene
*
*/
public interface FieldBoost {
float getBoost(String fieldname, IndexReader indexReader) throws IOException;
void registerTermSubQuery(TermSubQueryFactory termSubQueryFactory);
String toString(String fieldname);
int hashCode();
boolean equals(Object obj);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy