IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. 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 } } } } }