get_index_info
get_index_info
Retrieve information about a search index, including its type, configuration, and chunk/file counts. Use this to inspect an index before migrating it.
Parameters
index_path
Path to a .swsearch file. Non-.swsearch paths return {"type": "unknown"}
with no additional data.
Returns
dict[str, Any] — A dictionary containing:
type(str) —"sqlite"or"unknown"path(str) — the provided pathconfig(dict) — index configuration (SQLite only)total_chunks(int) — chunk count (SQLite only)total_files(int) — file count (SQLite only)