manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1445028 - /manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
Date Tue, 12 Feb 2013 03:32:57 GMT
Author: kwright
Date: Tue Feb 12 03:32:57 2013
New Revision: 1445028

URL: http://svn.apache.org/r1445028
Log:
Fix missing commas between fields

Modified:
    manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java

Modified: manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java?rev=1445028&r1=1445027&r2=1445028&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
(original)
+++ manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
Tue Feb 12 03:32:57 2013
@@ -112,10 +112,10 @@ public class ElasticSearchIndex extends 
           pw.print("\"type\" : \"attachment\",");
           String contentType = document.getMimeType();
           if (contentType != null)
-            pw.print("\"_content_type\" : "+jsonStringEscape(contentType));
+            pw.print("\"_content_type\" : "+jsonStringEscape(contentType)+",");
           String fileName = document.getFileName();
           if (fileName != null)
-            pw.print("\"_name\" : "+jsonStringEscape(fileName));
+            pw.print("\"_name\" : "+jsonStringEscape(fileName)+",");
           pw.print("\"file\" : \"");
           Base64 base64 = new Base64();
           base64.encodeStream(inputStream, pw);



Mime
View raw message