public class Expression extends Object implements Serializable
A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.
Constructor and Description |
---|
Expression() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getExpressionName()
A string that represents the name of an index field.
|
String |
getExpressionValue()
The expression to evaluate for sorting while processing a search
request.
|
int |
hashCode() |
void |
setExpressionName(String expressionName)
A string that represents the name of an index field.
|
void |
setExpressionValue(String expressionValue)
The expression to evaluate for sorting while processing a search
request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Expression |
withExpressionName(String expressionName)
A string that represents the name of an index field.
|
Expression |
withExpressionValue(String expressionValue)
The expression to evaluate for sorting while processing a search
request.
|
public String getExpressionName()
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
_id
.public void setExpressionName(String expressionName)
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
expressionName
- A string that represents the name of an index field. Field names begin
with a letter and can contain the following characters: a-z
(lowercase), 0-9, and _ (underscore). The name "score" is reserved and
cannot be used as a field name. To reference a document's ID, you can
use the name _id
.public Expression withExpressionName(String expressionName)
_id
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
expressionName
- A string that represents the name of an index field. Field names begin
with a letter and can contain the following characters: a-z
(lowercase), 0-9, and _ (underscore). The name "score" is reserved and
cannot be used as a field name. To reference a document's ID, you can
use the name _id
.public String getExpressionValue()
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.
Constraints:
Length: 1 - 10240
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.public void setExpressionValue(String expressionValue)
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.
Constraints:
Length: 1 - 10240
expressionValue
- The expression to evaluate for sorting while processing a search
request. The Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.public Expression withExpressionValue(String expressionValue)
Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10240
expressionValue
- The expression to evaluate for sorting while processing a search
request. The Expression
syntax is based on JavaScript
expressions. For more information, see Configuring Expressions in the Amazon
CloudSearch Developer Guide.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.