You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2011/10/26 15:12:15 UTC
svn commit: r1189186 - in /lucene/dev/trunk/solr:
core/src/test-files/solr/conf/solrconfig.xml
test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Author: yonik
Date: Wed Oct 26 13:12:15 2011
New Revision: 1189186
URL: http://svn.apache.org/viewvc?rev=1189186&view=rev
Log:
SOLR-2846: add json handler to solrconfig, fix /udate/json typo in SolrTestCaseJ4
Modified:
lucene/dev/trunk/solr/core/src/test-files/solr/conf/solrconfig.xml
lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
Modified: lucene/dev/trunk/solr/core/src/test-files/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test-files/solr/conf/solrconfig.xml?rev=1189186&r1=1189185&r2=1189186&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test-files/solr/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/core/src/test-files/solr/conf/solrconfig.xml Wed Oct 26 13:12:15 2011
@@ -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 -->
Modified: lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java?rev=1189186&r1=1189185&r2=1189186&view=diff
==============================================================================
--- lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java (original)
+++ lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java Wed Oct 26 13:12:15 2011
@@ -673,7 +673,7 @@ public abstract class SolrTestCaseJ4 ext
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);