<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Limit 1000 fields while persisting with elasticsearch</title><link>https://answers.axonivy.com/questions/3194/limit-1000-fields-while-persisting-with-elasticsearch</link><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Recently we got into some problem while trying to save an object with more than 1000 fields. I saw that it was reported to ivy.team and the bug is in progress. &lt;/p&gt;
&lt;p&gt;But may I ask if there is any work around for the moment? or will not take another migration?&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Caused by: ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.ElasticsearchException: Elasticsearch update index of document failed because of: {"root_cause":[{"type":"illegal_argument_exception","reason":"Limit of total fields [1000] in index [ivy.businessdata-ch.axonivy.finform.deskpost.individualdossier] has been exceeded"}],"type":"illegal_argument_exception","reason":"Limit of total fields [1000] in index [ivy.businessdata-ch.axonivy.finform.deskpost.individualdossier] has been exceeded"}&lt;/code&gt;&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3194/limit-1000-fields-while-persisting-with-elasticsearch" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 17 Apr 2018 03:05:00 -0400</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/3194/limit-1000-fields-while-persisting-with-elasticsearch/3195</link><description>&lt;p&gt;Hi &lt;a href="https://answers.axonivy.com/users/559/toanlc"&gt;&lt;a href="https://answers.axonivy.com/users/559/toanlc"&gt;@ToanLC&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can manually create an index template which allows over 1000 fields. When elasticsearch creates the index, it takes all matching index templates and creates the index.&lt;/p&gt;
&lt;p&gt;Afterwards you must recreate the index over the api. Here an index template example.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; "fix_totat_fields" : {
    "order" : 0,
    "version" : 1,
    "template" : "ivy.businessdata*",
    "settings" : {
      "index" : {
        "mapping" : {
          "total_fields" : {
            "limit" : "10000"
          }
        }
      }
    },
    "mappings" : { },
    "aliases" : { } 
}
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Tue, 17 Apr 2018 03:05:00 -0400</pubDate><guid>https://answers.axonivy.com/questions/3194/limit-1000-fields-while-persisting-with-elasticsearch/3195</guid></item></channel></rss>