Index contents and sync
Keep each index a lean copy of its source, update it through a queue, remove erased records everywhere, and rebuild it without taking search down.
- Required 1
- Recommended 3
Required
Remove erased records from every index
SRH-8Delete a record's entries from every keyword and vector index in the same job that deletes or erases the record. Include chunks, suggestions and cached result pages.
Recommended
Index only the fields people search
SRH-6Keep a written list of the fields each search index holds, and leave out every field nobody searches.
Keep search indexes in step with their source
SRH-7Update or remove a record's index entries within a set time after the source changes, such as 15 minutes, through a reliable queue. Rebuild the whole index on a schedule to repair drift.
Rebuild an index under a new name and switch an alias
SRH-9Point the app at an alias, never at an index by name. Build each new version of the index beside the old one, compare them, then move the alias in one step.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/search/index-contents-and-sync">Agent Wranglers search playbook</a>. In code you write, add a comment next to it with the same link.