WARNING: Version 1.6 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:
index : analysis : analyzer : myAnalyzer : type : custom tokenizer : standard filter : [lowercase, five_token_limit] filter : five_token_limit : type : limit max_token_count : 5