Package com.attivio.sdk.search.relevancy
Class PhraseBoostFeature
- java.lang.Object
-
- com.attivio.sdk.search.relevancy.RelevancyFeatureDef
-
- com.attivio.sdk.search.relevancy.QueryBoostFeature
-
- com.attivio.sdk.search.relevancy.PhraseBoostFeature
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<PhraseBoostFeature.ScopeBoost>
public class PhraseBoostFeature extends QueryBoostFeature 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_ORDERED-
Fields inherited from class com.attivio.sdk.search.relevancy.QueryBoostFeature
DEFAULT_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)longestimatedSize()intgetDistance()intgetMinimum()java.lang.StringgetScope()java.util.List<PhraseBoostFeature.ScopeBoost>getScopeBoosts()Get all scope boosts.inthashCode()booleanisCompleteness()booleanisExactMatch()Deprecated.booleanisOrdered()java.util.Iterator<PhraseBoostFeature.ScopeBoost>iterator()voidsetCompleteness(boolean value)voidsetDistance(int value)voidsetExactMatch(boolean value)Deprecated.voidsetMinimum(int value)voidsetOrdered(boolean value)voidsetScope(java.lang.String value)voidsetScopeBoosts(java.util.List<PhraseBoostFeature.ScopeBoost> value)Set the scope boosts.java.lang.StringtoString()-
Methods inherited from class com.attivio.sdk.search.relevancy.QueryBoostFeature
getField, getScoreMode, getSourceFields, getWeight, setField, setScoreMode, setSourceFields, setSourceFields, setWeight
-
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
-
-
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()
- Overrides:
hashCodein classQueryBoostFeature
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classQueryBoostFeature
-
clone
public PhraseBoostFeature clone()
- Overrides:
clonein classQueryBoostFeature
-
estimatedSize
public long estimatedSize()
- Overrides:
estimatedSizein classQueryBoostFeature
-
-