Full text search with Elasticsearch
summary
Shows how to build full‑text product search with Elasticsearch: create an index and mapping (text vs keyword), insert six example products, and run match and multi_match queries that return two sweaters for "sweater". Explains the inverted index, tokenizers, token filters, custom analyzers for stop words and synonyms, and that changing analyzers requires reindexing. Demonstrates phrase suggesters and fast autocomplete using n‑grams plus a bool_prefix search over the n‑gram subfields.
AI-written summary · about
