
se.l4.silo.search.SearchHit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silo-search-api Show documentation
Show all versions of silo-search-api Show documentation
API for Lucene-based querying for Silo.
The newest version!
package se.l4.silo.search;
import java.util.function.Function;
public interface SearchHit
{
/**
* Get the score of this hit.
*
* @return
*/
float score();
/**
* Get the matching data for this hit.
*
* @return
*/
T item();
default SearchHit transform(Function func)
{
return new SearchHitImpl<>(func.apply(item()), score());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy