Class DocBoost

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class DocBoost
    extends FieldExpression
    Boost Documents Specified By Document Id.

    NOTE: Documents will get a boost scaled between 1.0 and 0.0 based on the order specified, with the first document specified getting a boost of 1.0.

    See Also:
    Serialized Form
    • Constructor Detail

      • DocBoost

        public DocBoost​(java.lang.String... ids)
      • DocBoost

        public DocBoost​(java.util.List<java.lang.String> ids)
    • Method Detail

      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • isConstant

        public boolean isConstant()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • getIds

        public java.lang.String[] getIds()
        Get the Ids for the documents to boost.
      • setIds

        public void setIds​(java.lang.String... value)
        Set the Ids for the documents to boost.
      • setIds

        public void setIds​(java.util.List<java.lang.String> value)
        Set the Ids for the documents to boost.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object