Class 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 a FieldExpression.

    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 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 class java.lang.Object