fix(search): load all prefix matches in one ranked pass
Rows were read via peek(), which gives Paging no access hints, so prefix matches beyond the first page never loaded. Drop the head/tail paging: a query reads the whole prefix range of every active dictionary in one scan, merges and ranks it, and hands Paging a single page. The append error row and its strings go away; the prefix scan reuses search() with substring matches disabled. FileSource reads through a buffer, cutting per-entry syscall overhead.
This commit is contained in:
1 parent
4fc765382e
commit
a4197d2970
5 files changed
+93
-266
No files matched your search
@@ -62,7 +62,6 @@
|
||||
<string name="error_scan_directory_failed">Не удалось просканировать папку со словарями</string>
|
||||
<string name="error_search_failed">Ошибка поиска запроса \'%1$s\' в %2$s</string>
|
||||
<string name="error_failed_load_index_metadata">Не удалось загрузить метаданные индекса: %1$s</string>
|
||||
<string name="error_loading_more">Ошибка загрузки</string>
|
||||
<plurals name="active_dictionaries_count">
|
||||
<item quantity="one">%1$d активный словарь</item>
|
||||
<item quantity="few">%1$d активных словаря</item>
|
||||
|
||||
Reference in new issue
Block a user