WARNING: Version 6.2 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Limit Token Count Token Filter
editLimit Token Count Token Filter
editLimits 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 } } } } }