-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add remove types token filter (as opposite to keep_types token filter) #29277
Copy link
Copy link
Closed
Labels
:Search Relevance/AnalysisHow text is split into tokensHow text is split into tokens>enhancementTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearchhelp wantedadoptmeadoptme
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Search Relevance/AnalysisHow text is split into tokensHow text is split into tokens>enhancementTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearchhelp wantedadoptmeadoptme
Type
Fields
Give feedbackNo fields configured for issues without a type.