Skip to content

Commit

Permalink
Update to Elasticsearch 8.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spinscale committed Aug 25, 2022
1 parent 7f8cf95 commit 656aabc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:8.3.3
FROM docker.elastic.co/elasticsearch/elasticsearch:8.4.0

ADD ./src/test/resources/models/en-ner-persons.bin /usr/share/elasticsearch/config/ingest-opennlp/
ADD ./src/test/resources/models/en-ner-locations.bin /usr/share/elasticsearch/config/ingest-opennlp/
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This plugin is also intended to show you, that using gradle as a build system ma

| ES | Command |
| ----- | ------- |
| 8.4.0 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-opennlp/releases/download/8.4.0.1/ingest-opennlp-8.4.0.1.zip` |
| 8.3.3 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-opennlp/releases/download/8.3.3.1/ingest-opennlp-8.3.3.1.zip` |
| 8.3.2 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-opennlp/releases/download/8.3.2.1/ingest-opennlp-8.3.2.1.zip` |
| 8.3.1 | `bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-opennlp/releases/download/8.3.1.1/ingest-opennlp-8.3.1.1.zip` |
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
elasticsearchVersion = 8.3.3
elasticsearchVersion = 8.4.0
1 change: 0 additions & 1 deletion src/main/resources/plugin-descriptor.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
type=isolated
name=ingest-opennlp
version=@version@
elasticsearch.version=@elasticsearchVersion@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@
import org.junit.jupiter.api.Test;

import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.*;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down Expand Up @@ -168,8 +163,7 @@ private IngestDocument getIngestDocument() throws Exception {
private IngestDocument getIngestDocument(String content) throws Exception {
Map<String, Object> document = new HashMap<>();
document.put("source_field", content);
// public IngestDocument(String index, String id, String routing, Long version, VersionType versionType, Map<String, Object> source) {
return new IngestDocument("my-index", "my-id", null, 1L, VersionType.INTERNAL, document);
return new IngestDocument("my-index", "my-id", 1L, null, VersionType.INTERNAL, document);
}

private Map<String, Object> getIngestDocumentData(IngestDocument ingestDocument) throws Exception {
Expand Down

0 comments on commit 656aabc

Please sign in to comment.