From 0ccfe6978918b9a756b3c882613e8e392aafc7e1 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Wed, 24 Aug 2016 17:26:28 -0400 Subject: [PATCH] Upgrade to Lucene 6.2.0 --- buildSrc/version.properties | 2 +- .../miscellaneous/UniqueTokenFilter.java | 2 +- .../main/java/org/elasticsearch/Version.java | 2 +- .../elasticsearch/common/lucene/Lucene.java | 2 +- .../index/analysis/Analysis.java | 4 +-- .../analysis/ArabicAnalyzerProvider.java | 4 +-- .../analysis/ArmenianAnalyzerProvider.java | 4 +-- .../analysis/BasqueAnalyzerProvider.java | 4 +-- .../analysis/BrazilianAnalyzerProvider.java | 4 +-- .../BrazilianStemTokenFilterFactory.java | 4 +-- .../analysis/BulgarianAnalyzerProvider.java | 4 +-- .../analysis/CatalanAnalyzerProvider.java | 4 +-- .../index/analysis/CjkAnalyzerProvider.java | 4 +-- .../CommonGramsTokenFilterFactory.java | 2 +- .../index/analysis/CzechAnalyzerProvider.java | 4 +-- .../analysis/DanishAnalyzerProvider.java | 4 +-- .../index/analysis/DutchAnalyzerProvider.java | 4 +-- .../analysis/DutchStemTokenFilterFactory.java | 4 +-- .../analysis/ElisionTokenFilterFactory.java | 4 +-- .../analysis/EnglishAnalyzerProvider.java | 4 +-- .../index/analysis/FingerprintAnalyzer.java | 6 ++--- .../analysis/FingerprintAnalyzerProvider.java | 2 +- .../analysis/FinnishAnalyzerProvider.java | 4 +-- .../analysis/FrenchAnalyzerProvider.java | 4 +-- .../FrenchStemTokenFilterFactory.java | 4 +-- .../analysis/GalicianAnalyzerProvider.java | 4 +-- .../analysis/GermanAnalyzerProvider.java | 4 +-- .../GermanStemTokenFilterFactory.java | 4 +-- .../index/analysis/HindiAnalyzerProvider.java | 4 +-- .../analysis/HungarianAnalyzerProvider.java | 4 +-- .../analysis/IndonesianAnalyzerProvider.java | 4 +-- .../index/analysis/IrishAnalyzerProvider.java | 4 +-- .../analysis/ItalianAnalyzerProvider.java | 4 +-- .../index/analysis/KeepWordFilterFactory.java | 2 +- .../KeywordMarkerTokenFilterFactory.java | 2 +- .../analysis/LatvianAnalyzerProvider.java | 4 +-- .../analysis/LithuanianAnalyzerProvider.java | 4 +-- .../analysis/LowerCaseTokenFilterFactory.java | 2 +- .../analysis/NorwegianAnalyzerProvider.java | 4 +-- .../index/analysis/PatternAnalyzer.java | 6 ++--- .../analysis/PatternAnalyzerProvider.java | 2 +- .../analysis/PortugueseAnalyzerProvider.java | 4 +-- .../analysis/RomanianAnalyzerProvider.java | 4 +-- .../analysis/RussianAnalyzerProvider.java | 4 +-- .../index/analysis/SnowballAnalyzer.java | 6 ++--- .../analysis/SnowballAnalyzerProvider.java | 2 +- .../analysis/SoraniAnalyzerProvider.java | 4 +-- .../analysis/SpanishAnalyzerProvider.java | 4 +-- .../analysis/StandardAnalyzerProvider.java | 2 +- .../analysis/StandardHtmlStripAnalyzer.java | 8 +++--- .../StandardHtmlStripAnalyzerProvider.java | 2 +- .../index/analysis/StopAnalyzerProvider.java | 4 +-- .../analysis/StopTokenFilterFactory.java | 4 +-- .../analysis/SwedishAnalyzerProvider.java | 4 +-- .../analysis/SynonymTokenFilterFactory.java | 2 +- .../analysis/TurkishAnalyzerProvider.java | 4 +-- .../WordDelimiterTokenFilterFactory.java | 2 +- ...bstractCompoundWordTokenFilterFactory.java | 2 +- .../index/codec/CodecService.java | 7 +++--- .../PerFieldMappingPostingFormatCodec.java | 4 +-- .../index/shard/LocalShardSnapshot.java | 2 +- .../index/similarity/SimilarityService.java | 10 -------- .../org/elasticsearch/index/store/Store.java | 6 +++-- .../index/translog/Translog.java | 6 +++-- .../indices/analysis/PreBuiltAnalyzers.java | 2 +- .../analysis/PreBuiltTokenFilters.java | 6 ++--- .../blobstore/BlobStoreRepository.java | 5 ++++ .../Completion090PostingsFormat.java | 11 ++++++-- .../elasticsearch/bootstrap/security.policy | 4 +-- .../bootstrap/test-framework.policy | 2 +- .../AbstractTermVectorsTestCase.java | 4 +-- .../index/analysis/AnalysisTests.java | 2 +- .../analysis/FingerprintAnalyzerTests.java | 2 +- .../ShingleTokenFilterFactoryTests.java | 5 ++-- .../index/analysis/StopTokenFilterTests.java | 4 +-- .../filter1/MyFilterTokenFilterFactory.java | 4 +-- .../elasticsearch/index/codec/CodecTests.java | 4 +-- .../index/engine/InternalEngineTests.java | 25 ------------------- .../elasticsearch/index/store/StoreTests.java | 12 +++------ .../indices/analysis/DummyAnalyzer.java | 2 +- .../phrase/NoisyChannelSpellCheckerTests.java | 2 +- .../lucene-analyzers-common-6.1.0.jar.sha1 | 1 - .../lucene-analyzers-common-6.2.0.jar.sha1 | 1 + .../lucene-backward-codecs-6.1.0.jar.sha1 | 1 - .../lucene-backward-codecs-6.2.0.jar.sha1 | 1 + .../licenses/lucene-core-6.1.0.jar.sha1 | 1 - .../licenses/lucene-core-6.2.0.jar.sha1 | 1 + .../licenses/lucene-grouping-6.1.0.jar.sha1 | 1 - .../licenses/lucene-grouping-6.2.0.jar.sha1 | 1 + .../lucene-highlighter-6.1.0.jar.sha1 | 1 - .../lucene-highlighter-6.2.0.jar.sha1 | 1 + .../licenses/lucene-join-6.1.0.jar.sha1 | 1 - .../licenses/lucene-join-6.2.0.jar.sha1 | 1 + .../licenses/lucene-memory-6.1.0.jar.sha1 | 1 - .../licenses/lucene-memory-6.2.0.jar.sha1 | 1 + .../licenses/lucene-misc-6.1.0.jar.sha1 | 1 - .../licenses/lucene-misc-6.2.0.jar.sha1 | 1 + .../licenses/lucene-queries-6.1.0.jar.sha1 | 1 - .../licenses/lucene-queries-6.2.0.jar.sha1 | 1 + .../lucene-queryparser-6.1.0.jar.sha1 | 1 - .../lucene-queryparser-6.2.0.jar.sha1 | 1 + .../licenses/lucene-sandbox-6.1.0.jar.sha1 | 1 - .../licenses/lucene-sandbox-6.2.0.jar.sha1 | 1 + .../licenses/lucene-spatial-6.1.0.jar.sha1 | 1 - .../licenses/lucene-spatial-6.2.0.jar.sha1 | 1 + .../lucene-spatial-extras-6.1.0.jar.sha1 | 1 - .../lucene-spatial-extras-6.2.0.jar.sha1 | 1 + .../licenses/lucene-spatial3d-6.1.0.jar.sha1 | 1 - .../licenses/lucene-spatial3d-6.2.0.jar.sha1 | 1 + .../licenses/lucene-suggest-6.1.0.jar.sha1 | 1 - .../licenses/lucene-suggest-6.2.0.jar.sha1 | 1 + .../lucene-expressions-6.1.0.jar.sha1 | 1 - .../lucene-expressions-6.2.0.jar.sha1 | 1 + .../lucene-analyzers-icu-6.1.0.jar.sha1 | 1 - .../lucene-analyzers-icu-6.2.0.jar.sha1 | 1 + .../index/analysis/IcuTokenizerFactory.java | 4 +-- .../lucene-analyzers-kuromoji-6.1.0.jar.sha1 | 1 - .../lucene-analyzers-kuromoji-6.2.0.jar.sha1 | 1 + .../JapaneseStopTokenFilterFactory.java | 4 +-- .../analysis/KuromojiAnalyzerProvider.java | 2 +- .../lucene-analyzers-phonetic-6.1.0.jar.sha1 | 1 - .../lucene-analyzers-phonetic-6.2.0.jar.sha1 | 1 + .../lucene-analyzers-smartcn-6.1.0.jar.sha1 | 1 - .../lucene-analyzers-smartcn-6.2.0.jar.sha1 | 1 + .../lucene-analyzers-stempel-6.1.0.jar.sha1 | 1 - .../lucene-analyzers-stempel-6.2.0.jar.sha1 | 1 + .../AnalysisFactoryTestCase.java | 4 +++ .../test/store/MockFSDirectoryService.java | 2 +- 128 files changed, 189 insertions(+), 210 deletions(-) delete mode 100644 distribution/licenses/lucene-analyzers-common-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-analyzers-common-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-backward-codecs-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-backward-codecs-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-core-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-core-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-grouping-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-grouping-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-highlighter-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-highlighter-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-join-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-join-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-memory-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-memory-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-misc-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-misc-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-queries-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-queries-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-queryparser-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-queryparser-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-sandbox-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-sandbox-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-spatial-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-spatial-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-spatial-extras-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-spatial-extras-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-spatial3d-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-spatial3d-6.2.0.jar.sha1 delete mode 100644 distribution/licenses/lucene-suggest-6.1.0.jar.sha1 create mode 100644 distribution/licenses/lucene-suggest-6.2.0.jar.sha1 delete mode 100644 modules/lang-expression/licenses/lucene-expressions-6.1.0.jar.sha1 create mode 100644 modules/lang-expression/licenses/lucene-expressions-6.2.0.jar.sha1 delete mode 100644 plugins/analysis-icu/licenses/lucene-analyzers-icu-6.1.0.jar.sha1 create mode 100644 plugins/analysis-icu/licenses/lucene-analyzers-icu-6.2.0.jar.sha1 delete mode 100644 plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.1.0.jar.sha1 create mode 100644 plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.2.0.jar.sha1 delete mode 100644 plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.1.0.jar.sha1 create mode 100644 plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.2.0.jar.sha1 delete mode 100644 plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.1.0.jar.sha1 create mode 100644 plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.2.0.jar.sha1 delete mode 100644 plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.1.0.jar.sha1 create mode 100644 plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.2.0.jar.sha1 diff --git a/buildSrc/version.properties b/buildSrc/version.properties index 334ee06df0569..7ac4d1f7ed1ed 100644 --- a/buildSrc/version.properties +++ b/buildSrc/version.properties @@ -1,5 +1,5 @@ elasticsearch = 5.0.0-alpha6 -lucene = 6.1.0 +lucene = 6.2.0 # optional dependencies spatial4j = 0.6 diff --git a/core/src/main/java/org/apache/lucene/analysis/miscellaneous/UniqueTokenFilter.java b/core/src/main/java/org/apache/lucene/analysis/miscellaneous/UniqueTokenFilter.java index b0a6122b5483f..cc853932efc44 100644 --- a/core/src/main/java/org/apache/lucene/analysis/miscellaneous/UniqueTokenFilter.java +++ b/core/src/main/java/org/apache/lucene/analysis/miscellaneous/UniqueTokenFilter.java @@ -19,11 +19,11 @@ package org.apache.lucene.analysis.miscellaneous; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; -import org.apache.lucene.analysis.util.CharArraySet; import java.io.IOException; diff --git a/core/src/main/java/org/elasticsearch/Version.java b/core/src/main/java/org/elasticsearch/Version.java index c1c93e389248a..0d707e035c76f 100644 --- a/core/src/main/java/org/elasticsearch/Version.java +++ b/core/src/main/java/org/elasticsearch/Version.java @@ -84,7 +84,7 @@ public class Version { public static final int V_5_0_0_alpha5_ID = 5000005; public static final Version V_5_0_0_alpha5 = new Version(V_5_0_0_alpha5_ID, org.apache.lucene.util.Version.LUCENE_6_1_0); public static final int V_5_0_0_alpha6_ID = 5000006; - public static final Version V_5_0_0_alpha6 = new Version(V_5_0_0_alpha6_ID, org.apache.lucene.util.Version.LUCENE_6_1_0); + public static final Version V_5_0_0_alpha6 = new Version(V_5_0_0_alpha6_ID, org.apache.lucene.util.Version.LUCENE_6_2_0); public static final Version CURRENT = V_5_0_0_alpha6; static { diff --git a/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java b/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java index 39e67ce64584a..d555e199d089e 100644 --- a/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java +++ b/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java @@ -88,7 +88,7 @@ public class Lucene { public static final String LATEST_DOC_VALUES_FORMAT = "Lucene54"; public static final String LATEST_POSTINGS_FORMAT = "Lucene50"; - public static final String LATEST_CODEC = "Lucene60"; + public static final String LATEST_CODEC = "Lucene62"; static { Deprecated annotation = PostingsFormat.forName(LATEST_POSTINGS_FORMAT).getClass().getAnnotation(Deprecated.class); diff --git a/core/src/main/java/org/elasticsearch/index/analysis/Analysis.java b/core/src/main/java/org/elasticsearch/index/analysis/Analysis.java index 2ce5e48902716..d2158f707ca7b 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/Analysis.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/Analysis.java @@ -20,8 +20,9 @@ package org.elasticsearch.index.analysis; import org.apache.lucene.analysis.Analyzer; -import org.apache.lucene.analysis.TokenStream; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.LegacyNumericTokenStream; +import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.ar.ArabicAnalyzer; import org.apache.lucene.analysis.bg.BulgarianAnalyzer; import org.apache.lucene.analysis.br.BrazilianAnalyzer; @@ -55,7 +56,6 @@ import org.apache.lucene.analysis.th.ThaiAnalyzer; import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; import org.apache.lucene.analysis.tr.TurkishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.util.Version; import org.elasticsearch.common.Strings; import org.elasticsearch.common.io.FileSystemUtils; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/ArabicAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/ArabicAnalyzerProvider.java index 5a1754a02fec1..4b185c450d54c 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/ArabicAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/ArabicAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ar.ArabicAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public ArabicAnalyzerProvider(IndexSettings indexSettings, Environment env, Stri public ArabicAnalyzer get() { return this.arabicAnalyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/ArmenianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/ArmenianAnalyzerProvider.java index fabb8b0738866..b58b8a8788619 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/ArmenianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/ArmenianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.hy.ArmenianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public ArmenianAnalyzerProvider(IndexSettings indexSettings, Environment env, St public ArmenianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/BasqueAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/BasqueAnalyzerProvider.java index 1ceffd43c81aa..17f601084b85b 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/BasqueAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/BasqueAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.eu.BasqueAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public BasqueAnalyzerProvider(IndexSettings indexSettings, Environment env, Stri public BasqueAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/BrazilianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/BrazilianAnalyzerProvider.java index 9e33dce3a9d44..872d1fb708a38 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/BrazilianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/BrazilianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.br.BrazilianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public BrazilianAnalyzerProvider(IndexSettings indexSettings, Environment env, S public BrazilianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/BrazilianStemTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/BrazilianStemTokenFilterFactory.java index f0122874acc07..efcc1bfba9054 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/BrazilianStemTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/BrazilianStemTokenFilterFactory.java @@ -22,7 +22,7 @@ import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.br.BrazilianStemFilter; import org.apache.lucene.analysis.miscellaneous.SetKeywordMarkerFilter; -import org.apache.lucene.analysis.util.CharArraySet; +import org.apache.lucene.analysis.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -42,4 +42,4 @@ public BrazilianStemTokenFilterFactory(IndexSettings indexSettings, Environment public TokenStream create(TokenStream tokenStream) { return new BrazilianStemFilter(new SetKeywordMarkerFilter(tokenStream, exclusions)); } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/BulgarianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/BulgarianAnalyzerProvider.java index e93233169b9e9..4eddc84d310c6 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/BulgarianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/BulgarianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.bg.BulgarianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public BulgarianAnalyzerProvider(IndexSettings indexSettings, Environment env, S public BulgarianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/CatalanAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/CatalanAnalyzerProvider.java index 04c068a4371c4..cd03649febcfd 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/CatalanAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/CatalanAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ca.CatalanAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public CatalanAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public CatalanAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/CjkAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/CjkAnalyzerProvider.java index 57796c1651533..1728a4a3f7e9c 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/CjkAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/CjkAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.cjk.CJKAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -44,4 +44,4 @@ public CjkAnalyzerProvider(IndexSettings indexSettings, Environment env, String public CJKAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/CommonGramsTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/CommonGramsTokenFilterFactory.java index 0225ec64559e0..da1ca0226856e 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/CommonGramsTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/CommonGramsTokenFilterFactory.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.commongrams.CommonGramsFilter; import org.apache.lucene.analysis.commongrams.CommonGramsQueryFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/CzechAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/CzechAnalyzerProvider.java index 6480b13965374..f1487d198b59c 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/CzechAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/CzechAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.cz.CzechAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public CzechAnalyzerProvider(IndexSettings indexSettings, Environment env, Strin public CzechAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/DanishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/DanishAnalyzerProvider.java index adf1290d25537..041ca52c42878 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/DanishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/DanishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.da.DanishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public DanishAnalyzerProvider(IndexSettings indexSettings, Environment env, Stri public DanishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/DutchAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/DutchAnalyzerProvider.java index cff7a6f2087fa..1c33131624e31 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/DutchAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/DutchAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.nl.DutchAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public DutchAnalyzerProvider(IndexSettings indexSettings, Environment env, Strin public DutchAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/DutchStemTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/DutchStemTokenFilterFactory.java index 078f1e2d29764..daa67b00d3453 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/DutchStemTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/DutchStemTokenFilterFactory.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.miscellaneous.SetKeywordMarkerFilter; import org.apache.lucene.analysis.snowball.SnowballFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -45,4 +45,4 @@ public TokenStream create(TokenStream tokenStream) { tokenStream = new SetKeywordMarkerFilter(tokenStream, exclusions); return new SnowballFilter(tokenStream, new DutchStemmer()); } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java index 2291e199b3a7c..0b94fb301a1c8 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.analysis.util.ElisionFilter; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; @@ -47,4 +47,4 @@ public TokenStream create(TokenStream tokenStream) { public Object getMultiTermComponent() { return this; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/EnglishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/EnglishAnalyzerProvider.java index 271934bbd79b0..bcb7889253d90 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/EnglishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/EnglishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.en.EnglishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public EnglishAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public EnglishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzer.java b/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzer.java index 985a081ccc8a6..0a550f19aa7c1 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzer.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzer.java @@ -20,14 +20,14 @@ package org.elasticsearch.index.analysis; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.LowerCaseFilter; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.miscellaneous.ASCIIFoldingFilter; import org.apache.lucene.analysis.miscellaneous.FingerprintFilter; import org.apache.lucene.analysis.standard.StandardTokenizer; -import org.apache.lucene.analysis.util.CharArraySet; /** OpenRefine Fingerprinting, which uses a Standard tokenizer and lowercase + stop + fingerprint + asciifolding filters */ public final class FingerprintAnalyzer extends Analyzer { diff --git a/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzerProvider.java index bb8a51e096918..490b90efb7136 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/FingerprintAnalyzerProvider.java @@ -20,7 +20,7 @@ package org.elasticsearch.index.analysis; import org.apache.lucene.analysis.Analyzer; -import org.apache.lucene.analysis.util.CharArraySet; +import org.apache.lucene.analysis.CharArraySet; import org.elasticsearch.common.ParseField; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/FinnishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/FinnishAnalyzerProvider.java index 676da5f0c0cb2..3a2b329248027 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/FinnishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/FinnishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.fi.FinnishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public FinnishAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public FinnishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/FrenchAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/FrenchAnalyzerProvider.java index 51314633d25c2..ff848dc681bd7 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/FrenchAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/FrenchAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.fr.FrenchAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public FrenchAnalyzerProvider(IndexSettings indexSettings, Environment env, Stri public FrenchAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/FrenchStemTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/FrenchStemTokenFilterFactory.java index 3a0ce5d26645d..e24dc86a22eb6 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/FrenchStemTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/FrenchStemTokenFilterFactory.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.miscellaneous.SetKeywordMarkerFilter; import org.apache.lucene.analysis.snowball.SnowballFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -45,4 +45,4 @@ public TokenStream create(TokenStream tokenStream) { tokenStream = new SetKeywordMarkerFilter(tokenStream, exclusions); return new SnowballFilter(tokenStream, new FrenchStemmer()); } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/GalicianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/GalicianAnalyzerProvider.java index 0be7f76bf054f..6f6521f52f7b8 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/GalicianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/GalicianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.gl.GalicianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public GalicianAnalyzerProvider(IndexSettings indexSettings, Environment env, St public GalicianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/GermanAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/GermanAnalyzerProvider.java index 98e5adf852859..a55df0f1b8a07 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/GermanAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/GermanAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.de.GermanAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public GermanAnalyzerProvider(IndexSettings indexSettings, Environment env, Stri public GermanAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/GermanStemTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/GermanStemTokenFilterFactory.java index ef9c89fed4628..72e66c29dfd0b 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/GermanStemTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/GermanStemTokenFilterFactory.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.de.GermanStemFilter; import org.apache.lucene.analysis.miscellaneous.SetKeywordMarkerFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public GermanStemTokenFilterFactory(IndexSettings indexSettings, Environment env public TokenStream create(TokenStream tokenStream) { return new GermanStemFilter(new SetKeywordMarkerFilter(tokenStream, exclusions)); } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/HindiAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/HindiAnalyzerProvider.java index 4e628e5e301f8..85e08764dc3d9 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/HindiAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/HindiAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.hi.HindiAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public HindiAnalyzerProvider(IndexSettings indexSettings, Environment env, Strin public HindiAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/HungarianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/HungarianAnalyzerProvider.java index 751ef0094f6ee..f5a09f2ce3a7a 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/HungarianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/HungarianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.hu.HungarianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public HungarianAnalyzerProvider(IndexSettings indexSettings, Environment env, S public HungarianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/IndonesianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/IndonesianAnalyzerProvider.java index f15cc74a9a939..b4c41a3ce3dbf 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/IndonesianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/IndonesianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.id.IndonesianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public IndonesianAnalyzerProvider(IndexSettings indexSettings, Environment env, public IndonesianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/IrishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/IrishAnalyzerProvider.java index 813db1d36be51..0b27cb73a3ccc 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/IrishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/IrishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ga.IrishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public IrishAnalyzerProvider(IndexSettings indexSettings, Environment env, Strin public IrishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/ItalianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/ItalianAnalyzerProvider.java index 9457b45e9f2f5..fd2246a1d6f2d 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/ItalianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/ItalianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.it.ItalianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public ItalianAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public ItalianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/KeepWordFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/KeepWordFilterFactory.java index ab00657313de0..334bbab5691fb 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/KeepWordFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/KeepWordFilterFactory.java @@ -19,9 +19,9 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.miscellaneous.KeepWordFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.util.Version; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/KeywordMarkerTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/KeywordMarkerTokenFilterFactory.java index b787ed6409064..0805a3bdf8609 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/KeywordMarkerTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/KeywordMarkerTokenFilterFactory.java @@ -19,9 +19,9 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.miscellaneous.SetKeywordMarkerFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/LatvianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/LatvianAnalyzerProvider.java index 01865c17d1436..757c6d2f4e29f 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/LatvianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/LatvianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.lv.LatvianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public LatvianAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public LatvianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/LithuanianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/LithuanianAnalyzerProvider.java index 9b24eaa16a12d..7d180b3e0f2f8 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/LithuanianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/LithuanianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.lt.LithuanianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public LithuanianAnalyzerProvider(IndexSettings indexSettings, Environment env, public LithuanianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/LowerCaseTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/LowerCaseTokenFilterFactory.java index dcad6960ba406..1d9ca2272b87f 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/LowerCaseTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/LowerCaseTokenFilterFactory.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.LowerCaseFilter; import org.apache.lucene.analysis.TokenStream; -import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.el.GreekLowerCaseFilter; import org.apache.lucene.analysis.ga.IrishLowerCaseFilter; import org.apache.lucene.analysis.tr.TurkishLowerCaseFilter; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/NorwegianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/NorwegianAnalyzerProvider.java index 1b136bfcef90c..fb0b8e36cf8f0 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/NorwegianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/NorwegianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.no.NorwegianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public NorwegianAnalyzerProvider(IndexSettings indexSettings, Environment env, S public NorwegianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzer.java b/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzer.java index d5da62f67b1a0..7554f459bfaf4 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzer.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzer.java @@ -20,12 +20,12 @@ package org.elasticsearch.index.analysis; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.LowerCaseFilter; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.pattern.PatternTokenizer; -import org.apache.lucene.analysis.util.CharArraySet; import java.util.regex.Pattern; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzerProvider.java index f00988f4ad2b2..c96d26676a4e0 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/PatternAnalyzerProvider.java @@ -20,8 +20,8 @@ package org.elasticsearch.index.analysis; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.Version; import org.elasticsearch.common.regex.Regex; import org.elasticsearch.common.settings.Settings; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/PortugueseAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/PortugueseAnalyzerProvider.java index 11cbaac4ad021..919bdd933fe84 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/PortugueseAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/PortugueseAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.pt.PortugueseAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public PortugueseAnalyzerProvider(IndexSettings indexSettings, Environment env, public PortugueseAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/RomanianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/RomanianAnalyzerProvider.java index a455cef3ad129..9e08c638e5df1 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/RomanianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/RomanianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ro.RomanianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public RomanianAnalyzerProvider(IndexSettings indexSettings, Environment env, St public RomanianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/RussianAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/RussianAnalyzerProvider.java index fca42325e4374..9478b7ff2325c 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/RussianAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/RussianAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ru.RussianAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public RussianAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public RussianAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzer.java b/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzer.java index a07ae16f8ef9b..1a096b8fa4b9f 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzer.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzer.java @@ -20,16 +20,16 @@ */ import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.LowerCaseFilter; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.en.EnglishPossessiveFilter; import org.apache.lucene.analysis.snowball.SnowballFilter; import org.apache.lucene.analysis.standard.StandardFilter; import org.apache.lucene.analysis.standard.StandardTokenizer; import org.apache.lucene.analysis.tr.TurkishLowerCaseFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.util.Version; /** Filters {@link StandardTokenizer} with {@link StandardFilter}, {@link diff --git a/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzerProvider.java index b8e092b53da53..84f1931633100 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/SnowballAnalyzerProvider.java @@ -18,11 +18,11 @@ */ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.core.StopAnalyzer; import org.apache.lucene.analysis.de.GermanAnalyzer; import org.apache.lucene.analysis.fr.FrenchAnalyzer; import org.apache.lucene.analysis.nl.DutchAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/SoraniAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/SoraniAnalyzerProvider.java index 388f5bcdbff4a..6b5cf153f322c 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/SoraniAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/SoraniAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ckb.SoraniAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public SoraniAnalyzerProvider(IndexSettings indexSettings, Environment env, Stri public SoraniAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/SpanishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/SpanishAnalyzerProvider.java index e8afd7b47956f..ff95272e81690 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/SpanishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/SpanishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.es.SpanishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public SpanishAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public SpanishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/StandardAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/StandardAnalyzerProvider.java index 00300be48967a..2af7b5bbabfe0 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/StandardAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/StandardAnalyzerProvider.java @@ -19,9 +19,9 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.core.StopAnalyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.Version; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzer.java b/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzer.java index a755e54db1779..2203dbdfea655 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzer.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzer.java @@ -19,15 +19,15 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.LowerCaseFilter; +import org.apache.lucene.analysis.StopFilter; +import org.apache.lucene.analysis.StopwordAnalyzerBase; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.standard.StandardFilter; import org.apache.lucene.analysis.standard.StandardTokenizer; -import org.apache.lucene.analysis.util.CharArraySet; -import org.apache.lucene.analysis.util.StopwordAnalyzerBase; public class StandardHtmlStripAnalyzer extends StopwordAnalyzerBase { diff --git a/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzerProvider.java index a3c65b0a17bdf..b9e25346b2576 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/StandardHtmlStripAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.Version; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/StopAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/StopAnalyzerProvider.java index cb1c4b8f5c52e..aca1fda299fb2 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/StopAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/StopAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public StopAnalyzerProvider(IndexSettings indexSettings, Environment env, String public StopAnalyzer get() { return this.stopAnalyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/StopTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/StopTokenFilterFactory.java index e724f064bb40f..4e7c3ae1af86e 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/StopTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/StopTokenFilterFactory.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.core.StopFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.search.suggest.analyzing.SuggestStopFilter; import org.apache.lucene.util.Version; import org.elasticsearch.common.settings.Settings; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/SwedishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/SwedishAnalyzerProvider.java index a0e81f29cb988..bbc14f474bb9a 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/SwedishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/SwedishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.sv.SwedishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public SwedishAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public SwedishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/SynonymTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/SynonymTokenFilterFactory.java index 8daff40332d86..11f1303328c7a 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/SynonymTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/SynonymTokenFilterFactory.java @@ -20,9 +20,9 @@ package org.elasticsearch.index.analysis; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.LowerCaseFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.core.WhitespaceTokenizer; import org.apache.lucene.analysis.synonym.SolrSynonymParser; import org.apache.lucene.analysis.synonym.SynonymFilter; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/TurkishAnalyzerProvider.java b/core/src/main/java/org/elasticsearch/index/analysis/TurkishAnalyzerProvider.java index 0866bea14f233..368dcbe3abdf5 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/TurkishAnalyzerProvider.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/TurkishAnalyzerProvider.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.tr.TurkishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -43,4 +43,4 @@ public TurkishAnalyzerProvider(IndexSettings indexSettings, Environment env, Str public TurkishAnalyzer get() { return this.analyzer; } -} \ No newline at end of file +} diff --git a/core/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java index 118d7f84a1112..ccc60f4ce7027 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter; import org.apache.lucene.analysis.miscellaneous.WordDelimiterIterator; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; diff --git a/core/src/main/java/org/elasticsearch/index/analysis/compound/AbstractCompoundWordTokenFilterFactory.java b/core/src/main/java/org/elasticsearch/index/analysis/compound/AbstractCompoundWordTokenFilterFactory.java index b67aebd50248d..e7147334a7eaa 100644 --- a/core/src/main/java/org/elasticsearch/index/analysis/compound/AbstractCompoundWordTokenFilterFactory.java +++ b/core/src/main/java/org/elasticsearch/index/analysis/compound/AbstractCompoundWordTokenFilterFactory.java @@ -19,8 +19,8 @@ package org.elasticsearch.index.analysis.compound; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.compound.CompoundWordTokenFilterBase; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; diff --git a/core/src/main/java/org/elasticsearch/index/codec/CodecService.java b/core/src/main/java/org/elasticsearch/index/codec/CodecService.java index f8d19be3c8d34..65fab8d254abf 100644 --- a/core/src/main/java/org/elasticsearch/index/codec/CodecService.java +++ b/core/src/main/java/org/elasticsearch/index/codec/CodecService.java @@ -21,8 +21,7 @@ import org.apache.lucene.codecs.Codec; import org.apache.lucene.codecs.lucene50.Lucene50StoredFieldsFormat.Mode; -import org.apache.lucene.codecs.lucene54.Lucene54Codec; -import org.apache.lucene.codecs.lucene60.Lucene60Codec; +import org.apache.lucene.codecs.lucene62.Lucene62Codec; import org.elasticsearch.common.Nullable; import org.elasticsearch.common.collect.MapBuilder; import org.elasticsearch.common.logging.ESLogger; @@ -48,8 +47,8 @@ public class CodecService { public CodecService(@Nullable MapperService mapperService, ESLogger logger) { final MapBuilder codecs = MapBuilder.newMapBuilder(); if (mapperService == null) { - codecs.put(DEFAULT_CODEC, new Lucene60Codec()); - codecs.put(BEST_COMPRESSION_CODEC, new Lucene60Codec(Mode.BEST_COMPRESSION)); + codecs.put(DEFAULT_CODEC, new Lucene62Codec()); + codecs.put(BEST_COMPRESSION_CODEC, new Lucene62Codec(Mode.BEST_COMPRESSION)); } else { codecs.put(DEFAULT_CODEC, new PerFieldMappingPostingFormatCodec(Mode.BEST_SPEED, mapperService, logger)); diff --git a/core/src/main/java/org/elasticsearch/index/codec/PerFieldMappingPostingFormatCodec.java b/core/src/main/java/org/elasticsearch/index/codec/PerFieldMappingPostingFormatCodec.java index e16e66904c933..ec4636e396ce8 100644 --- a/core/src/main/java/org/elasticsearch/index/codec/PerFieldMappingPostingFormatCodec.java +++ b/core/src/main/java/org/elasticsearch/index/codec/PerFieldMappingPostingFormatCodec.java @@ -22,7 +22,7 @@ import org.apache.lucene.codecs.Codec; import org.apache.lucene.codecs.PostingsFormat; import org.apache.lucene.codecs.lucene50.Lucene50StoredFieldsFormat; -import org.apache.lucene.codecs.lucene60.Lucene60Codec; +import org.apache.lucene.codecs.lucene62.Lucene62Codec; import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.lucene.Lucene; import org.elasticsearch.index.mapper.CompletionFieldMapper; @@ -39,7 +39,7 @@ * configured for a specific field the default postings format is used. */ // LUCENE UPGRADE: make sure to move to a new codec depending on the lucene version -public class PerFieldMappingPostingFormatCodec extends Lucene60Codec { +public class PerFieldMappingPostingFormatCodec extends Lucene62Codec { private final ESLogger logger; private final MapperService mapperService; diff --git a/core/src/main/java/org/elasticsearch/index/shard/LocalShardSnapshot.java b/core/src/main/java/org/elasticsearch/index/shard/LocalShardSnapshot.java index 0d53163f15eca..7b79f785ff338 100644 --- a/core/src/main/java/org/elasticsearch/index/shard/LocalShardSnapshot.java +++ b/core/src/main/java/org/elasticsearch/index/shard/LocalShardSnapshot.java @@ -85,7 +85,7 @@ public void sync(Collection names) throws IOException { } @Override - public void renameFile(String source, String dest) throws IOException { + public void rename(String source, String dest) throws IOException { throw new UnsupportedOperationException("this directory is read-only"); } diff --git a/core/src/main/java/org/elasticsearch/index/similarity/SimilarityService.java b/core/src/main/java/org/elasticsearch/index/similarity/SimilarityService.java index 7bb81a0109b1c..e74ea6ed6abf8 100644 --- a/core/src/main/java/org/elasticsearch/index/similarity/SimilarityService.java +++ b/core/src/main/java/org/elasticsearch/index/similarity/SimilarityService.java @@ -137,16 +137,6 @@ static class PerFieldSimilarity extends PerFieldSimilarityWrapper { this.mapperService = mapperService; } - @Override - public float coord(int overlap, int maxOverlap) { - return baseSimilarity.coord(overlap, maxOverlap); - } - - @Override - public float queryNorm(float valueForNormalization) { - return baseSimilarity.queryNorm(valueForNormalization); - } - @Override public Similarity get(String name) { MappedFieldType fieldType = mapperService.fullName(name); diff --git a/core/src/main/java/org/elasticsearch/index/store/Store.java b/core/src/main/java/org/elasticsearch/index/store/Store.java index e714d8db8b677..97e64746aa483 100644 --- a/core/src/main/java/org/elasticsearch/index/store/Store.java +++ b/core/src/main/java/org/elasticsearch/index/store/Store.java @@ -245,7 +245,7 @@ public MetadataSnapshot getMetadata(IndexCommit commit) throws IOException { /** - * Renames all the given files form the key of the map to the + * Renames all the given files from the key of the map to the * value of the map. All successfully renamed files are removed from the map in-place. */ public void renameTempFilesSafe(Map tempFileMap) throws IOException { @@ -282,10 +282,11 @@ public int compare(Map.Entry o1, Map.Entry o2) { logger.debug("failed to delete file [{}]", ex, origFile); } // now, rename the files... and fail it it won't work - this.renameFile(tempFile, origFile); + directory.rename(tempFile, origFile); final String remove = tempFileMap.remove(tempFile); assert remove != null; } + directory.syncMetaData(); } finally { metadataLock.writeLock().unlock(); } @@ -299,6 +300,7 @@ public StoreStats stats() throws IOException { public void renameFile(String from, String to) throws IOException { ensureOpen(); + // TODO: switch to directory.rename? but caller needs to syncMetaData! directory.renameFile(from, to); } diff --git a/core/src/main/java/org/elasticsearch/index/translog/Translog.java b/core/src/main/java/org/elasticsearch/index/translog/Translog.java index b6e1c6e18cbf6..7afcb8a558a5e 100644 --- a/core/src/main/java/org/elasticsearch/index/translog/Translog.java +++ b/core/src/main/java/org/elasticsearch/index/translog/Translog.java @@ -1177,7 +1177,7 @@ public static void writeOperationNoSize(BufferedChecksumStreamOutput out, Transl } @Override - public void prepareCommit() throws IOException { + public long prepareCommit() throws IOException { try (ReleasableLock lock = writeLock.acquire()) { ensureOpen(); if (currentCommittingGeneration != NOT_SET_GENERATION) { @@ -1200,10 +1200,11 @@ public void prepareCommit() throws IOException { IOUtils.closeWhileHandlingException(this); // tragic event throw e; } + return 0L; } @Override - public void commit() throws IOException { + public long commit() throws IOException { try (ReleasableLock lock = writeLock.acquire()) { ensureOpen(); if (currentCommittingGeneration == NOT_SET_GENERATION) { @@ -1216,6 +1217,7 @@ public void commit() throws IOException { currentCommittingGeneration = NOT_SET_GENERATION; trimUnreferencedReaders(); } + return 0; } void trimUnreferencedReaders() { diff --git a/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java b/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java index ca9546199276f..23ef9bdcd3fcd 100644 --- a/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java +++ b/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java @@ -19,6 +19,7 @@ package org.elasticsearch.indices.analysis; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ar.ArabicAnalyzer; import org.apache.lucene.analysis.bg.BulgarianAnalyzer; import org.apache.lucene.analysis.br.BrazilianAnalyzer; @@ -58,7 +59,6 @@ import org.apache.lucene.analysis.sv.SwedishAnalyzer; import org.apache.lucene.analysis.th.ThaiAnalyzer; import org.apache.lucene.analysis.tr.TurkishAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.Version; import org.elasticsearch.common.regex.Regex; import org.elasticsearch.index.analysis.PatternAnalyzer; diff --git a/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltTokenFilters.java b/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltTokenFilters.java index 6b69658b34105..a31f60fc5bdba 100644 --- a/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltTokenFilters.java +++ b/core/src/main/java/org/elasticsearch/indices/analysis/PreBuiltTokenFilters.java @@ -18,6 +18,9 @@ */ package org.elasticsearch.indices.analysis; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.LowerCaseFilter; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.ar.ArabicNormalizationFilter; import org.apache.lucene.analysis.ar.ArabicStemFilter; @@ -27,9 +30,7 @@ import org.apache.lucene.analysis.ckb.SoraniNormalizationFilter; import org.apache.lucene.analysis.commongrams.CommonGramsFilter; import org.apache.lucene.analysis.core.DecimalDigitFilter; -import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.core.UpperCaseFilter; import org.apache.lucene.analysis.cz.CzechStemFilter; import org.apache.lucene.analysis.de.GermanNormalizationFilter; @@ -60,7 +61,6 @@ import org.apache.lucene.analysis.standard.ClassicFilter; import org.apache.lucene.analysis.standard.StandardFilter; import org.apache.lucene.analysis.tr.ApostropheFilter; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.analysis.util.ElisionFilter; import org.elasticsearch.Version; import org.elasticsearch.index.analysis.DelimitedPayloadTokenFilterFactory; diff --git a/core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java b/core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java index 856b3ff4264b1..0c9b3e82ecb92 100644 --- a/core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java +++ b/core/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java @@ -33,6 +33,7 @@ import org.apache.lucene.store.RateLimiter; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; +import org.apache.lucene.util.IOUtils; import org.elasticsearch.ElasticsearchParseException; import org.elasticsearch.ExceptionsHelper; import org.elasticsearch.Version; @@ -1636,6 +1637,10 @@ private void restoreFile(final BlobStoreIndexShardSnapshot.FileInfo fileInfo, fi } else { stream = new RateLimitingInputStream(partSliceStream, restoreRateLimiter, restoreRateLimitingTimeInNanos::inc); } + + // TODO: why does the target file sometimes already exist? + IOUtils.deleteFilesIgnoringExceptions(store.directory(), fileInfo.physicalName()); + try (final IndexOutput indexOutput = store.createVerifyingOutput(fileInfo.physicalName(), fileInfo.metadata(), IOContext.DEFAULT)) { final byte[] buffer = new byte[BUFFER_SIZE]; int length; diff --git a/core/src/main/java/org/elasticsearch/search/suggest/completion2x/Completion090PostingsFormat.java b/core/src/main/java/org/elasticsearch/search/suggest/completion2x/Completion090PostingsFormat.java index 5fcbf9db57b78..d3008e999e808 100644 --- a/core/src/main/java/org/elasticsearch/search/suggest/completion2x/Completion090PostingsFormat.java +++ b/core/src/main/java/org/elasticsearch/search/suggest/completion2x/Completion090PostingsFormat.java @@ -41,6 +41,7 @@ import org.apache.lucene.util.Accountables; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.IOUtils; +import org.apache.lucene.util.Version; import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.index.mapper.CompletionFieldMapper2x; @@ -127,7 +128,7 @@ public CompletionFieldsConsumer(SegmentWriteState state) throws IOException { boolean success = false; try { output = state.directory.createOutput(suggestFSTFile, state.context); - CodecUtil.writeHeader(output, CODEC_NAME, SUGGEST_VERSION_CURRENT); + CodecUtil.writeIndexHeader(output, CODEC_NAME, SUGGEST_VERSION_CURRENT, state.segmentInfo.getId(), state.segmentSuffix); /* * we write the delegate postings format name so we can load it * without getting an instance in the ctor @@ -165,7 +166,13 @@ private static class CompletionFieldsProducer extends FieldsProducer { public CompletionFieldsProducer(SegmentReadState state) throws IOException { String suggestFSTFile = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, EXTENSION); IndexInput input = state.directory.openInput(suggestFSTFile, state.context); - version = CodecUtil.checkHeader(input, CODEC_NAME, SUGGEST_CODEC_VERSION, SUGGEST_VERSION_CURRENT); + if (state.segmentInfo.getVersion().onOrAfter(Version.LUCENE_6_2_0)) { + // Lucene 6.2.0+ requires all index files to use index header, but prior to that we used an ordinary codec header: + version = CodecUtil.checkIndexHeader(input, CODEC_NAME, SUGGEST_CODEC_VERSION, SUGGEST_VERSION_CURRENT, + state.segmentInfo.getId(), state.segmentSuffix); + } else { + version = CodecUtil.checkHeader(input, CODEC_NAME, SUGGEST_CODEC_VERSION, SUGGEST_VERSION_CURRENT); + } FieldsProducer delegateProducer = null; boolean success = false; try { diff --git a/core/src/main/resources/org/elasticsearch/bootstrap/security.policy b/core/src/main/resources/org/elasticsearch/bootstrap/security.policy index 2f83d56543da7..97ccfb31bf2b2 100644 --- a/core/src/main/resources/org/elasticsearch/bootstrap/security.policy +++ b/core/src/main/resources/org/elasticsearch/bootstrap/security.policy @@ -31,7 +31,7 @@ grant codeBase "${codebase.securesm-1.1.jar}" { //// Very special jar permissions: //// These are dangerous permissions that we don't want to grant to everything. -grant codeBase "${codebase.lucene-core-6.1.0.jar}" { +grant codeBase "${codebase.lucene-core-6.2.0.jar}" { // needed to allow MMapDirectory's "unmap hack" (die unmap hack, die) // java 8 package permission java.lang.RuntimePermission "accessClassInPackage.sun.misc"; @@ -42,7 +42,7 @@ grant codeBase "${codebase.lucene-core-6.1.0.jar}" { permission java.lang.RuntimePermission "accessDeclaredMembers"; }; -grant codeBase "${codebase.lucene-misc-6.1.0.jar}" { +grant codeBase "${codebase.lucene-misc-6.2.0.jar}" { // needed to allow shard shrinking to use hard-links if possible via lucenes HardlinkCopyDirectoryWrapper permission java.nio.file.LinkPermission "hard"; }; diff --git a/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy b/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy index 86db85d2cdb0d..43f6b62c3c33c 100644 --- a/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy +++ b/core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy @@ -33,7 +33,7 @@ grant codeBase "${codebase.securemock-1.2.jar}" { permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; }; -grant codeBase "${codebase.lucene-test-framework-6.1.0.jar}" { +grant codeBase "${codebase.lucene-test-framework-6.2.0.jar}" { // needed by RamUsageTester permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; // needed for testing hardlinks in StoreRecoveryTests since we install MockFS diff --git a/core/src/test/java/org/elasticsearch/action/termvectors/AbstractTermVectorsTestCase.java b/core/src/test/java/org/elasticsearch/action/termvectors/AbstractTermVectorsTestCase.java index 1bba4cac3dda0..05e30d7e2d7f4 100644 --- a/core/src/test/java/org/elasticsearch/action/termvectors/AbstractTermVectorsTestCase.java +++ b/core/src/test/java/org/elasticsearch/action/termvectors/AbstractTermVectorsTestCase.java @@ -20,14 +20,14 @@ package org.elasticsearch.action.termvectors; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.LowerCaseFilter; import org.apache.lucene.analysis.TokenFilter; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.miscellaneous.PerFieldAnalyzerWrapper; import org.apache.lucene.analysis.payloads.TypeAsPayloadTokenFilter; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.analysis.standard.StandardTokenizer; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.FieldType; diff --git a/core/src/test/java/org/elasticsearch/index/analysis/AnalysisTests.java b/core/src/test/java/org/elasticsearch/index/analysis/AnalysisTests.java index b4042164e2364..4073bbdbbc9c7 100644 --- a/core/src/test/java/org/elasticsearch/index/analysis/AnalysisTests.java +++ b/core/src/test/java/org/elasticsearch/index/analysis/AnalysisTests.java @@ -19,7 +19,7 @@ package org.elasticsearch.index.analysis; -import org.apache.lucene.analysis.util.CharArraySet; +import org.apache.lucene.analysis.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.test.ESTestCase; diff --git a/core/src/test/java/org/elasticsearch/index/analysis/FingerprintAnalyzerTests.java b/core/src/test/java/org/elasticsearch/index/analysis/FingerprintAnalyzerTests.java index ac41220702172..c5e854879e98e 100644 --- a/core/src/test/java/org/elasticsearch/index/analysis/FingerprintAnalyzerTests.java +++ b/core/src/test/java/org/elasticsearch/index/analysis/FingerprintAnalyzerTests.java @@ -20,7 +20,7 @@ */ import org.apache.lucene.analysis.Analyzer; -import org.apache.lucene.analysis.util.CharArraySet; +import org.apache.lucene.analysis.CharArraySet; import org.elasticsearch.test.ESTokenStreamTestCase; public class FingerprintAnalyzerTests extends ESTokenStreamTestCase { diff --git a/core/src/test/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactoryTests.java b/core/src/test/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactoryTests.java index 186f6ac1cb78c..f33ddc88cf4e5 100644 --- a/core/src/test/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactoryTests.java +++ b/core/src/test/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactoryTests.java @@ -19,11 +19,12 @@ package org.elasticsearch.index.analysis; -import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope; import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope; +import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope; + +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.core.WhitespaceTokenizer; import org.elasticsearch.test.ESTokenStreamTestCase; diff --git a/core/src/test/java/org/elasticsearch/index/analysis/StopTokenFilterTests.java b/core/src/test/java/org/elasticsearch/index/analysis/StopTokenFilterTests.java index 191b7ffcdf574..07b00f30e2073 100644 --- a/core/src/test/java/org/elasticsearch/index/analysis/StopTokenFilterTests.java +++ b/core/src/test/java/org/elasticsearch/index/analysis/StopTokenFilterTests.java @@ -19,14 +19,14 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.core.WhitespaceTokenizer; import org.apache.lucene.search.suggest.analyzing.SuggestStopFilter; import org.apache.lucene.util.Version; -import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.Settings.Builder; +import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.test.ESTokenStreamTestCase; diff --git a/core/src/test/java/org/elasticsearch/index/analysis/filter1/MyFilterTokenFilterFactory.java b/core/src/test/java/org/elasticsearch/index/analysis/filter1/MyFilterTokenFilterFactory.java index c7cd3cd625e1e..1c9a4798139ce 100644 --- a/core/src/test/java/org/elasticsearch/index/analysis/filter1/MyFilterTokenFilterFactory.java +++ b/core/src/test/java/org/elasticsearch/index/analysis/filter1/MyFilterTokenFilterFactory.java @@ -18,9 +18,9 @@ */ package org.elasticsearch.index.analysis.filter1; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.core.StopAnalyzer; -import org.apache.lucene.analysis.core.StopFilter; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; @@ -36,4 +36,4 @@ public MyFilterTokenFilterFactory(IndexSettings indexSettings, Environment env, public TokenStream create(TokenStream tokenStream) { return new StopFilter(tokenStream, StopAnalyzer.ENGLISH_STOP_WORDS_SET); } -} \ No newline at end of file +} diff --git a/core/src/test/java/org/elasticsearch/index/codec/CodecTests.java b/core/src/test/java/org/elasticsearch/index/codec/CodecTests.java index 80f1cbe46d099..cf706f33cc259 100644 --- a/core/src/test/java/org/elasticsearch/index/codec/CodecTests.java +++ b/core/src/test/java/org/elasticsearch/index/codec/CodecTests.java @@ -25,7 +25,7 @@ import org.apache.lucene.codecs.lucene50.Lucene50StoredFieldsFormat.Mode; import org.apache.lucene.codecs.lucene53.Lucene53Codec; import org.apache.lucene.codecs.lucene54.Lucene54Codec; -import org.apache.lucene.codecs.lucene60.Lucene60Codec; +import org.apache.lucene.codecs.lucene62.Lucene62Codec; import org.apache.lucene.document.Document; import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.index.IndexWriter; @@ -55,7 +55,7 @@ public class CodecTests extends ESTestCase { public void testResolveDefaultCodecs() throws Exception { CodecService codecService = createCodecService(); assertThat(codecService.codec("default"), instanceOf(PerFieldMappingPostingFormatCodec.class)); - assertThat(codecService.codec("default"), instanceOf(Lucene60Codec.class)); + assertThat(codecService.codec("default"), instanceOf(Lucene62Codec.class)); assertThat(codecService.codec("Lucene54"), instanceOf(Lucene54Codec.class)); assertThat(codecService.codec("Lucene53"), instanceOf(Lucene53Codec.class)); assertThat(codecService.codec("Lucene50"), instanceOf(Lucene50Codec.class)); diff --git a/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java b/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java index ba1894193b162..cb65e5374c85f 100644 --- a/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java +++ b/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java @@ -1017,12 +1017,6 @@ public void testSycnedFlushVanishesOnReplay() throws IOException { engine.index(new Engine.Index(newUid("2"), doc)); EngineConfig config = engine.config(); engine.close(); - final MockDirectoryWrapper directory = DirectoryUtils.getLeaf(store.directory(), MockDirectoryWrapper.class); - if (directory != null) { - // since we rollback the IW we are writing the same segment files again after starting IW but MDW prevents - // this so we have to disable the check explicitly - directory.setPreventDoubleWrite(false); - } engine = new InternalEngine(copy(config, EngineConfig.OpenMode.OPEN_INDEX_AND_TRANSLOG)); engine.recoverFromTranslog(); assertNull("Sync ID must be gone since we have a document to replay", engine.getLastCommittedSegmentInfos().getUserData().get(Engine.SYNC_COMMIT_ID)); @@ -1758,7 +1752,6 @@ public void testTranslogReplayWithFailure() throws IOException { if (directory != null) { // since we rollback the IW we are writing the same segment files again after starting IW but MDW prevents // this so we have to disable the check explicitly - directory.setPreventDoubleWrite(false); boolean started = false; final int numIters = randomIntBetween(10, 20); for (int i = 0; i < numIters; i++) { @@ -1804,12 +1797,6 @@ public void testSkipTranslogReplay() throws IOException { TopDocs topDocs = searcher.searcher().search(new MatchAllDocsQuery(), randomIntBetween(numDocs, numDocs + 10)); assertThat(topDocs.totalHits, equalTo(numDocs)); } - final MockDirectoryWrapper directory = DirectoryUtils.getLeaf(store.directory(), MockDirectoryWrapper.class); - if (directory != null) { - // since we rollback the IW we are writing the same segment files again after starting IW but MDW prevents - // this so we have to disable the check explicitly - directory.setPreventDoubleWrite(false); - } engine.close(); engine = new InternalEngine(engine.config()); @@ -1928,12 +1915,6 @@ public void testTranslogReplay() throws IOException { TopDocs topDocs = searcher.searcher().search(new MatchAllDocsQuery(), randomIntBetween(numDocs, numDocs + 10)); assertThat(topDocs.totalHits, equalTo(numDocs)); } - final MockDirectoryWrapper directory = DirectoryUtils.getLeaf(store.directory(), MockDirectoryWrapper.class); - if (directory != null) { - // since we rollback the IW we are writing the same segment files again after starting IW but MDW prevents - // this so we have to disable the check explicitly - directory.setPreventDoubleWrite(false); - } TranslogHandler parser = (TranslogHandler) engine.config().getTranslogRecoveryPerformer(); parser.mappingUpdate = dynamicUpdate(); @@ -2051,12 +2032,6 @@ public void testRecoverFromForeignTranslog() throws IOException { TopDocs topDocs = searcher.searcher().search(new MatchAllDocsQuery(), randomIntBetween(numDocs, numDocs + 10)); assertThat(topDocs.totalHits, equalTo(numDocs)); } - final MockDirectoryWrapper directory = DirectoryUtils.getLeaf(store.directory(), MockDirectoryWrapper.class); - if (directory != null) { - // since we rollback the IW we are writing the same segment files again after starting IW but MDW prevents - // this so we have to disable the check explicitly - directory.setPreventDoubleWrite(false); - } Translog.TranslogGeneration generation = engine.getTranslog().getGeneration(); engine.close(); diff --git a/core/src/test/java/org/elasticsearch/index/store/StoreTests.java b/core/src/test/java/org/elasticsearch/index/store/StoreTests.java index 25199caff9119..a764452351af3 100644 --- a/core/src/test/java/org/elasticsearch/index/store/StoreTests.java +++ b/core/src/test/java/org/elasticsearch/index/store/StoreTests.java @@ -391,8 +391,8 @@ public void testRenameFile() throws IOException { CodecUtil.writeFooter(output); output.close(); } - store.renameFile("foo.bar", "bar.foo"); - assertThat(numNonExtraFiles(store), is(1)); + store.renameFile("foo.bar", "bar2.foo"); + assertThat(numNonExtraFiles(store), is(2)); assertDeleteContent(store, directoryService); IOUtils.close(store); } @@ -519,9 +519,6 @@ public LuceneManagedDirectoryService(Random random) { public LuceneManagedDirectoryService(Random random, boolean preventDoubleWrite) { super(new ShardId(INDEX_SETTINGS.getIndex(), 1), INDEX_SETTINGS); dir = StoreTests.newDirectory(random); - if (dir instanceof MockDirectoryWrapper) { - ((MockDirectoryWrapper) dir).setPreventDoubleWrite(preventDoubleWrite); - } this.random = random; } @@ -963,11 +960,8 @@ public void testMarkCorruptedOnTruncatedSegmentsFile() throws IOException { } writer.commit(); writer.close(); - MockDirectoryWrapper leaf = DirectoryUtils.getLeaf(store.directory(), MockDirectoryWrapper.class); - if (leaf != null) { - leaf.setPreventDoubleWrite(false); // I do this on purpose - } SegmentInfos segmentCommitInfos = store.readLastCommittedSegmentsInfo(); + store.directory().deleteFile(segmentCommitInfos.getSegmentsFileName()); try (IndexOutput out = store.directory().createOutput(segmentCommitInfos.getSegmentsFileName(), IOContext.DEFAULT)) { // empty file } diff --git a/core/src/test/java/org/elasticsearch/indices/analysis/DummyAnalyzer.java b/core/src/test/java/org/elasticsearch/indices/analysis/DummyAnalyzer.java index 2b19b01f2c490..61b5d2eb319f3 100644 --- a/core/src/test/java/org/elasticsearch/indices/analysis/DummyAnalyzer.java +++ b/core/src/test/java/org/elasticsearch/indices/analysis/DummyAnalyzer.java @@ -19,7 +19,7 @@ package org.elasticsearch.indices.analysis; -import org.apache.lucene.analysis.util.StopwordAnalyzerBase; +import org.apache.lucene.analysis.StopwordAnalyzerBase; public class DummyAnalyzer extends StopwordAnalyzerBase { diff --git a/core/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java b/core/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java index 0640bf0d6f040..d66fd8596bb90 100644 --- a/core/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java +++ b/core/src/test/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellCheckerTests.java @@ -19,9 +19,9 @@ package org.elasticsearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; +import org.apache.lucene.analysis.LowerCaseFilter; import org.apache.lucene.analysis.TokenFilter; import org.apache.lucene.analysis.Tokenizer; -import org.apache.lucene.analysis.core.LowerCaseFilter; import org.apache.lucene.analysis.core.WhitespaceAnalyzer; import org.apache.lucene.analysis.miscellaneous.PerFieldAnalyzerWrapper; import org.apache.lucene.analysis.reverse.ReverseStringFilter; diff --git a/distribution/licenses/lucene-analyzers-common-6.1.0.jar.sha1 b/distribution/licenses/lucene-analyzers-common-6.1.0.jar.sha1 deleted file mode 100644 index 382bf79e91ffb..0000000000000 --- a/distribution/licenses/lucene-analyzers-common-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -20c3c3a717a225df0b462216e70a57922a8edd28 \ No newline at end of file diff --git a/distribution/licenses/lucene-analyzers-common-6.2.0.jar.sha1 b/distribution/licenses/lucene-analyzers-common-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..57aec3f4ac21d --- /dev/null +++ b/distribution/licenses/lucene-analyzers-common-6.2.0.jar.sha1 @@ -0,0 +1 @@ +d254d52dd394b5079129f3d5f3bf4f2d44a5936e \ No newline at end of file diff --git a/distribution/licenses/lucene-backward-codecs-6.1.0.jar.sha1 b/distribution/licenses/lucene-backward-codecs-6.1.0.jar.sha1 deleted file mode 100644 index f13099389d29f..0000000000000 --- a/distribution/licenses/lucene-backward-codecs-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -cbbba4d2d0c1469e0cc3358489b72922ba4963bf \ No newline at end of file diff --git a/distribution/licenses/lucene-backward-codecs-6.2.0.jar.sha1 b/distribution/licenses/lucene-backward-codecs-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..04aefc62f613d --- /dev/null +++ b/distribution/licenses/lucene-backward-codecs-6.2.0.jar.sha1 @@ -0,0 +1 @@ +b625bb21456b3c0d1e5e431bced125cb060c1abd \ No newline at end of file diff --git a/distribution/licenses/lucene-core-6.1.0.jar.sha1 b/distribution/licenses/lucene-core-6.1.0.jar.sha1 deleted file mode 100644 index 5c0b798a771dc..0000000000000 --- a/distribution/licenses/lucene-core-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -763361bd8cb48161ae28d67a7ca20c4abf194ecb \ No newline at end of file diff --git a/distribution/licenses/lucene-core-6.2.0.jar.sha1 b/distribution/licenses/lucene-core-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..2d74124e62411 --- /dev/null +++ b/distribution/licenses/lucene-core-6.2.0.jar.sha1 @@ -0,0 +1 @@ +849ee62525a294416802be2cacc66c80352f6f13 \ No newline at end of file diff --git a/distribution/licenses/lucene-grouping-6.1.0.jar.sha1 b/distribution/licenses/lucene-grouping-6.1.0.jar.sha1 deleted file mode 100644 index 74a68a00f0527..0000000000000 --- a/distribution/licenses/lucene-grouping-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -c40e8a1904557f67e3d14462d64865cf4a838123 \ No newline at end of file diff --git a/distribution/licenses/lucene-grouping-6.2.0.jar.sha1 b/distribution/licenses/lucene-grouping-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..6ba525a038fc5 --- /dev/null +++ b/distribution/licenses/lucene-grouping-6.2.0.jar.sha1 @@ -0,0 +1 @@ +9527fedfd5acc624b2bb3f862bd99fb8f470b053 \ No newline at end of file diff --git a/distribution/licenses/lucene-highlighter-6.1.0.jar.sha1 b/distribution/licenses/lucene-highlighter-6.1.0.jar.sha1 deleted file mode 100644 index b26247fef5127..0000000000000 --- a/distribution/licenses/lucene-highlighter-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -6ab7c27256d3cd51022fb7130eb3e92391f24cdc \ No newline at end of file diff --git a/distribution/licenses/lucene-highlighter-6.2.0.jar.sha1 b/distribution/licenses/lucene-highlighter-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..c258e3fb85026 --- /dev/null +++ b/distribution/licenses/lucene-highlighter-6.2.0.jar.sha1 @@ -0,0 +1 @@ +7ca342372a3f45e32bbd21cecaa757e38eccb8a5 \ No newline at end of file diff --git a/distribution/licenses/lucene-join-6.1.0.jar.sha1 b/distribution/licenses/lucene-join-6.1.0.jar.sha1 deleted file mode 100644 index 2198e45313844..0000000000000 --- a/distribution/licenses/lucene-join-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -63411cef454a282c9ead56b25e0ca87daecbcf77 \ No newline at end of file diff --git a/distribution/licenses/lucene-join-6.2.0.jar.sha1 b/distribution/licenses/lucene-join-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..01989e96a588e --- /dev/null +++ b/distribution/licenses/lucene-join-6.2.0.jar.sha1 @@ -0,0 +1 @@ +da0b8de98511abd4fe9c7d48a353d17854c5ed46 \ No newline at end of file diff --git a/distribution/licenses/lucene-memory-6.1.0.jar.sha1 b/distribution/licenses/lucene-memory-6.1.0.jar.sha1 deleted file mode 100644 index 7937bebc519fe..0000000000000 --- a/distribution/licenses/lucene-memory-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -e6702402615fcca549457842a08d21c35375a632 \ No newline at end of file diff --git a/distribution/licenses/lucene-memory-6.2.0.jar.sha1 b/distribution/licenses/lucene-memory-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..b8a4a87efe26a --- /dev/null +++ b/distribution/licenses/lucene-memory-6.2.0.jar.sha1 @@ -0,0 +1 @@ +bc9e075b1ee051c8e5246c237c38d8e71dab8a66 \ No newline at end of file diff --git a/distribution/licenses/lucene-misc-6.1.0.jar.sha1 b/distribution/licenses/lucene-misc-6.1.0.jar.sha1 deleted file mode 100644 index 87e8d94d4633f..0000000000000 --- a/distribution/licenses/lucene-misc-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -9a4884f1eaa7ac8af4abb51b45d0175ef7a3e03f \ No newline at end of file diff --git a/distribution/licenses/lucene-misc-6.2.0.jar.sha1 b/distribution/licenses/lucene-misc-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..f4e081865ad43 --- /dev/null +++ b/distribution/licenses/lucene-misc-6.2.0.jar.sha1 @@ -0,0 +1 @@ +94ddde6312566a4da4a50a88e453b6c82c759b41 \ No newline at end of file diff --git a/distribution/licenses/lucene-queries-6.1.0.jar.sha1 b/distribution/licenses/lucene-queries-6.1.0.jar.sha1 deleted file mode 100644 index 687a6fa1ce6fb..0000000000000 --- a/distribution/licenses/lucene-queries-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -2239ddd94a44d627b667221bdf129681af85ba51 \ No newline at end of file diff --git a/distribution/licenses/lucene-queries-6.2.0.jar.sha1 b/distribution/licenses/lucene-queries-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..f7270a23afe0f --- /dev/null +++ b/distribution/licenses/lucene-queries-6.2.0.jar.sha1 @@ -0,0 +1 @@ +dce47238f78e3e97d91dc6fefa9f46f07866bc2b \ No newline at end of file diff --git a/distribution/licenses/lucene-queryparser-6.1.0.jar.sha1 b/distribution/licenses/lucene-queryparser-6.1.0.jar.sha1 deleted file mode 100644 index 69df3d6e69520..0000000000000 --- a/distribution/licenses/lucene-queryparser-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -6b9e5e3dfc5b3c2689dcdc63d115c06be06c3837 \ No newline at end of file diff --git a/distribution/licenses/lucene-queryparser-6.2.0.jar.sha1 b/distribution/licenses/lucene-queryparser-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..8e95aa600ec3c --- /dev/null +++ b/distribution/licenses/lucene-queryparser-6.2.0.jar.sha1 @@ -0,0 +1 @@ +17ef728ac15e668bfa1105321611548424637645 \ No newline at end of file diff --git a/distribution/licenses/lucene-sandbox-6.1.0.jar.sha1 b/distribution/licenses/lucene-sandbox-6.1.0.jar.sha1 deleted file mode 100644 index 5790e6e19b154..0000000000000 --- a/distribution/licenses/lucene-sandbox-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -53d35813f366d70ae0aef99d4f567d007290bdd2 \ No newline at end of file diff --git a/distribution/licenses/lucene-sandbox-6.2.0.jar.sha1 b/distribution/licenses/lucene-sandbox-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..1f34be3033df0 --- /dev/null +++ b/distribution/licenses/lucene-sandbox-6.2.0.jar.sha1 @@ -0,0 +1 @@ +520183f7b9aba77a26e224760c420a3844b0631a \ No newline at end of file diff --git a/distribution/licenses/lucene-spatial-6.1.0.jar.sha1 b/distribution/licenses/lucene-spatial-6.1.0.jar.sha1 deleted file mode 100644 index 3031c7fbd96fa..0000000000000 --- a/distribution/licenses/lucene-spatial-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -03ce415700267e5d329f2d01e599d13291aaef97 \ No newline at end of file diff --git a/distribution/licenses/lucene-spatial-6.2.0.jar.sha1 b/distribution/licenses/lucene-spatial-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..22e81792e4057 --- /dev/null +++ b/distribution/licenses/lucene-spatial-6.2.0.jar.sha1 @@ -0,0 +1 @@ +8dba929b66927b936fbc76103b109ad6c824daee \ No newline at end of file diff --git a/distribution/licenses/lucene-spatial-extras-6.1.0.jar.sha1 b/distribution/licenses/lucene-spatial-extras-6.1.0.jar.sha1 deleted file mode 100644 index 5d5c9fc40d246..0000000000000 --- a/distribution/licenses/lucene-spatial-extras-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -eed865fccebb3c0a1ec2bebba1eddaaf9295c385 \ No newline at end of file diff --git a/distribution/licenses/lucene-spatial-extras-6.2.0.jar.sha1 b/distribution/licenses/lucene-spatial-extras-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..d5e8f379d78c0 --- /dev/null +++ b/distribution/licenses/lucene-spatial-extras-6.2.0.jar.sha1 @@ -0,0 +1 @@ +3b5a6ef5cd90c0218a72e9e2f7e60104be2447da \ No newline at end of file diff --git a/distribution/licenses/lucene-spatial3d-6.1.0.jar.sha1 b/distribution/licenses/lucene-spatial3d-6.1.0.jar.sha1 deleted file mode 100644 index 4735753ddc0de..0000000000000 --- a/distribution/licenses/lucene-spatial3d-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -365a48f8d019aeeea34de1e80b03344fe3d4401b \ No newline at end of file diff --git a/distribution/licenses/lucene-spatial3d-6.2.0.jar.sha1 b/distribution/licenses/lucene-spatial3d-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..d0ce5275a269c --- /dev/null +++ b/distribution/licenses/lucene-spatial3d-6.2.0.jar.sha1 @@ -0,0 +1 @@ +fcdb0567725722c5145149d1502848b6a96ec18d \ No newline at end of file diff --git a/distribution/licenses/lucene-suggest-6.1.0.jar.sha1 b/distribution/licenses/lucene-suggest-6.1.0.jar.sha1 deleted file mode 100644 index 548cba1d04858..0000000000000 --- a/distribution/licenses/lucene-suggest-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -e39f0e09ff1e3d9874a3b072294b80cf6567e431 \ No newline at end of file diff --git a/distribution/licenses/lucene-suggest-6.2.0.jar.sha1 b/distribution/licenses/lucene-suggest-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..39392ad115816 --- /dev/null +++ b/distribution/licenses/lucene-suggest-6.2.0.jar.sha1 @@ -0,0 +1 @@ +3d9d526c51f483d27f425c75d7e56bc0849242d6 \ No newline at end of file diff --git a/modules/lang-expression/licenses/lucene-expressions-6.1.0.jar.sha1 b/modules/lang-expression/licenses/lucene-expressions-6.1.0.jar.sha1 deleted file mode 100644 index ac5b533d138fc..0000000000000 --- a/modules/lang-expression/licenses/lucene-expressions-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -e722f2e6b4838ede6bf4f1c088fe7b261a7b7571 \ No newline at end of file diff --git a/modules/lang-expression/licenses/lucene-expressions-6.2.0.jar.sha1 b/modules/lang-expression/licenses/lucene-expressions-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..205aaae6e6616 --- /dev/null +++ b/modules/lang-expression/licenses/lucene-expressions-6.2.0.jar.sha1 @@ -0,0 +1 @@ +99764b20aba5443f8a181f7015a806443c589844 \ No newline at end of file diff --git a/plugins/analysis-icu/licenses/lucene-analyzers-icu-6.1.0.jar.sha1 b/plugins/analysis-icu/licenses/lucene-analyzers-icu-6.1.0.jar.sha1 deleted file mode 100644 index 96fef36cf4ede..0000000000000 --- a/plugins/analysis-icu/licenses/lucene-analyzers-icu-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -f580ed2ea0dca073199daa1a190ac142b3426030 \ No newline at end of file diff --git a/plugins/analysis-icu/licenses/lucene-analyzers-icu-6.2.0.jar.sha1 b/plugins/analysis-icu/licenses/lucene-analyzers-icu-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..2a734f79a3f83 --- /dev/null +++ b/plugins/analysis-icu/licenses/lucene-analyzers-icu-6.2.0.jar.sha1 @@ -0,0 +1 @@ +68de5f298090b92aa9a803eb4f5aed0c9104e685 \ No newline at end of file diff --git a/plugins/analysis-icu/src/main/java/org/elasticsearch/index/analysis/IcuTokenizerFactory.java b/plugins/analysis-icu/src/main/java/org/elasticsearch/index/analysis/IcuTokenizerFactory.java index eac3ceebc1642..14fa5922c1d90 100644 --- a/plugins/analysis-icu/src/main/java/org/elasticsearch/index/analysis/IcuTokenizerFactory.java +++ b/plugins/analysis-icu/src/main/java/org/elasticsearch/index/analysis/IcuTokenizerFactory.java @@ -85,8 +85,8 @@ private ICUTokenizerConfig getIcuConfig(Environment env, Settings settings) { String resourcePath = entry.getValue(); breakers[code] = parseRules(resourcePath, env); } - // cjkAsWords is not configurable yet. - ICUTokenizerConfig config = new DefaultICUTokenizerConfig(true) { + // cjkAsWords nor myanmarAsWords are not configurable yet. + ICUTokenizerConfig config = new DefaultICUTokenizerConfig(true, true) { @Override public BreakIterator getBreakIterator(int script) { if (breakers[script] != null) { diff --git a/plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.1.0.jar.sha1 b/plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.1.0.jar.sha1 deleted file mode 100644 index bb0e327d275ab..0000000000000 --- a/plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -dc436a2a2324e95fb27678d85ca6fd5018a5cec6 \ No newline at end of file diff --git a/plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.2.0.jar.sha1 b/plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..749cb8ecde8ab --- /dev/null +++ b/plugins/analysis-kuromoji/licenses/lucene-analyzers-kuromoji-6.2.0.jar.sha1 @@ -0,0 +1 @@ +17ee76df332c0342a172790472b777086487a299 \ No newline at end of file diff --git a/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/JapaneseStopTokenFilterFactory.java b/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/JapaneseStopTokenFilterFactory.java index 7b760bc4f63ef..d10fe4089f2a6 100644 --- a/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/JapaneseStopTokenFilterFactory.java +++ b/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/JapaneseStopTokenFilterFactory.java @@ -20,10 +20,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; +import org.apache.lucene.analysis.StopFilter; import org.apache.lucene.analysis.TokenStream; -import org.apache.lucene.analysis.core.StopFilter; import org.apache.lucene.analysis.ja.JapaneseAnalyzer; -import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.search.suggest.analyzing.SuggestStopFilter; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; diff --git a/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/KuromojiAnalyzerProvider.java b/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/KuromojiAnalyzerProvider.java index 21d9b8040550a..0c6ab2d3ea66e 100644 --- a/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/KuromojiAnalyzerProvider.java +++ b/plugins/analysis-kuromoji/src/main/java/org/elasticsearch/index/analysis/KuromojiAnalyzerProvider.java @@ -19,10 +19,10 @@ package org.elasticsearch.index.analysis; +import org.apache.lucene.analysis.CharArraySet; import org.apache.lucene.analysis.ja.JapaneseAnalyzer; import org.apache.lucene.analysis.ja.JapaneseTokenizer; import org.apache.lucene.analysis.ja.dict.UserDictionary; -import org.apache.lucene.analysis.util.CharArraySet; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.IndexSettings; diff --git a/plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.1.0.jar.sha1 b/plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.1.0.jar.sha1 deleted file mode 100644 index 94556c240561a..0000000000000 --- a/plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -1debc0cb187cde2bb2bcb3fc8a468f820d25b440 \ No newline at end of file diff --git a/plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.2.0.jar.sha1 b/plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..359173e008404 --- /dev/null +++ b/plugins/analysis-phonetic/licenses/lucene-analyzers-phonetic-6.2.0.jar.sha1 @@ -0,0 +1 @@ +8d2a6b8679563d9f044eb1cee580282b20d8e149 \ No newline at end of file diff --git a/plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.1.0.jar.sha1 b/plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.1.0.jar.sha1 deleted file mode 100644 index 5abfc22ee1ac1..0000000000000 --- a/plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -8e898fbd5da085f7b041feb3537a34137d2db560 \ No newline at end of file diff --git a/plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.2.0.jar.sha1 b/plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..66e339bfa2f8a --- /dev/null +++ b/plugins/analysis-smartcn/licenses/lucene-analyzers-smartcn-6.2.0.jar.sha1 @@ -0,0 +1 @@ +ba3fd99d1cf47d31b82817accdb199fc7a8d838d \ No newline at end of file diff --git a/plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.1.0.jar.sha1 b/plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.1.0.jar.sha1 deleted file mode 100644 index ac449309ee25c..0000000000000 --- a/plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.1.0.jar.sha1 +++ /dev/null @@ -1 +0,0 @@ -51a52b0cd4ba5e686201917e65393feb56afd3a7 \ No newline at end of file diff --git a/plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.2.0.jar.sha1 b/plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.2.0.jar.sha1 new file mode 100644 index 0000000000000..5cfb071f3a397 --- /dev/null +++ b/plugins/analysis-stempel/licenses/lucene-analyzers-stempel-6.2.0.jar.sha1 @@ -0,0 +1 @@ +09d2a759a765f73e2e7becbc560411469c464cfa \ No newline at end of file diff --git a/test/framework/src/main/java/org/elasticsearch/AnalysisFactoryTestCase.java b/test/framework/src/main/java/org/elasticsearch/AnalysisFactoryTestCase.java index 35ef0868ebaba..97c2354dac4ae 100644 --- a/test/framework/src/main/java/org/elasticsearch/AnalysisFactoryTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/AnalysisFactoryTestCase.java @@ -228,6 +228,10 @@ public class AnalysisFactoryTestCase extends ESTestCase { .put("fingerprint", Void.class) // for tee-sinks .put("daterecognizer", Void.class) + .put("minhash", Void.class) + .put("scandinaviannormalization", Void.class) + .put("scandinavianfolding", Void.class) + .immutableMap(); static final Map> KNOWN_CHARFILTERS = new MapBuilder>() diff --git a/test/framework/src/main/java/org/elasticsearch/test/store/MockFSDirectoryService.java b/test/framework/src/main/java/org/elasticsearch/test/store/MockFSDirectoryService.java index 1b99d2f32cb1a..9da45713c1044 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/store/MockFSDirectoryService.java +++ b/test/framework/src/main/java/org/elasticsearch/test/store/MockFSDirectoryService.java @@ -172,7 +172,7 @@ private Directory wrap(Directory dir) { w.setRandomIOExceptionRateOnOpen(randomIOExceptionRateOnOpen); w.setThrottling(throttle); w.setCheckIndexOnClose(false); // we do this on the index level - w.setPreventDoubleWrite(preventDoubleWrite); + //w.setPreventDoubleWrite(preventDoubleWrite); // TODO: make this test robust to virus scanner w.setAssertNoDeleteOpenFile(false); w.setUseSlowOpenClosers(false);