private function prepareProductCollection()
{
$terms = $this->getQueryText();
$this->productCollection->addSearchFilter($terms);
$this->productCollection->setPageSize($this->getResultsPageSize());
$this->productCollection->addAttributeToSelect('name')->addAttributeToSelect('thumbnail')->addPriceData();
if (!$this->configurationHelper->isShowOutOfStock()) {
$this->productCollection->addIsInStockFilter();
}
return $this;
}