public static final class FieldExpression.Builder
A field expression builder. A name and expression must be supplied.
Constructors
Builder()
public Builder()
Methods
build()
public FieldExpression build()
Builds the FieldExpression. An expression and name for the expression must be given.
Returns | |
---|---|
Type | Description |
FieldExpression |
the built FieldExpression |
setExpression(String expression)
public FieldExpression.Builder setExpression(String expression)
Sets the expression to evaluate to return in ScoredDocument.
Parameter | |
---|---|
Name | Description |
expression |
String an expression to evaluate and return in a ScoredDocument field |
Returns | |
---|---|
Type | Description |
FieldExpression.Builder |
this Builder |
setName(String name)
public FieldExpression.Builder setName(String name)
Sets the name of the expression. The name must be a valid field name.
Parameter | |
---|---|
Name | Description |
name |
String the name of the expression |
Returns | |
---|---|
Type | Description |
FieldExpression.Builder |
this Builder |