This is an automated email from the ASF dual-hosted git repository. snoopdave pushed a commit to branch remove-solr in repository https://gitbox.apache.org/repos/asf/roller.git
commit bafc3b50b842b054019c1ff8bfb00c8b905dd2f5 Author: David M. Johnson <snoopd...@apache.org> AuthorDate: Sun Jul 23 15:14:54 2023 -0400 Remove unnecessary Solr dependency. --- app/pom.xml | 17 ----- .../business/search/solr/SolrIndexManager.java | 88 ---------------------- 2 files changed, 105 deletions(-) diff --git a/app/pom.xml b/app/pom.xml index 146aa1b83..a80eba6bd 100644 --- a/app/pom.xml +++ b/app/pom.xml @@ -308,23 +308,6 @@ limitations under the License. <version>${lucene.version}</version> </dependency> - <dependency> - <groupId>org.apache.solr</groupId> - <artifactId>solr-solrj</artifactId> - <version>9.1.1</version> - <!-- exclude vulnerable dependencies --> - <exclusions> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-codec</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-common</artifactId> - </exclusion> - </exclusions> - </dependency> - <!-- slf4j implementing the apache commons-logging interfaces --> <!-- note: commons-logging needs to be excluded in all dependencies transitive depending on it. See 2006 RFE https://issues.apache.org/jira/browse/MNG-1977 for maven's missing feature of global exclusions --> diff --git a/app/src/main/java/org/apache/roller/weblogger/business/search/solr/SolrIndexManager.java b/app/src/main/java/org/apache/roller/weblogger/business/search/solr/SolrIndexManager.java deleted file mode 100644 index c71d7a9f0..000000000 --- a/app/src/main/java/org/apache/roller/weblogger/business/search/solr/SolrIndexManager.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. The ASF licenses this file to You - * under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. For additional information regarding - * copyright in this work, please see the NOTICE file in the top level - * directory of this distribution. - */ - -/* Created on March 8, 2023 */ - -package org.apache.roller.weblogger.business.search.solr; - -import org.apache.roller.weblogger.WebloggerException; -import org.apache.roller.weblogger.business.InitializationException; -import org.apache.roller.weblogger.business.URLStrategy; -import org.apache.roller.weblogger.business.search.IndexManager; -import org.apache.roller.weblogger.business.search.SearchResultList; -import org.apache.roller.weblogger.business.search.SearchResultMap; -import org.apache.roller.weblogger.pojos.Weblog; -import org.apache.roller.weblogger.pojos.WeblogEntry; - -public class SolrIndexManager implements IndexManager { - @Override - public void initialize() throws InitializationException { - - } - - @Override - public void shutdown() { - - } - - @Override - public void release() { - - } - - @Override - public boolean isInconsistentAtStartup() { - return false; - } - - @Override - public void addEntryIndexOperation(WeblogEntry entry) throws WebloggerException { - - } - - @Override - public void addEntryReIndexOperation(WeblogEntry entry) throws WebloggerException { - - } - - @Override - public void rebuildWeblogIndex(Weblog weblog) throws WebloggerException { - - } - - @Override - public void rebuildWeblogIndex() throws WebloggerException { - - } - - @Override - public void removeWeblogIndex(Weblog weblog) throws WebloggerException { - - } - - @Override - public void removeEntryIndexOperation(WeblogEntry entry) throws WebloggerException { - - } - - @Override - public SearchResultList search(String term, String weblogHandle, String category, String locale, int pageNum, int entryCount, URLStrategy urlStrategy) throws WebloggerException { - return null; - } - -}