public function getSearchableProducts($storeId, $productIds = null)
{
$select = $this->getConnection()->select()->from(['e' => $this->getTable('catalog_product_entity')]);
$this->addIsVisibleInStoreFilter($select, $storeId);
if ($productIds !== null) {
$select->where('e.entity_id IN (?)', $productIds);
}
return $this->connection->fetchAll($select);
}