validate_index
validate_index
Validate an existing .swsearch index file, checking schema integrity and
returning summary statistics. Use this to verify that an index was built
correctly before deploying it.
Parameters
index_file
Path to the .swsearch file to validate.
Returns
dict[str, Any] — A dictionary with:
valid(bool) — whether the index is validerror(str) — error message if invalidchunk_count(int) — number of chunks (if valid)file_count(int) — number of source files (if valid)config(dict) — index configuration (if valid)