From 367988dfd63751e05e10c93c4c32bd9f7c47b634 Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Wed, 13 Mar 2024 15:55:55 +0100 Subject: [PATCH] NUTCH-3008 indexer-elastic: downgrade to ES 7.10.2 to address licensing issues --- .../indexer-elastic/howto_upgrade_es.md | 4 +- src/plugin/indexer-elastic/ivy.xml | 2 +- src/plugin/indexer-elastic/plugin.xml | 37 +++++++++---------- .../elastic/ElasticIndexWriter.java | 2 +- 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/src/plugin/indexer-elastic/howto_upgrade_es.md b/src/plugin/indexer-elastic/howto_upgrade_es.md index b57e0c02fa..ca58639d19 100644 --- a/src/plugin/indexer-elastic/howto_upgrade_es.md +++ b/src/plugin/indexer-elastic/howto_upgrade_es.md @@ -37,7 +37,7 @@ (eventually with different versions) - duplicated libs can be added to the exclusions of transitive dependencies in build/plugins/indexer-elastic/ivy.xml - - but it should be made sure that the library versions in ivy/ivy.xml correspend to + - but it should be made sure that the library versions in ivy/ivy.xml correspond to those required by Tika 5. Remove the locally "installed" dependencies in src/plugin/indexer-elastic/lib/: @@ -47,4 +47,4 @@ 6. Build Nutch and run all unit tests: $ cd ../../../ - $ ant clean runtime test \ No newline at end of file + $ ant clean runtime test diff --git a/src/plugin/indexer-elastic/ivy.xml b/src/plugin/indexer-elastic/ivy.xml index de59711a28..2a52fc62bb 100644 --- a/src/plugin/indexer-elastic/ivy.xml +++ b/src/plugin/indexer-elastic/ivy.xml @@ -36,7 +36,7 @@ - + diff --git a/src/plugin/indexer-elastic/plugin.xml b/src/plugin/indexer-elastic/plugin.xml index fc3723a608..b4f872375f 100644 --- a/src/plugin/indexer-elastic/plugin.xml +++ b/src/plugin/indexer-elastic/plugin.xml @@ -22,18 +22,17 @@ - - + - - - - - - - - - + + + + + + + + + @@ -43,10 +42,10 @@ - - + + - + @@ -58,12 +57,12 @@ - + - - - + + + @@ -74,4 +73,4 @@ - \ No newline at end of file + diff --git a/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java b/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java index 290d9dfca2..0cb2674636 100644 --- a/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java +++ b/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java @@ -149,7 +149,7 @@ public void open(IndexWriterParams parameters) throws IOException { .builder( (request, bulkListener) -> client.bulkAsync(request, RequestOptions.DEFAULT, bulkListener), - bulkProcessorListener(), "nutch-indexer-elastic") + bulkProcessorListener()) .setBulkActions(maxBulkDocs) .setBulkSize(new ByteSizeValue(maxBulkLength, ByteSizeUnit.BYTES)) .setConcurrentRequests(1)