🔍 Elasticsearch
Beginner
What is the difference between full-text search and exact match in Elasticsearch?
Answer
Full-text search uses text field type and the match query. The input text and the stored value are both run through an analyzer (tokenization, lowercasing, stemming, etc.) before comparison. This means searching for "Running Shoes" will match documents containing "run" or "shoe" depending on the analyzer. Exact match uses the keyword field type and the term query. No analysis is applied — the value must match exactly, including case and whitespace. Use keyword for structured data like IDs, status codes, email addresses, and categories.