Log in
Model

Builder

Magento\Elasticsearch\Model\Adapter\Document\Builder

What it does

This class builds Elasticsearch document structures by collecting field-value pairs and formatting them into a properly structured array.

Developers use this builder when indexing product or catalog data into Elasticsearch, allowing them to progressively add fields before generating the final document structure with the build() method.

Public Methods

  • build()
  • addField()
  • addFields()