Interface KnnPredicateOptionsStep
- All Superinterfaces:
PredicateFinalStep,PredicateScoreStep<KnnPredicateOptionsStep>
- All Known Implementing Classes:
KnnPredicateFieldStepImpl
public interface KnnPredicateOptionsStep
extends PredicateScoreStep<KnnPredicateOptionsStep>, PredicateFinalStep
The final step in a "knn" predicate definition, where optional parameters can be set.
-
Method Summary
Modifier and TypeMethodDescriptionfilter(Function<? super SearchPredicateFactory, ? extends PredicateFinalStep> clauseContributor) default KnnPredicateOptionsStepfilter(PredicateFinalStep searchPredicate) filter(SearchPredicate searchPredicate) requiredMinimumSimilarity(float similarity) Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep
toPredicateMethods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateScoreStep
boost, constantScore
-
Method Details
-
filter
-
filter
-
filter
KnnPredicateOptionsStep filter(Function<? super SearchPredicateFactory, ? extends PredicateFinalStep> clauseContributor) -
requiredMinimumSimilarity
- Parameters:
similarity- A similarity limit: documents with vectors distance to which, according to the configured similarity function, is further than this limit will be filtered out from the results.- Returns:
this, for method chaining.
-