Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6724 closed enhancement (fixed)

ElasticSearch 5.0 not compatible of current OGR ES driver

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone: 2.2.0
Component: OGR_SF Version: 2.1.2
Severity: normal Keywords:
Cc:

Description

A number of REST API changes:

Quick fix/workaround

Index: ogr/ogrsf_frmts/elastic/ogrelasticdatasource.cpp
===================================================================
--- ogr/ogrsf_frmts/elastic/ogrelasticdatasource.cpp	(révision 36400)
+++ ogr/ogrsf_frmts/elastic/ogrelasticdatasource.cpp	(copie de travail)
@@ -495,6 +495,7 @@
     bool bRet = true;
     char** papszOptions = NULL;
     papszOptions = CSLAddNameValue(papszOptions, "POSTFIELDS", data.c_str());
+    papszOptions = CSLAddNameValue(papszOptions, "CUSTOMREQUEST", "PUT");
     papszOptions = CSLAddNameValue(papszOptions, "HEADERS",
             "Content-Type: application/x-javascript; charset=UTF-8");
  • unidentified changes in scrolling API that cause (on ne_10m_admin_0_countries imported) :

ERROR 1: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request _search/scroll contains unrecognized parameter: [size]"}],"type":"illegal_argument_exception","reason":"request _search/scroll contains unrecognized parameter: [size]"},"status":400}

Change History (2)

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 36733:

ElasticSearch: add ES 5.0 support, improve ES 2.X support and enforce read-only mode for layer operations (fixes #6724)

comment:2 by Even Rouault, 7 years ago

Milestone: 2.2.0
Type: defectenhancement
Note: See TracTickets for help on using tickets.