The MDVA-30284 patch solves the issue where you receive an error message that “Limit of total fields [XXXXX] in index has been exceeded” when using Elasticsearch 7. This patch is available when the Quality Patches Tool (QPT) v.1.0.5 is installed. The patch ID is MDVA-30284.
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.
The Elasticsearch fields limit is wrong resulting in the following error when executing [catalogsearch_fulltext] indexer:
Limit of total fields [xxx] in index [xxxxxx] has been exceeded
This issue occurs when you have a large number of product attributes. The issue is triggered by the way Elasticsearch calculates the field count. Sometimes when there are attributes that have fields assigned to them these fields will index as separate indexers. This results in the limit having been exceeded warning.
Steps to reproduce:
Prerequisites
Expected result:
All products are available in the Elasticsearch index.
Actual result:
Elasticsearch error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Limit
of total fields [3000] in index [magento2_product_2_v11] has been exceeded"}],"type":"illegal_argument_exception","reason":"Limit
of total fields [3000] in index [magento2_product_2_v11] has been exceeded"},"status":400}
New product was not indexed.
To apply individual patches, use the following links depending on your deployment method:
To learn more about Quality Patches Tool, refer to:
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.