Log in
Model

CopySearchableFieldsToSearchField

Magento\Elasticsearch\Model\Adapter\FieldMapper\CopySearchableFieldsToSearchField

What it does

This class preprocesses Elasticsearch field mappings by adding a 'copy_to' parameter that copies searchable text and keyword fields to a unified '_search' field.

Developers use this to emulate Elasticsearch's deprecated '_all' field functionality, enabling search across multiple fields without specifying individual field names.

It automatically identifies searchable fields and configures them to populate the catch-all search field.

Public Methods

  • process()