<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Elastic Search index recreation fails inconsistently</title><link>https://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistently</link><description>&lt;p&gt;When re-starting the Ivy Engine (7.0.11), we found out, that elastic search index recreation fails everytime but with different objects.&lt;/p&gt;
&lt;p&gt;We then tried to call &lt;code&gt;DiCore.getGlobalInjector().getInstance(IBusinessDataManager.class).startIndexRecreation()&lt;/code&gt; directly multiple times and almost every time a different object is reported as having problems, eg:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;first call:
bulk error: id=13a8e230cc9b47338d45e552678c1b10, index=ivy.businessdata-xxx.order, error={"type":"illegal_argument_exception","reason":"mapper [yyy.zzz] cannot be changed from type [float] to [long]"}

next call:
bulk error: id=0587301dfde5411a9caae3413ed25e7f, index=ivy.businessdata-xxx.order, error={"type":"illegal_argument_exception","reason":"mapper [yyy.zzz] cannot be changed from type [long] to [float]"}

next call:
bulk error: id=0271c00a7c5543c998bc81e5215e7949, index=ivy.businessdata-xxx.order, error={"type":"illegal_argument_exception","reason":"mapper [yyy.zzz] cannot be changed from type [long] to [float]"}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please also note, that all three examples reference the same field of the same object type. How is this possible and how can we repair our index?&lt;/p&gt;
&lt;p&gt;TIA&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistently" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 22 Nov 2019 03:21:12 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistently/4182</link><description>&lt;p&gt;I assume that the field is a BigDecimal. There has been an issue with them if the first value, which was stored has been a non float number, such as BigDecimal(1). See &lt;a href="https://jira.axonivy.com/jira/browse/XIVY-3463"&gt;https://jira.axonivy.com/jira/browse/XIVY-3463&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The bug was addressed with 8.0 LTS and on the issue-report there is also a patch file for 7.0 LTS.
So I'd advise you to migrate to the latest 7.0.14, apply the pre-liminary patch for bigDecimals and you should be fine.
Please get in contact with our support to get the patch and advise how to apply it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 22 Nov 2019 03:21:12 -0500</pubDate><guid>https://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistently/4182</guid></item></channel></rss>