Package com.attivio.sdk.search.relevancy
Class PhraseBoostFeature
- java.lang.Object
-
- com.attivio.sdk.search.relevancy.RelevancyFeatureDef
-
- com.attivio.sdk.search.relevancy.PhraseBoostFeature
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<PhraseBoostFeature.ScopeBoost>
public class PhraseBoostFeature extends RelevancyFeatureDef implements java.lang.Iterable<PhraseBoostFeature.ScopeBoost>
Relevancy feature that extracts phrase queries from the user query.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhraseBoostFeature.ScopeBoostExperimental boost for phrases that match in specified scopes.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_DISTANCEstatic intDEFAULT_MINIMUMstatic booleanDEFAULT_ORDEREDprotected static ScoreModeDEFAULT_SCORE_MODE
-
Constructor Summary
Constructors Constructor Description PhraseBoostFeature(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddScopeBoost(PhraseBoostFeature.ScopeBoost value)Add a scope boost.PhraseBoostFeatureclone()booleanequals(java.lang.Object other)intgetDistance()java.lang.StringgetField()intgetMinimum()java.lang.StringgetScope()java.util.List<PhraseBoostFeature.ScopeBoost>getScopeBoosts()Get all scope boosts.ScoreModegetScoreMode()java.util.Set<java.lang.String>getSourceFields()FieldExpressiongetWeight()inthashCode()booleanisCompleteness()booleanisExactMatch()Deprecated.booleanisOrdered()java.util.Iterator<PhraseBoostFeature.ScopeBoost>iterator()voidsetCompleteness(boolean value)voidsetDistance(int value)voidsetExactMatch(boolean value)Deprecated.voidsetField(java.lang.String value)voidsetMinimum(int value)voidsetOrdered(boolean value)voidsetScope(java.lang.String value)voidsetScopeBoosts(java.util.List<PhraseBoostFeature.ScopeBoost> value)Set the scope boosts.voidsetScoreMode(ScoreMode value)voidsetSourceFields(java.lang.String... value)voidsetSourceFields(java.util.Set<java.lang.String> value)voidsetWeight(FieldExpression value)java.lang.StringtoString()-
Methods inherited from class com.attivio.sdk.search.relevancy.RelevancyFeatureDef
getName, setName
-
-
-
-
Field Detail
-
DEFAULT_MINIMUM
public static final int DEFAULT_MINIMUM
- See Also:
- Constant Field Values
-
DEFAULT_DISTANCE
public static final int DEFAULT_DISTANCE
- See Also:
- Constant Field Values
-
DEFAULT_ORDERED
public static final boolean DEFAULT_ORDERED
- See Also:
- Constant Field Values
-
DEFAULT_SCORE_MODE
protected static final ScoreMode DEFAULT_SCORE_MODE
-
-
Method Detail
-
getScope
public java.lang.String getScope()
-
setScope
public void setScope(java.lang.String value)
-
getMinimum
public int getMinimum()
-
setMinimum
public void setMinimum(int value)
-
getDistance
public int getDistance()
-
setDistance
public void setDistance(int value)
-
isOrdered
public boolean isOrdered()
-
setOrdered
public void setOrdered(boolean value)
-
isCompleteness
public boolean isCompleteness()
-
setCompleteness
public void setCompleteness(boolean value)
-
isExactMatch
@Deprecated public boolean isExactMatch()
Deprecated.
-
setExactMatch
@Deprecated public void setExactMatch(boolean value)
Deprecated.
-
addScopeBoost
public void addScopeBoost(PhraseBoostFeature.ScopeBoost value)
Add a scope boost.EXPERIMENTAL: Scope boosts are currently experimental and may change and/or be removed in the future.
-
getScopeBoosts
public java.util.List<PhraseBoostFeature.ScopeBoost> getScopeBoosts()
Get all scope boosts.EXPERIMENTAL: Scope boosts are currently experimental and may change and/or be removed in the future.
-
setScopeBoosts
public void setScopeBoosts(java.util.List<PhraseBoostFeature.ScopeBoost> value)
Set the scope boosts.EXPERIMENTAL: Scope boosts are currently experimental and may change and/or be removed in the future.
-
iterator
public java.util.Iterator<PhraseBoostFeature.ScopeBoost> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<PhraseBoostFeature.ScopeBoost>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object other)
-
clone
public PhraseBoostFeature clone()
-
getField
public java.lang.String getField()
-
setField
public void setField(java.lang.String value)
-
getWeight
public FieldExpression getWeight()
-
setWeight
public void setWeight(FieldExpression value)
-
getSourceFields
public java.util.Set<java.lang.String> getSourceFields()
-
setSourceFields
public void setSourceFields(java.util.Set<java.lang.String> value)
-
setSourceFields
public void setSourceFields(java.lang.String... value)
-
getScoreMode
public ScoreMode getScoreMode()
-
setScoreMode
public void setScoreMode(ScoreMode value)
-
-