Package com.attivio.sdk.search.relevancy
Class CategoryBoostFeature
- java.lang.Object
-
- com.attivio.sdk.search.relevancy.RelevancyFeatureDef
-
- com.attivio.sdk.search.relevancy.CategoryBoostFeature
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class CategoryBoostFeature extends RelevancyFeatureDef
Dynamic feature that acts as a template for per-category features based on aFieldExpression
.The name of the category boost feature acts as the prefix for for the per-category features.
Example: <f:categoryBoost name="t_" field="table"/>
This feature will result in creating a per-table feature, with feature names following the t_<tablename> pattern.
Category boost features are referenced in models using the instantiated feature name, for example:
<f:feature name="t_metadata" weight="10.0"/> will add a constat boost of 10.0 for the "metadata" table.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CategoryBoostFeature(java.lang.String name, FieldExpression field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CategoryBoostFeature
clone()
boolean
equals(java.lang.Object other)
long
estimatedSize()
FieldExpression
getField()
Get the field that will generate the categories that will be used to create per-category features.int
hashCode()
void
setField(FieldExpression value)
Set the field that will generate the categories that will be used to create per-category features.java.lang.String
toString()
-
Methods inherited from class com.attivio.sdk.search.relevancy.RelevancyFeatureDef
getName, setName
-
-
-
-
Constructor Detail
-
CategoryBoostFeature
public CategoryBoostFeature(java.lang.String name, FieldExpression field)
-
-
Method Detail
-
getField
public FieldExpression getField()
Get the field that will generate the categories that will be used to create per-category features.
-
setField
public void setField(FieldExpression value)
Set the field that will generate the categories that will be used to create per-category features.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRelevancyFeatureDef
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classRelevancyFeatureDef
-
clone
public CategoryBoostFeature clone()
- Overrides:
clone
in classRelevancyFeatureDef
-
estimatedSize
public long estimatedSize()
- Overrides:
estimatedSize
in classRelevancyFeatureDef
-
-