103 this->
add_impl(str, (
void *)user_data, weight);
Span< T > as_span() const
LinearAllocator allocator_
const RecentCache * recent_cache_
void add_impl(StringRef str, void *user_data, float weight)
Vector< SearchItem > items_
MainWordsHeuristic main_words_heuristic_
Vector< void * > query_impl(StringRef query) const
StringSearch(const RecentCache *recent_cache, const MainWordsHeuristic main_words_heuristic)
void add(const StringRef str, T *user_data, const int weight=0)
Vector< T * > query(const StringRef query) const
local_group_size(16, 16) .push_constant(Type b
int get_fuzzy_match_errors(StringRef query, StringRef full)
int damerau_levenshtein_distance(StringRef a, StringRef b)
void extract_normalized_words(StringRef str, LinearAllocator<> &allocator, Vector< StringRef, 64 > &r_words, Vector< int, 64 > &r_word_group_ids)
Map< std::string, int > logical_time_by_str
Span< StringRef > normalized_words
Span< int > word_group_ids