WARNING: Version 1.7 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.
Limits the number of tokens that are indexed per document and field.
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