incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r954843 - /incubator/lcf/trunk/modules/connectors/solr/connector/org/apache/lcf/agents/output/solr/HttpPoster.java
Date Tue, 15 Jun 2010 11:53:35 GMT
Author: kwright
Date: Tue Jun 15 11:53:34 2010
New Revision: 954843

URL: http://svn.apache.org/viewvc?rev=954843&view=rev
Log:
Prepend 'literal.' to all metadata field names, so that SOLR will pick them up.

Modified:
    incubator/lcf/trunk/modules/connectors/solr/connector/org/apache/lcf/agents/output/solr/HttpPoster.java

Modified: incubator/lcf/trunk/modules/connectors/solr/connector/org/apache/lcf/agents/output/solr/HttpPoster.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/solr/connector/org/apache/lcf/agents/output/solr/HttpPoster.java?rev=954843&r1=954842&r2=954843&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/solr/connector/org/apache/lcf/agents/output/solr/HttpPoster.java
(original)
+++ incubator/lcf/trunk/modules/connectors/solr/connector/org/apache/lcf/agents/output/solr/HttpPoster.java
Tue Jun 15 11:53:34 2010
@@ -971,7 +971,7 @@ public class HttpPoster
                   while (k < values.length)
                   {
                     String value = (String)values[k++];
-                    totalLength += lengthField(fieldName,value);
+                    totalLength += lengthField(LITERAL+fieldName,value);
                   }
                 }
                 // Count the binary data
@@ -1027,7 +1027,7 @@ public class HttpPoster
                   while (k < values.length)
                   {
                     String value = (String)values[k++];
-                    writeField(out,fieldName,value);
+                    writeField(out,LITERAL+fieldName,value);
                   }
                 }
 



Mime
View raw message