Issue
- When user checks out, in the shipping address drop-down some addresses cannot be found
Environment
- DXP 7.3 SP1
Resolution
- You probably have a lot of addresses (more than 10 000) belonging to that account
-
The issue is due to some limits applied for the Elasticsearch server, which tell that this server can return a maximum of 10 000 results. The addresses in the drop-down (at the checkout) are retrieved from Elasticsearch, and if there are more than 10 000 addresses for the current account, not all of them will be retrieved and listed in the drop-down.
- Therefore we suggest to either:
- modify the business use case so that you create maximum 10 000 addresses for an account, or
- increase this limit to a size larger than the number of addresses in order to ensure all are returned (e.g. 20 000). This you can do by setting
index.search.limit=20000
in portal-ext and also setting Elasticsearch parameter index.max_result_window
to 20 000 as per this article.
The side effect of this could be delays in the search, as more data is being transferred.
(in 7.4 this part has been extensively refactored and seems to works better, these limits don't need to be raised)