GetSearchStringParameterNode
@ExperimentalAppSearchApi
public final class GetSearchStringParameterNode implements FunctionNode
FunctionNode that represents the getSearchStringParameter function.
The getSearchStringParameter function retrieves the String parameter stored at the index in the list provided by getSearchStringParameters.
The String parameter can be used in a query and is treated as plain text. It will be segmented, normalized, and stripped of punctuation. Operators such as AND will be treated as plain text while operators such as negation ("-") and property restricts (":") will be treated as punctuation and removed.
So for the query `foo OR getSearchStringParameter(0)`, where getSearchStringParameter(0) contains "bar AND sender:recipient", the string will be segmented into
- bar
- AND
- sender
- :
- recipient
Summary
Public constructors |
|---|
GetSearchStringParameterNode(int searchStringIndex)Constructor for |
Public methods |
|
|---|---|
boolean |
|
@NonNull String |
Returns the name of the function represented by |
int |
Returns the index of the SearchString parameter to be retrieved from |
int |
hashCode() |
void |
setSearchStringIndex(int searchStringIndex)Sets the index of the SearchString parameter provided in |
@NonNull String |
toString()Returns the string representation of |
Inherited Constants |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
GetSearchStringParameterNode
public GetSearchStringParameterNode(int searchStringIndex)
Constructor for GetSearchStringParameterNode that takes in the index of the SearchString parameter provided in getSearchStringParameters.
Public methods
getFunctionName
public @NonNull String getFunctionName()
Returns the name of the function represented by GetSearchStringParameterNode.
getSearchStringIndex
public int getSearchStringIndex()
Returns the index of the SearchString parameter to be retrieved from getSearchStringParameters.
setSearchStringIndex
public void setSearchStringIndex(int searchStringIndex)
Sets the index of the SearchString parameter provided in getSearchStringParameters to be represented by GetSearchStringParameterNode.
toString
public @NonNull String toString()
Returns the string representation of GetSearchStringParameterNode.
The string representation of GetSearchStringParameterNode is the function name followed by the searchStringIndex surrounded by parentheses. For example, the string representation of GetSearchStringParameterNode(1) is `getSearchStringParameter(1)`.