Skip to content

Commit

Permalink
[Analysis] Deprecate Standard Html Strip Analyzer
Browse files Browse the repository at this point in the history
Change to use getPreviousVersion

Related elastic#4704
  • Loading branch information
johtani committed Nov 13, 2018
1 parent d1e169b commit b2bbf27
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public void testStandardHtmlStripAnalyzerDeprecationError() throws IOException {
public void testStandardHtmlStripAnalyzerDeprecationWarning() throws IOException {
Settings settings = Settings.builder().put(Environment.PATH_HOME_SETTING.getKey(), createTempDir())
.put(IndexMetaData.SETTING_VERSION_CREATED,
VersionUtils.randomVersionBetween(random(), Version.V_6_0_0, Version.V_6_6_0))
VersionUtils.randomVersionBetween(random(), Version.V_6_0_0,
VersionUtils.getPreviousVersion(Version.V_7_0_0_alpha1)))
.put("index.analysis.analyzer.custom_analyzer.type", "standard_html_strip")
.putList("index.analysis.analyzer.custom_analyzer.stopwords", "a", "b")
.build();
Expand Down

0 comments on commit b2bbf27

Please sign in to comment.