Description
Summary
Expose validated tokenizer/index options for deployments that need a different full-text indexing policy, without changing the universal default.
Problem to solve
Language-specific workloads can prefer a character n-gram index. Hard-coding one deployment's 2–3 character n-grams into upstream would impose a policy on other languages, so an explicit supported configuration and rebuild path is preferable.
Proposed solution
Allow a small validated tokenizer configuration, retain current defaults when omitted, and make index-option changes require a successful explicit rebuild. Report whether replacement actually occurred; do not silently rewrite all indexes on startup or claim that every tokenizer improves relevance.
Evidence and limits
Six real temporary-LanceDB cases compare actual stores and both raw FTS and public BM25 retrieval. For a synthetic Chinese substring, official raw FTS returns zero and the downstream n-gram index returns one; both public readers return the row because current upstream provides lexical fallback. Whole-phrase and Latin controls work in both. Therefore this is an indexing-policy option, not a report that current official Chinese retrieval is broken or a performance claim. Temporary databases were removed.
Related #297 discusses cross-script query expansion, a different query-time mapping feature. Current upstream rebuild error handling must be preserved.
Activity