Richard Wardrobe created CONNECTORS-1488:
--------------------------------------------
Summary: 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
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)