Limits the number of tokens that are indexed per document and field.
Setting | Description |
---|---|
| The maximum number of tokens that should be indexed
per document and field. The default is |
| If set to |
Here is an example:
PUT /limit_example { "settings": { "analysis": { "analyzer": { "limit_example": { "type": "custom", "tokenizer": "standard", "filter": ["lowercase", "five_token_limit"] } }, "filter": { "five_token_limit": { "type": "limit", "max_token_count": 5 } } } } }