---
title: "Index contents and sync · Agent Wranglers"
url: https://agentwranglers.se/playbook/search/index-contents-and-sync
parts: 4
tokens_total: 3311
updated: 2026-10-27
build: a2a6bdfed830
tokens: 608
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Index contents and sync

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Search](https://agentwranglers.se/playbook/search.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-27.

> 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.

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/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.

## Required

- SRH-8 [Remove erased records from every index](https://agentwranglers.se/playbook/search/index-contents-and-sync/erase-from-indexes.md) · 957 tokens · updated 2026-10-27
  Delete 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

- SRH-6 [Index only the fields people search](https://agentwranglers.se/playbook/search/index-contents-and-sync/search-index-fields.md) · 620 tokens · updated 2026-10-27
  Keep a written list of the fields each search index holds, and leave out every field nobody searches.
- SRH-7 [Keep search indexes in step with their source](https://agentwranglers.se/playbook/search/index-contents-and-sync/search-index-sync.md) · 916 tokens · updated 2026-10-27
  Update 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.
- SRH-9 [Rebuild an index under a new name and switch an alias](https://agentwranglers.se/playbook/search/index-contents-and-sync/reindex-with-alias.md) · 818 tokens · updated 2026-10-27
  Point 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.

- Previous: [Engines and indexes](https://agentwranglers.se/playbook/search/engines-and-indexes.md)
- Next: [Access and limits](https://agentwranglers.se/playbook/search/access-and-limits.md)
- [All chapters](https://agentwranglers.se/playbook/search.md)
