public class RankingGroupOp extends java.lang.Object implements java.io.Serializable, RankingGroup
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
RankingGroupOp() |
RankingGroupOp(OpType opType,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
OpType |
getOpType()
Returns the operation type
|
java.lang.String |
getValue()
Returns the value
|
void |
setOpType(OpType opType)
Sets the operation type
|
void |
setValue(java.lang.String value)
Sets the value
|
java.lang.String |
toXML()
Converts the ranking group to xml for submission to the engine.
|
public RankingGroupOp(OpType opType, java.lang.String value)
value
- Apply the specified operation to this value, which can be a floating point constant (0-1000);
$relevance (for the internal statement relevancy score);
$weight (for the internal document relevancy score); and $size (for the size of the result group)public RankingGroupOp()
public OpType getOpType()
public void setOpType(OpType opType)
opType
- the operation typepublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the valuepublic java.lang.String toXML()
RankingGroup
toXML
in interface RankingGroup