Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 9ee1915

Browse files
committed
Upgrade to Elasticsearch 6.7.0
1 parent e1f1687 commit 9ee1915

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Uses the [langdetect](https://github.com/YouCruit/language-detection/) plugin to
66

77
| ES | Command |
88
| ----- | ------- |
9+
| 6.7.0 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/6.7.0.1/ingest-langdetect-6.7.0.1.zip` |
910
| 6.6.2 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/6.6.2.1/ingest-langdetect-6.6.2.1.zip` |
1011
| 6.6.1 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/6.6.1.1/ingest-langdetect-6.6.1.1.zip` |
1112
| 6.6.0 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/6.6.0.1/ingest-langdetect-6.6.0.1.zip` |

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
elasticsearchVersion = 6.6.2
1+
elasticsearchVersion = 6.7.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/com/cybozu/labs/langdetect/SecureDetectorFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ public static void loadProfileFromClassPath(Environment environment) throws Lang
6565
Iterator<Path> iter = ds.iterator();
6666
Map<String, LangProfile> profiles = new HashMap<>();
6767
while (iter.hasNext()) {
68-
String path = iter.next().toString().replaceFirst("/","");
68+
String path = iter.next().toString().replaceFirst("^/","");
6969
InputStream stream = SecureDetectorFactory.class.getClassLoader().getResourceAsStream(path);
70+
assert stream != null;
7071

7172
Map<String, Object> data = XContentType.JSON.xContent().createParser(NamedXContentRegistry.EMPTY,
7273
DeprecationHandler.THROW_UNSUPPORTED_OPERATION, stream).map();

0 commit comments

Comments
 (0)