Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1488

Elasticsearch Connector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • ManifoldCF 2.9
    • ManifoldCF 2.10
    • None
    • elasticsearch 6.0.1

    Description

      Getting error when trying to index documents into elasticsearch

       

      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");

       

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            wardr Richard Wardrobe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: