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

Commit 2cd6e4c

Browse files
committed
Update to Elasticsearch 8.4.0
1 parent 4f893a1 commit 2cd6e4c

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.elastic.co/elasticsearch/elasticsearch:8.3.3
1+
FROM docker.elastic.co/elasticsearch/elasticsearch:8.4.0
22

33
ADD build/distribution/elasticsearch-ingest-langdetect.zip /elasticsearch-ingest-langdetect.zip
44
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:///elasticsearch-ingest-langdetect.zip

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ again.
1515

1616
| ES | Command |
1717
| ----- | ------- |
18+
| 8.4.0 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/8.4.0.1/ingest-langdetect-8.4.0.1.zip` |
1819
| 8.3.3 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/8.3.3.1/ingest-langdetect-8.3.3.1.zip` |
1920
| 8.3.2 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/8.3.2.1/ingest-langdetect-8.3.2.1.zip` |
2021
| 8.3.1 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-langdetect/releases/download/8.3.1.1/ingest-langdetect-8.3.1.1.zip` |

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
elasticsearchVersion = 8.3.3
1+
elasticsearchVersion = 8.4.0

src/main/resources/plugin-descriptor.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
type=isolated
21
name=ingest-langdetect
32
version=@version@
43
elasticsearch.version=@elasticsearchVersion@

src/test/java/org/elasticsearch/plugin/ingest/langdetect/LangDetectProcessorTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.cybozu.labs.langdetect.SecureDetectorFactory;
2222
import org.elasticsearch.common.settings.Settings;
2323
import org.elasticsearch.env.Environment;
24+
import org.elasticsearch.index.VersionType;
2425
import org.elasticsearch.ingest.IngestDocument;
2526
import org.elasticsearch.ingest.Processor;
2627
import org.junit.jupiter.api.BeforeAll;
@@ -98,9 +99,10 @@ public void testNumbersOnlyThrowsException() throws Exception {
9899
}
99100

100101
private Map<String, Object> ingestDocument(Map<String, Object> config, String field, String value) throws Exception {
101-
Map<String, Object> document = new HashMap<>();
102+
Map<String, Object> document = new HashMap<>(1);
102103
document.put(field, value);
103-
IngestDocument ingestDocument = new IngestDocument(document, Collections.emptyMap());
104+
IngestDocument ingestDocument = new IngestDocument("my-index", "my-id", 1L, null,
105+
VersionType.INTERNAL, document);
104106

105107
Processor processor = new LangDetectProcessor.Factory()
106108
.create(Collections.emptyMap(), "my-tag", "desc", config);

0 commit comments

Comments
 (0)