Create a Query Cache
Before you begin: You can add multiple query caches to the same command.
- In the Administration Console, go to Search > Search API.
- Under Commands, select /search-api > Search cache.
-
Under Search cache, click Add search
cache and create one of the following:
- Consistent: creates a new cache every time the index is updated.
- Time-based: keeps a query in cache for N seconds.
-
(Optional) Under warm-up queries, define one or more queries
to cache automatically.
- Enter the query and any parameters as they appear in the search URL.
- For example, to search for “new york city” while restricting the search to the sl0 search logic, enter: q=new%20york%20city&logic=sl0
- For details on available parameters, see Appendix - Search API Parameters.
- (Optional) Modify the other configuration options from their default values.
- Click Apply.