class StandardSearchIndexer implements SearchIndexerInterface (View source)

Properties

protected $connection
protected $comparator

Methods

__construct(Connection $connection, Comparator $comparator)

No description

getIndexEntryColumn(Key $key, $subKey = false)

No description

array
setTypeLength(array $options)

For certain fields (eg TEXT) Doctrine uses the length of the longest column to determine what field type to use.

refreshSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key)

Refresh the Search Index columns (if there are schema changes for example).

updateSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key, $previousHandle = null)

No description

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

No description

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

No description

Details

__construct(Connection $connection, Comparator $comparator)

Parameters

Connection $connection
Comparator $comparator

protected getIndexEntryColumn(Key $key, $subKey = false)

Parameters

Key $key
$subKey

private array setTypeLength(array $options)

For certain fields (eg TEXT) Doctrine uses the length of the longest column to determine what field type to use.

For search indexing even if we may not currently have something long in a column, we need the longest possible column so that we don't truncate any data.

Parameters

array $options

Return Value

array

refreshSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key)

Refresh the Search Index columns (if there are schema changes for example).

Parameters

CategoryInterface $category
AttributeKeyInterface $key

updateSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key, $previousHandle = null)

Parameters

CategoryInterface $category
AttributeKeyInterface $key
$previousHandle

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

Parameters

CategoryInterface $category
AttributeValueInterface $value
$subject

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

Parameters

CategoryInterface $category
AttributeValueInterface $value
$subject