StandardSearchIndexer
class StandardSearchIndexer implements SearchIndexerInterface (View source)
Properties
| protected Connection | $connection | ||
| protected Comparator | $comparator | 
Methods
No description
Create or update the column that contains the indexed data of a specific attribute.
Store in the index table the value of an attribute of an item.
Remove from the index table the value of an attribute of an item.
Get the name of the column associated to an attribute key.
Set the 'length' key of an array containing the column options.
No description
Details
        
                            
    __construct(Connection $connection, Comparator $comparator)
        
    
    Initialize the instance.
        
                            
    refreshSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key)
        deprecated
    
    deprecated
No description
        
                            
    updateSearchIndexKeyColumns(CategoryInterface $category, AttributeKeyInterface $key, string|null $previousHandle = null)
        
    
    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.
        
                    protected        string
    getIndexEntryColumnName(string $attributeKeyHandle, string $subKey = '')
        
    
    Get the name of the column associated to an attribute key.
        
                    protected        string
    getIndexEntryColumn(Key $key, string|false $subKey = false)
        deprecated
    
    deprecated
No description
        
                        private    array
    setTypeLength(array $options)
        
    
    Set the 'length' key of an array containing the column 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.
        
                        private    
    processColumn(Table $toTable, string $columnName, string $typeName, array $options)
        
    
    No description