Questions Tagged With indexhttps://answers.axonivy.com/tags/index/?type=rssquestions tagged <span class="tag">index</span>enThu, 21 Nov 2019 10:28:38 -0500Elastic Search index recreation fails inconsistentlyhttps://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistently<p>When re-starting the Ivy Engine (7.0.11), we found out, that elastic search index recreation fails everytime but with different objects.</p> <p>We then tried to call <code>DiCore.getGlobalInjector().getInstance(IBusinessDataManager.class).startIndexRecreation()</code> directly multiple times and almost every time a different object is reported as having problems, eg:</p> <pre><code>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]"} </code></pre> <p>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?</p> <p>TIA</p>petersThu, 21 Nov 2019 10:28:38 -0500https://answers.axonivy.com/questions/4179/elastic-search-index-recreation-fails-inconsistentlyindexbusiness-dataelasticsearchIndex elasticsearch for specific typehttps://answers.axonivy.com/questions/3590/index-elasticsearch-for-specific-type<p>Hi ivyteam</p> <p>As i know when Ivy start, it will reindex everything from it's DB to ES index. </p> <p>Now i only want to index a specific type of class with:</p> <pre><code>List&lt;String&gt; reindexTypes = ... DiCore.getGlobalInjector().getInstance(IBusinessDataManager.class).startIndexRecreation(reindexTypes ); </code></pre> <p>Is it a correct way to go?</p> <p>Thanks</p>trungdvTue, 18 Dec 2018 05:45:32 -0500https://answers.axonivy.com/questions/3590/index-elasticsearch-for-specific-typeindexelasticsearch