title | issue |
---|---|
Elasticsearch custom field mapping using config |
NEXT-21234 |
- Added new config
elasticsearch.product.custom_fields_mapping
to configure the mapping type of custom fields
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