public IEnumerable <ApiModel> Search(string query) { // TODO: Ideally, we'd limit the search results from inside, rather than ToArray()-ing and then limiting. // TODO: We should include positions. return(_suffixTree.Lookup(query) .ToArray() .Select(t => _catalog.GetApiById(t.Value)) .Distinct() .Take(200)); }