Skip to content

Add remove types token filter (as opposite to keep_types token filter) #29277

@edovac

Description

@edovac

Describe the feature:
Hi, Elasticsearch provides the keep_types token filter, but does not provide a token filter to exclude specific token types from the token stream.

As I understand, the keep_types token filter is implemented using Lucene org.apache.lucene.analysis.core.TypeTokenFilter.TypeTokenFilter(TokenStream, Set<String>, boolean) which implements both behaviours.
It would be nice to have the remove filter too.

Elasticsearch version: 6.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions