Rules
List of methods
Save rule |
Create or update a single Rule. |
Batch Rules |
Create or update a specified set of Rules, or all Rules. |
Get Rule |
Get the object/definition of a specific Rule. |
Delete Rule |
Delete a specific Rule using its id. |
Clear Rules |
Delete all Rules in an index. |
Search rules |
Search for rules matching various criteria. |
Replace all rules |
Push a new set of rules and erase all previous ones. |
Copy rules |
Copy the rules of an index to another index on the same app. |
Export Rules |
Retrieve an index’s full list of Rules using an iterator. |
It’s recommended to use the Kotlin API client, which is better suited for Android development.
Overview
Rules allows performing pre- and post-processing on queries matching specific patterns. For more details, please refer to our Rules overview.
Miscellaneous
Rules are applied at query time. Therefore, some search parameters can be used to control how rules are applied.
Most of the methods manipulate Rule objects, as described in detail in the different Rules methods.
Just like for objects or synonyms, write methods for rules are asynchronous: they return a taskID
that can be used by Wait for operations.