Skip to main content

One post tagged with "analyzers"

View All Tags

Text Analyzers and Custom Mappings in OpenSearch

· 7 min read
FoundryDB Team
Engineering @ FoundryDB

The analyzer you assign to a field determines how text is broken into tokens at index time and at query time. Choosing the wrong one produces surprising results: searches that miss obvious matches, or matches that should not have ranked at all. This post compares the built-in English and standard analyzers, then builds a custom analyzer with synonym support.

All examples were tested against OpenSearch 2.19.1 on FoundryDB staging.