build_index
build_index
Build a search index from a single directory. This is a convenience wrapper
around build_index_from_sources()
for the common case of indexing one directory.
Parameters
source_dir
Directory to scan for documents.
output_file
Output .swsearch file path.
file_types
File extensions to include.
exclude_patterns
Glob patterns to exclude.
languages
Language codes. Defaults to ["en"].
tags
Global tags for all chunks.
Returns
None