[phrases] trie_search now only takes the original string and the token array. Fixed a bug where certain phrases were being found in string search but not in tokenized search

This commit is contained in:
Al
2015-04-19 09:32:20 -04:00
parent 606a669c01
commit 908e3dc03c
2 changed files with 40 additions and 26 deletions

View File

@@ -24,7 +24,7 @@ typedef struct phrase {
VECTOR_INIT(phrase_array, phrase_t)
phrase_array *trie_search(trie_t *self, char *text);
phrase_array *trie_search_tokens(trie_t *self, tokenized_string_t *response);
phrase_array *trie_search_tokens(trie_t *self, char *str, token_array *tokens);
phrase_t trie_search_suffixes(trie_t *self, char *word);
phrase_t trie_search_prefixes(trie_t *self, char *word);