Module config

Module config 

Source
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