manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1080) Remove deprecated "content" field from elasticsearch connector
Date Thu, 23 Oct 2014 19:06:33 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181784#comment-14181784
] 

Karl Wright commented on CONNECTORS-1080:
-----------------------------------------

r1633923 (trunk)
r1633924 (dev_1x branch)

> Remove deprecated "content" field from elasticsearch connector
> --------------------------------------------------------------
>
>                 Key: CONNECTORS-1080
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1080
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Elastic Search connector
>            Reporter: Jens Jahnke
>            Assignee: Karl Wright
>            Priority: Minor
>              Labels: deprecated, elasticsearch
>             Fix For: ManifoldCF 1.8, ManifoldCF 2.0
>
>
> [PATCH] Make use of {{_content}} instead of {{content}}.
> The usage of {{content}} is deprecated since 1.0 and elasticsearch is
> currently running at version 1.3.x therefore it should be safe to move
> to the usage of {{_content}}.
> {code}
> diff --git a/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
b/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
> index 5b9021b..e9d4bd0 100644
> --- a/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
> +++ b/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchIndex.java
> @@ -144,7 +144,7 @@ public class ElasticSearchIndex extends ElasticSearchConnection
>            String fileName = document.getFileName();
>            if (fileName != null)
>              pw.print("\"_name\" : "+jsonStringEscape(fileName)+",");
> -          pw.print(" \"content\" : \"");
> +          pw.print(" \"_content\" : \"");
>            Base64 base64 = new Base64();
>            base64.encodeStream(inputStream, pw);
>            pw.print("\"}");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message