- Docs
- Cloaked Search
- Usage
- Configuration
- Index Prefixes
Index Prefixes
The index_prefixes parameter enables the indexing of term prefixes to allow for prefix searches. It accepts the following settings:
min_chars(Optional, integer) The minimum prefix length to index. Must be greater than0, and defaults to2. The value is inclusive.max_chars(Optional, integer) The maximum prefix length to index. Must be at leastmin_charsand defaults to5. The value is inclusive.
JSON{ "mappings": { "properties": { "full_name": { "type": "text", "index_prefixes": { "min_chars" : 1, "max_chars" : 10 } } } } }