eZ\Publish\Core\Search\Legacy\Content\WordIndexer\Repository\SearchIndex::updateWordObjectCount PHP Method

updateWordObjectCount() private method

Update object count for words (legacy db table: ezsearch_word).
private updateWordObjectCount ( array $wordId, array $columns )
$wordId array list of word IDs
$columns array map of columns and values to be updated ([column => value])
    private function updateWordObjectCount(array $wordId, array $columns)
    {
        $query = $this->dbHandler->createUpdateQuery();
        $query->update($this->dbHandler->quoteTable('ezsearch_word'));
        foreach ($columns as $column => $value) {
            $query->set($this->dbHandler->quoteColumn($column), $value);
        }
        $query->where($query->expr->in($this->dbHandler->quoteColumn('id'), $wordId));
        $stmt = $query->prepare();
        $stmt->execute();
    }