1. Docs

Index Phrases - Added in 2.1.0

The index_phrases parameter enables the indexing of two-term word combinations (shingles) to allow for phrase searches. It defaults to false.

JSON
{ "mappings": { "properties": { "body": { "type": "text", "index_phrases": true } } } }

Was this page helpful?