Apache Solr open-source search software
SOLR-2846: add json handler to solrconfig, fix /udate/json typo in SolrTestCaseJ4
Yonik Seeley7b1175c6022a
diff --git a/solr/core/src/test-files/solr/conf/solrconfig.xml b/solr/core/src/test-files/solr/conf/solrconfig.xmlindex e7f764dce26..c2d8d20a2ab 100644--- a/solr/core/src/test-files/solr/conf/solrconfig.xml+++ b/solr/core/src/test-files/solr/conf/solrconfig.xml@@ -312,6 +312,8 @@<requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy"><bool name="httpCaching">false</bool></requestHandler>+ <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler" />+<searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent"><!-- This is slightly different from the field value so we can test dealing with token offset changes -->diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.javaindex 34e74d533d3..6b585493f4a 100755--- a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java+++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java@@ -673,7 +673,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {public static String updateJ(String json, SolrParams args) throws Exception {SolrCore core = h.getCore();DirectSolrConnection connection = new DirectSolrConnection(core);- SolrRequestHandler handler = core.getRequestHandler("/udate/json");+ SolrRequestHandler handler = core.getRequestHandler("/update/json");if (handler == null) {handler = new JsonUpdateRequestHandler();handler.init(null);