- The
aroundRadiussearch parameter, for all queries, to 1,000 meters. - The validity period of this rule to one month.
Using the API
To run the code examples on this page, install the latest API client. To create a rule with one of the API clients, use thesaveRule method using a rule object without a condition.
Using the dashboard
You can create this rule from the Algolia dashboard using either the Visual Editor or the Manual Editor.- Visual Editor
- Manual Editor
- In the Algolia dashboard, select your application and index, open Rules, and select New rule > Visual Editor.
- Select Create conditionless rule and click Apply.
- In Consequences, expand More consequences and select Apply search parameters.
Enter
{ "aroundRadius": 1000 }in Value and click Apply. - Select Add a date range, set the start and end dates one month apart, and click Apply.
- Click Review and Publish and review the rule. To forward the rule to replicas or other indices, select them under Copy rule to. Click Publish.
In JSON, you must write string values inside quotation marks, and number values and booleans without quotations.
For more information about JSON syntax,
see Algolia records.