querqy.lucene.rewrite.prms.PRMSQuery 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.prms;
import java.io.IOException;
import org.apache.lucene.index.IndexReader;
/**
* A query in the 'Probabilistic Retrieval Model for Semi-structured Data'
*
* @author rene
*
*/
public interface PRMSQuery {
PRMSQuery NEVER_MATCH_PRMS_QUERY = indexReader -> 0.0;
/**
* Calculate the probability of this query for a given index
*
* @param indexReader The IndexReader
* @return The probability of this query
* @throws IOException In case of an error when reading from the index
*/
double calculateLikelihood(IndexReader indexReader) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy