lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Steigerwald <>
Subject JSONRequestWriter
Date Wed, 05 Mar 2008 14:29:10 GMT
We're using localsolr and the RubyResponseWriter.  When we do a request with the localsolr
in our requestHandler we're seeing issues with the display of a multivalued field when it
only has 
one value.

'class'=>['showtime']'showtime',      <------

With no localsolr component it works fine.

Looks like the issue is with the JSONRequestWriter.writeSolrDocument().  Here's the small
patch for 
it that seems to fix it.

Index: src/java/org/apache/solr/request/
--- src/java/org/apache/solr/request/    (revision 614955)
+++ src/java/org/apache/solr/request/    (working copy)
@@ -416,7 +416,7 @@
            writeVal(fname, val);
-        writeVal(fname, val);
+        else writeVal(fname, val);

        if (pseudoFields !=null && pseudoFields.size()>0) {

We're running solr trunk r614955 (Jan 23rd), and r75 of localsolr.

Result snippet with the patch:


Has anyone come across an issue like this?  Is this fixed in a newer build of Solr?   It looks
we'd still need this patch even in a build of the solr trunk from yesterday, but maybe not.

Doug Steigerwald
Software Developer
McClatchy Interactive

View raw message