mirror of https://github.com/apache/lucene.git
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:
parent
e5448e2e20
commit
84dbc7930a
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue