You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/03/15 07:41:00 UTC

[jira] [Resolved] (KARAF-6539) Use non typed index in elasticsearch appender

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

Jean-Baptiste Onofré resolved KARAF-6539.
-----------------------------------------
    Resolution: Fixed

It's configurable via the {{cfg}} file: {{index.type}} is now {{null}} by default (for Elasticsearch 7+) but the user can set {{index.type}} for previous Elasticsearch version (2, 4, 5, 6).

> Use non typed index in elasticsearch appender
> ---------------------------------------------
>
>                 Key: KARAF-6539
>                 URL: https://issues.apache.org/jira/browse/KARAF-6539
>             Project: Karaf
>          Issue Type: Improvement
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: decanter-2.3.0
>
>
> Elasticsearch 7.5.0 has deprecated typed index. When using the elasticsearch appender, we have warning like:
> {code:java}
> 06:11:41.853 WARN [I/O dispatcher 1] request [POST http://localhost:9200/karaf-2019.12.07/decanter?refresh=true] returned 1 warnings: [299 Elasticsearch-7.5.0-e9ccaed468e2fac2275a3761849cbee64b39519f "[types removal] Specifying types in document index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, or /{index}/_create/{id})."] {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)