Package com.attivio.sdk.search.fields
Class DocBoost
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.String[]getIds()Get the Ids for the documents to boost.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidsetIds(java.lang.String... value)Set the Ids for the documents to boost.voidsetIds(java.util.List<java.lang.String> value)Set the Ids for the documents to boost.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static DocBoostvalueOf(StringParser reader)-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, clone, copyOf, forEachField, forEachPhrase, forEachQuery, getDefaultName, getFieldName, isConstant, parse, quote, rewrite, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Method Detail
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
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.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
valueOf
public static DocBoost valueOf(StringParser reader)
-
-