Skip to content

Commit 28b00e7

Browse files
authored
docs: clarify updating the index after settings changes (#201)
1 parent 2e96b45 commit 28b00e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,14 @@ chunkers:
508508

509509
> `.cocoindex_code/` is automatically added to `.gitignore` during init.
510510

511+
After editing `include_patterns`, `exclude_patterns`, or `language_overrides`:
512+
513+
- Run `ccc doctor` to preview which files match.
514+
- Run `ccc index` or `ccc search --refresh ...` to update the existing index.
515+
- You do not need to delete the index or restart the daemon for these file-matching changes.
516+
517+
If you add or change custom `chunkers`, restart the daemon first so the chunker registry is reloaded, then run `ccc index`.
518+
511519
Use `chunkers` when you want to control how a file type is split into chunks before indexing.
512520

513521
`module: example_toml_chunker:toml_chunker` means:

0 commit comments

Comments
 (0)