Expand description
§Search Configuration Module
Provides configuration constants for search indexing and querying.
These constants control resource usage and performance characteristics of the search functionality.
Constants§
- DEFAULT_
BUFFER_ SIZE - Default buffer size for the Tantivy index writer (50MB)
- DEFAULT_
FUZZY_ DISTANCE - Default fuzzy distance for typo tolerance
- DEFAULT_
SEARCH_ LIMIT - Default limit for search results
- FUZZY_
TRANSPOSE_ COST_ ONE - Whether transpositions cost 1 edit instead of 2 in fuzzy matching This makes fuzzy search more forgiving for common typos like “teh” -> “the”
- MAX_
BUFFER_ SIZE - Maximum buffer size for the Tantivy index writer (200MB)
- MAX_
FUZZY_ DISTANCE - Maximum fuzzy distance allowed
- MAX_
ITEMS_ PER_ CRATE - Maximum number of items to index per crate
- MAX_
QUERY_ LENGTH - Maximum allowed query length in characters
- MAX_
SEARCH_ LIMIT - Maximum allowed limit for search results