The Query condition is used to match the query string. The Query condition has the following properties:
context: The context of the condition. This must be set toquery.match_type: The type of match to perform. This can be set toexact,prefixorcontains.value: The value to match against.
Below is an example of the query condition which will apply the actions when the query has a prefix of "star".
{
"search_settings": {
"query_rules": [
{
"id": "1",
"conditions": [
[
{
"context": "query",
"match_type": "prefix",
"value": "star"
}
]
],
"actions": [
// actions that will apply for conditions
]
}
]
}
}