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: 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."}],... How can the index.max_result_window setting be changed. Or - alternatively, how do I access the scroll API? Designer 7.2.1 TIA Peter asked 25.02.2019 at 11:17 peters |
This is a limitation of the
There are two possibilities:
The best solution would be that we provide the scroll api for elasticsearch. We'll see how we can make that available. answered 27.02.2019 at 08:53 Alex Suter ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 25.02.2019 at 11:17
Seen: 9,915 times
Last updated: 27.02.2019 at 08:53
Hello @peters
I think you wold like to migrate business data? Do you migrate directly the data in elasticsearch? This won't work, because this data is just an index. You have to migrate the data in the system database.
Hello @Alex Suter
We migrate ~40.000 objects from a SQL database into the BusinessDataRepository. But we wanted to provide the possibility to delete the migrated objects (for example to re-migrate them). We are therefore loading the objects again and delete them one-by-one. This was the situation where we got this problem. (Of course we can do this differently if there is no way to change the limit or to access the scroll API.)
Which api do you exactly use? Are you doing the migration as recommended? See class BusinessDataJsonFormatMigrator in https://developer.axonivy.com/doc/latest/PublicAPI