[Docs] add deprecation warning for `delimited_payload_filter` renaming
This commit is contained in:
parent
6323bb0d97
commit
c4fe7d3f72
|
@ -3,6 +3,13 @@
|
||||||
|
|
||||||
Named `delimited_payload`. Splits tokens into tokens and payload whenever a delimiter character is found.
|
Named `delimited_payload`. Splits tokens into tokens and payload whenever a delimiter character is found.
|
||||||
|
|
||||||
|
[WARNING]
|
||||||
|
============================================
|
||||||
|
|
||||||
|
The older name `delimited_payload_filter` is deprecated and should not be used for new indices. Use `delimited_payload` instead.
|
||||||
|
|
||||||
|
============================================
|
||||||
|
|
||||||
Example: "the|1 quick|2 fox|3" is split by default into tokens `the`, `quick`, and `fox` with payloads `1`, `2`, and `3` respectively.
|
Example: "the|1 quick|2 fox|3" is split by default into tokens `the`, `quick`, and `fox` with payloads `1`, `2`, and `3` respectively.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class LegacyDelimitedPayloadTokenFilterFactory extends DelimitedPayloadTo
|
||||||
|
|
||||||
LegacyDelimitedPayloadTokenFilterFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
|
LegacyDelimitedPayloadTokenFilterFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
|
||||||
super(indexSettings, env, name, settings);
|
super(indexSettings, env, name, settings);
|
||||||
if (indexSettings.getIndexVersionCreated().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (indexSettings.getIndexVersionCreated().onOrAfter(Version.V_6_2_0)) {
|
||||||
DEPRECATION_LOGGER.deprecated("Deprecated [delimited_payload_filter] used, replaced by [delimited_payload]");
|
DEPRECATION_LOGGER.deprecated("Deprecated [delimited_payload_filter] used, replaced by [delimited_payload]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1028,8 +1028,8 @@
|
||||||
---
|
---
|
||||||
"delimited_payload_filter":
|
"delimited_payload_filter":
|
||||||
- skip:
|
- skip:
|
||||||
version: " - 6.99.99"
|
version: " - 6.1.99"
|
||||||
reason: delimited_payload_filter deprecated in 7.0, replaced by delimited_payload
|
reason: delimited_payload_filter deprecated in 6.2, replaced by delimited_payload
|
||||||
features: "warnings"
|
features: "warnings"
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
|
|
Loading…
Reference in New Issue