Log in
Model

AddDefaultSearchField

Magento\Elasticsearch\Model\Adapter\FieldMapper\AddDefaultSearchField

What it does

This class adds a default '_search' catch-all field to Elasticsearch field mappings.

It preprocesses field mappings by injecting a text-type field that emulates Elasticsearch's deprecated _all field, allowing developers to search across multiple fields simultaneously without specifying individual field names.

Public Methods

  • process()