diff options
| author | Peng Wu <alexepico@gmail.com> | 2022-09-20 17:24:23 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2022-09-21 15:10:34 +0800 |
| commit | 698c01539cc8636dd79bd12a49e2d9a960209f98 (patch) | |
| tree | 6b469c2eddee8f4802ce8ea0546e63c9fc4830fb /src/storage | |
| parent | baedddb15b41d7d6dbe1030195c0b343159a3b6c (diff) | |
| download | libpinyin-698c01539cc8636dd79bd12a49e2d9a960209f98.tar.gz libpinyin-698c01539cc8636dd79bd12a49e2d9a960209f98.tar.xz libpinyin-698c01539cc8636dd79bd12a49e2d9a960209f98.zip | |
Support longer candidate
Diffstat (limited to 'src/storage')
| -rw-r--r-- | src/storage/chewing_large_table2_kyotodb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/chewing_large_table2_kyotodb.cpp b/src/storage/chewing_large_table2_kyotodb.cpp index b05f100..d5aeeb9 100644 --- a/src/storage/chewing_large_table2_kyotodb.cpp +++ b/src/storage/chewing_large_table2_kyotodb.cpp @@ -228,7 +228,7 @@ int ChewingLargeTable2::search_suggestion_internal entry->m_chunk.set_chunk(chunk.begin(), chunk.size(), NULL); - result = entry->search(prefix_keys, tokens) | result; + result = entry->search_suggestion(prefix_len, prefix_keys, tokens) | result; entry->m_chunk.set_size(0); |
