From af18d0cb125a9ccd53778104ddd54108b6817441 Mon Sep 17 00:00:00 2001 From: Eric Pugh Date: Tue, 10 Oct 2023 18:21:36 -0300 Subject: [PATCH] match name in the underlying OpenNLP project. bikeshedding! --- ...tory.java => DocumentCategorizerUpdateProcessorFactory.java} | 2 +- solr/packaging/test/test_opennlp.bats | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/{DocumentCategorizationUpdateProcessorFactory.java => DocumentCategorizerUpdateProcessorFactory.java} (99%) diff --git a/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/DocumentCategorizationUpdateProcessorFactory.java b/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/DocumentCategorizerUpdateProcessorFactory.java similarity index 99% rename from solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/DocumentCategorizationUpdateProcessorFactory.java rename to solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/DocumentCategorizerUpdateProcessorFactory.java index 732073acca8..836d6543c09 100644 --- a/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/DocumentCategorizationUpdateProcessorFactory.java +++ b/solr/modules/analysis-extras/src/java/org/apache/solr/update/processor/DocumentCategorizerUpdateProcessorFactory.java @@ -52,7 +52,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class DocumentCategorizationUpdateProcessorFactory extends UpdateRequestProcessorFactory +public class DocumentCategorizerUpdateProcessorFactory extends UpdateRequestProcessorFactory implements SolrCoreAware { private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); diff --git a/solr/packaging/test/test_opennlp.bats b/solr/packaging/test/test_opennlp.bats index c9d9ef89f85..1c9462d521a 100644 --- a/solr/packaging/test/test_opennlp.bats +++ b/solr/packaging/test/test_opennlp.bats @@ -80,7 +80,7 @@ teardown() { run curl -X POST -H 'Content-type:application/json' -d '{ "add-updateprocessor": { "name": "sentimentClassifier", - "class": "solr.processor.DocumentCategorizationUpdateProcessorFactory", + "class": "solr.processor.DocumentCategorizerUpdateProcessorFactory", "modelFile": "/Users/epugh/Documents/projects/solr-epugh/exported/model.onnx", "vocabFile": "/Users/epugh/Documents/projects/solr-epugh/exported/vocab.txt", "source": "name",