Log in
Interface

BuilderInterface

Magento\Elasticsearch\Model\Adapter\Index\BuilderInterface

What it does

This interface defines the contract for building Elasticsearch index configurations in Magento 2.

Developers implement this interface to create custom index builders that generate the necessary schema and settings for Elasticsearch indices, with the ability to customize behavior based on store context.

It's used during index creation and reindexing operations to properly structure product, category, and other searchable data.

Public Methods

  • build()
  • setStoreId()