public function __construct(ItemFactory $itemFactory, QueryFactory $queryFactory, TermDataProvider $termDataProvider, CategoryCollectionFactory $categoryCollectionFactory, ConfigurationHelper $configurationHelper, $type = self::AUTOCOMPLETE_TYPE)
{
$this->itemFactory = $itemFactory;
$this->queryFactory = $queryFactory;
$this->termDataProvider = $termDataProvider;
$this->categoryCollectionFactory = $categoryCollectionFactory;
$this->configurationHelper = $configurationHelper;
$this->type = $type;
}