lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r633860 - /lucene/solr/trunk/src/java/org/apache/solr/request/JSONResponseWriter.java
Date Wed, 05 Mar 2008 14:34:42 GMT
Author: yonik
Date: Wed Mar  5 06:34:39 2008
New Revision: 633860

URL: http://svn.apache.org/viewvc?rev=633860&view=rev
Log:
fix JSONWriter writing of SolrDocument

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/request/JSONResponseWriter.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/request/JSONResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/request/JSONResponseWriter.java?rev=633860&r1=633859&r2=633860&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/request/JSONResponseWriter.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/request/JSONResponseWriter.java Wed Mar  5
06:34:39 2008
@@ -415,8 +415,9 @@
           writeArrayOpener(-1); // no trivial way to determine array size
           writeVal(fname, val);
           writeArrayCloser();
+        } else {
+          writeVal(fname, val);
         }
-        writeVal(fname, val);
       }
 
       if (pseudoFields !=null && pseudoFields.size()>0) {



Mime
View raw message