Class NotPredicateFinalStepImpl
java.lang.Object
org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
org.hibernate.search.engine.search.predicate.dsl.impl.NotPredicateFinalStepImpl
- All Implemented Interfaces:
NotPredicateFinalStep,PredicateFinalStep,PredicateScoreStep<NotPredicateFinalStep>
public final class NotPredicateFinalStepImpl
extends AbstractPredicateFinalStep
implements NotPredicateFinalStep
-
Field Summary
Fields inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
dslContext -
Constructor Summary
ConstructorsConstructorDescriptionNotPredicateFinalStepImpl(SearchPredicateDslContext<?> dslContext, PredicateFinalStep searchPredicate) NotPredicateFinalStepImpl(SearchPredicateDslContext<?> dslContext, SearchPredicate searchPredicate) -
Method Summary
Modifier and TypeMethodDescriptionboost(float boost) Boost the weight of the predicate in score computation.protected SearchPredicatebuild()Force the score of the predicate to a single constant, identical for all documents.Methods inherited from class org.hibernate.search.engine.search.predicate.dsl.spi.AbstractPredicateFinalStep
toPredicateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep
toPredicate
-
Constructor Details
-
NotPredicateFinalStepImpl
public NotPredicateFinalStepImpl(SearchPredicateDslContext<?> dslContext, SearchPredicate searchPredicate) -
NotPredicateFinalStepImpl
public NotPredicateFinalStepImpl(SearchPredicateDslContext<?> dslContext, PredicateFinalStep searchPredicate)
-
-
Method Details
-
build
- Specified by:
buildin classAbstractPredicateFinalStep
-
boost
Description copied from interface:PredicateScoreStepBoost the weight of the predicate in score computation.- Specified by:
boostin interfacePredicateScoreStep<NotPredicateFinalStep>- Parameters:
boost- The boost factor. Higher than 1 increases the weight in score computation, between 0 and 1 lowers the weight. Lower than 0 is for experts only.- Returns:
this, for method chaining.
-
constantScore
Description copied from interface:PredicateScoreStepForce the score of the predicate to a single constant, identical for all documents.By default, the score will be
1.0f, butboosts, if any, will still be applied to the predicate.- Specified by:
constantScorein interfacePredicateScoreStep<NotPredicateFinalStep>- Returns:
this, for method chaining.
-