Skip to content

Commit

Permalink
Support deprecated delimited_payload_filter name in deserialization (#…
Browse files Browse the repository at this point in the history
…3835)

Relates: elastic/elasticsearch#27705

This commit adds support for the deprecated delimited_payload_filter
name when deserializing token filters in a 6.x index within a 7.x cluster.

When serializing, the new name delimited_payload will be used.
  • Loading branch information
russcam authored and Mpdreamz committed Jun 20, 2019
1 parent c65609e commit 21b958d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Nest/Analysis/TokenFilters/TokenFilterFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ internal class TokenFilterFormatter : IJsonFormatter<ITokenFilter>
{ "asciifolding", 0 },
{ "common_grams", 1 },
{ "delimited_payload", 2 },
{ "delimited_payload_filter", 2 },
{ "dictionary_decompounder", 3 },
{ "edge_ngram", 4 },
{ "elision", 5 },
Expand Down

0 comments on commit 21b958d

Please sign in to comment.