Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 846 Bytes

2022-05-06-elasticsearch-custom-field-mapping-using-config.md

File metadata and controls

25 lines (18 loc) · 846 Bytes
title issue
Elasticsearch custom field mapping using config
NEXT-21234

Core

  • Added new config elasticsearch.product.custom_fields_mapping to configure the mapping type of custom fields

Upgrade Information

Only configured custom fields will be indexed in Elasticsearch

With Shopware 6.5 only configured customFields in the YAML file will be indexed, to reduce issues with type errors. The config can be created in the config/packages/elasticsearch.yml with the following config

elasticsearch:
  product:
    custom_fields_mapping:
      some_date_field: datetime

See \Shopware\Core\System\CustomField\CustomFieldTypes for the complete list of possible options