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] [Assigned] (CONNECTORS-1488) Elasticsearch Connector
Date Wed, 17 Jan 2018 05:47:00 GMT

     [ https://issues.apache.org/jira/browse/CONNECTORS-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl Wright reassigned CONNECTORS-1488:
---------------------------------------

    Assignee: Karl Wright

> Elasticsearch Connector
> -----------------------
>
>                 Key: CONNECTORS-1488
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1488
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Elastic Search connector
>    Affects Versions: ManifoldCF 2.9
>         Environment: elasticsearch 6.0.1
>            Reporter: Richard Wardrobe
>            Assignee: Karl Wright
>            Priority: Minor
>
> Getting error when trying to index documents into elasticsearch
>  
> h1. Content-Type header [application/x-www-form-urlencoded] is not supported
>  
> Elasticsearch requires strict content type for rest requests
>  
> https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests
>  
> this was fixed by changing the 
> apache-manifoldcf-2.9/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch
file
> ElasticSearchIndex.java:      return new BasicHeader("Content-type","application/x-www-form-urlencoded");
>  
> to
>  
> ElasticSearchIndex.java: return new BasicHeader("Content-type","application/json");
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message