There is a Keep Types Token filter, see https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-keep-types-tokenfilter.html
What are the types that you can list in the "types" array?
There is a Keep Types Token filter, see https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-keep-types-tokenfilter.html
What are the types that you can list in the "types" array?
It uses the Lucene TypeTokenFilter, and it should use the Lucene constants.
I have not used this filter in years, and the types used to be properly
defined: https://lucene.apache.org/core/3_5_0/api/core/constant-values.html
I have not found a better list for Lucene 5/6, or perhaps the Elasticsearch
documentation is using an old constant.
Since it is Lucene, it means it is poorly documented. Grepping through
the code should find the answers.
Ivan
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.