Slice categories from typeahead when searching