interface SearchIndexerInterface (View source)

Interface that all the classes that handle the search index of attribute keys must implement.

Methods

updateSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key, string|null $previousHandle)

Create or update the column that contains the indexed data of a specific attribute.

indexEntry(CategoryInterface $category, AttributeValueInterface $value, object $subject)

Store in the index table the value of an attribute of an item.

clearIndexEntry(CategoryInterface $category, AttributeValueInterface $value, object $subject)

Remove from the index table the value of an attribute of an item.

Details

updateSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key, string|null $previousHandle)

Create or update the column that contains the indexed data of a specific attribute.

Parameters

CategoryInterface $category
AttributeKeyInterface $key
string|null $previousHandle

indexEntry(CategoryInterface $category, AttributeValueInterface $value, object $subject)

Store in the index table the value of an attribute of an item.

Parameters

CategoryInterface $category
AttributeValueInterface $value
object $subject

The item owning the attribute value

clearIndexEntry(CategoryInterface $category, AttributeValueInterface $value, object $subject)

Remove from the index table the value of an attribute of an item.

Parameters

CategoryInterface $category
AttributeValueInterface $value
object $subject

The item owning the attribute value