We have loaded product collection based on category ID, we are further trying to filter the product collection result with query string.
We have tried :
get is working fine with below code.
$query = $this->_queryFactory->create(); $query->setQueryText('Joust'); $query->getQueryText();
Add search filter is not working to my product collection.
use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection; $collection->addSearchFilter($query->getQueryText());
Can any one help me on this query.