SOLR-3259: default json update handler to json response format

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1309210 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-04-04 01:57:28 +00:00
parent e5448e2e20
commit 84dbc7930a
2 changed files with 8 additions and 3 deletions

View File

@ -92,6 +92,7 @@ class JSONWriter extends TextResponseWriter {
if(wrapperFunction!=null) {
writer.write(')');
}
if (doIndent) writer.write('\n'); // ending with a newline looks much better from the command line
}
protected void writeKey(String fname, boolean needsEscaping) throws IOException {

View File

@ -933,9 +933,13 @@
<!-- JSON Update Request Handler
http://wiki.apache.org/solr/UpdateJSON
-->
<requestHandler name="/update/json"
class="solr.JsonUpdateRequestHandler"
startup="lazy" />
<requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler" startup="lazy">
<lst name="defaults">
<str name="wt">json</str>
<str name="indent">true</str>
</lst>
</requestHandler>
<!-- Solr Cell Update Request Handler