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

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

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