/** * Search tag for auto completion * * @param string $string unfinished word string * @param string|null $instanceId instance id * @param int $take take item count * @return TagEntity[] */ public function autoCompletion($string, $instanceId = null, $take = 15) { return $this->repo->fetchSimilar($this->decomposer->execute($string), $instanceId, $take); }