Docs: expand search section with custom field, notes, and tokenization examples

Adds word-order, accent-insensitivity, and separator-agnostic notes to the
intro, then new subsections covering custom_fields.name/value query syntax
with tokenization examples and a limitation note for custom date fields, plus
a notes.user/notes.note subsection.

Also prefetch document versions during index_reindex.

Co-Authored-By: Antoine Mérino <3023499+Merinorus@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Trenton H
2026-03-30 14:28:46 -07:00
co-authored by Antoine Mérino Claude Sonnet 4.6
parent 8107b7d209
commit 6699679c29
2 changed files with 54 additions and 6 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ def index_reindex(*, iter_wrapper: IterWrapper[Document] = _identity) -> None:
"document_type",
"storage_path",
"owner",
).prefetch_related("tags", "notes", "custom_fields")
).prefetch_related("tags", "notes", "custom_fields", "versions")
get_backend().rebuild(documents, iter_wrapper=iter_wrapper)
reset_backend()