Questions Tagged With elasticsearchhttps://answers.axonivy.com/tags/elasticsearch/?type=rss&user=petersquestions tagged <span class="tag">elasticsearch</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-dataelasticsearchHow do I change Elastic Search setting index.max_result_window?https://answers.axonivy.com/questions/3696/how-do-i-change-elastic-search-setting-index-max_result_window<p>For a migration, I need to work with a large set of Elastic Search objects. Setting the limit to 100000, I get the following error:</p> <p>ElasticsearchException: Elasticsearch search documents failed because of: {"root_cause":[{"type":"query_phase_execution_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [100000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}],...</p> <p>How can the <strong>index.max_result_window</strong> setting be changed. Or - alternatively, how do I access the scroll API?</p> <p>Designer 7.2.1</p> <p>TIA Peter</p>petersMon, 25 Feb 2019 11:17:31 -0500https://answers.axonivy.com/questions/3696/how-do-i-change-elastic-search-setting-index-max_result_windowelasticsearch