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 2012/03/29 19:50:00 UTC

svn commit: r1307017 - /lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Author: yonik
Date: Thu Mar 29 17:49:59 2012
New Revision: 1307017

URL: http://svn.apache.org/viewvc?rev=1307017&view=rev
Log:
SOLR-3259: add a /query handler that defaults to indented JSON

Modified:
    lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Modified: lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml?rev=1307017&r1=1307016&r2=1307017&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml Thu Mar 29 17:49:59 2012
@@ -789,6 +789,15 @@
       -->
     </requestHandler>
 
+  <!-- A request handler that returns indented JSON by default -->
+  <requestHandler name="/query" class="solr.SearchHandler">
+     <lst name="defaults">
+       <str name="echoParams">explicit</str>
+       <str name="wt">json</str>
+       <str name="indent">true</str>
+     </lst>
+  </requestHandler>
+
 
   <!-- realtime get handler, guaranteed to return the latest stored fields of
        any document, without the need to commit or open a new searcher.  The