Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-210, make use of nutch.xml servlet context in opensearch servlet too

Jerome Charron0558afd94ec7
diff --git a/src/java/org/apache/nutch/searcher/OpenSearchServlet.java b/src/java/org/apache/nutch/searcher/OpenSearchServlet.java
index 5ec156bfa..0693ab967 100644
--- a/src/java/org/apache/nutch/searcher/OpenSearchServlet.java
+++ b/src/java/org/apache/nutch/searcher/OpenSearchServlet.java
@@ -62,7 +62,7 @@ public class OpenSearchServlet extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
try {
- this.conf = NutchConfiguration.create();
+ this.conf = NutchConfiguration.get(config.getServletContext());
bean = NutchBean.get(config.getServletContext(), this.conf);
} catch (IOException e) {
throw new ServletException(e);