Commit Graph

253 Commits

Author SHA1 Message Date
iaom 495669c057 增加索引数据库版本号机制,版本号升级时将重建数据库 2022-12-02 07:23:22 +00:00
iaom 83f1b904ad 解决文件内容搜索详情页获取数据时偶现的崩溃问题 2022-11-30 16:19:18 +08:00
iaom 134d2039ec 增加文件内容模糊搜索功能,优化全局设置代码 2022-11-29 14:05:16 +08:00
iaom 3d8cebba41 优化文件索引操作 2022-11-25 17:32:15 +08:00
iaom 51eb1798e2 修复内容搜索详情页加载图片失败导致的崩溃问题。 2022-11-17 11:38:01 +08:00
jixiaoxu 2b01ee0e80 修复QSqlDatabasePrivate::removeDatabase警告;修复部分内存泄露;修复QDir的entryInfoList方法在查找不存在目录时小概率崩溃的问题; 2022-10-19 17:11:05 +08:00
jixiaoxu 4d498eee0b 修复inotify-watch内存泄漏;修复部分Fortify检测代码问题; 2022-10-13 17:37:59 +08:00
iaom ad3d677aa8 Add file system watcher(Encapsulate inotify). 2022-07-29 11:22:53 +08:00
iaom 46c7ab437c 增加索引删除功能。 2022-06-02 09:23:53 +08:00
iaom 1a440bf78f 调整索引建立和增加的逻辑,可以实现单独重建某个数据库。 2022-05-27 16:09:46 +08:00
hewenfei 4294019e28 新增解析uop格式文档,增加uof ppt文档解析粒度 2022-05-27 16:09:20 +08:00
iaom a71a14ffbf 新增uof,uot,uos,ofd格式文件内容解析(不支持演示文稿). 2022-05-27 16:07:09 +08:00
iaom cacf2b8fc8 修复了添加新的索引目录后可能会导致已经索引的内容搜不到的bug。 2022-05-27 14:34:04 +08:00
jixiaoxu ea46fc8199 新增html文件文本内容解析及搜索功能; 2022-05-27 14:33:17 +08:00
baijunjie 91bcdd6c18 Add the ukui-search-dir-manager process which is instead of dir-watcher to solve the qSettings conflict in the case of multiple processes. 2022-05-27 14:32:01 +08:00
iaom 6e7ca5e35c 文件索引改为白名单形式. 2022-05-27 14:25:04 +08:00
iaom 407251b865 Modified file index switch gsettings. 2022-05-27 14:22:28 +08:00
纪笑旭 772458b8da Merge branch '0516ukss' into 'ukss-dev'
Encapsulate the basic interface of cppjieba.

See merge request kylin-desktop/ukui-search!313
2022-05-27 02:26:41 +00:00
iaom 6009d862ca 解决翻译问题。 2022-05-25 11:18:04 +08:00
baijunjie 7daa82e66f Encapsulate the basic interface of cppjieba and hanzi to pinyin.
Use the perfect forword to optimize the 'isMultiTone' interface.
2022-05-19 14:32:31 +08:00
iaom ffd72cbaba 索引搜索的权重相同的结果项按照修改时间新->旧排列。 2022-04-19 09:16:20 +08:00
jixiaoxu 42f7043f6b 文本内容搜索扩展OCR功能; 2022-04-13 13:46:30 +08:00
iaom 8661d1393b 修改了一处命名。 2022-04-11 17:46:13 +08:00
iaom 1135c48abf 修复索引关闭时取消监听不完全的问题。 2022-04-09 17:32:25 +08:00
PengfeiZhang 539dd6529b Merge branch '0328ukss' into 'ukss-dev'
Story#8966:the '/data' directory can be searched by direct search.

See merge request kylin-desktop/ukui-search!282
2022-04-09 08:35:43 +00:00
baijunjie 5e818464c8 Story#8966:the '/data' directory can be searched by direct search. 2022-04-08 11:15:18 +08:00
iaom b7e8221922 修复了一些小错误. 2022-04-07 15:45:40 +08:00
iaom baaac7a4dc 增加文件索引状态查询功能;优化文建索引启动校验逻辑。 2022-03-17 15:40:55 +08:00
iaom 4e3a9d93c6 使用信号量控制进程顺序,规避由于首次索引时间过长导致inotify队列过长问题。 2022-03-15 13:53:38 +08:00
jixiaoxu 47af66e682 优化多音字字典存储数据结构;部分代码及注释整理; 2022-03-08 10:40:33 +08:00
baijunjie af3ea26b0a Fix the incorrectly display of the ToolTip. 2022-03-08 10:34:44 +08:00
iaom 655fe1ae9f Update search plugin interface, add stop search function. 2022-03-08 10:34:11 +08:00
jixiaoxu 2e668d374a 新增OCR功能后端;修复内存泄漏一处; 2022-03-08 10:32:11 +08:00
baijunjie 0244b8f29b Modify the form of the htmlText in order to show the correct number of spacing.Modify the code format. 2022-03-08 10:18:22 +08:00
iaom 0fea295bea Fix a potential bug in plugin interface. 2022-03-08 10:16:21 +08:00
baijunjie 67c134bc17 Change the color of the lines which are on the detail page in night mode. 2022-03-08 10:13:44 +08:00
iaom 24a94db0c6 文件索引增加配置索引目录和黑名单功能;顺便解决了一点编译问题。 2022-03-04 15:15:07 +08:00
iaom 4dae1f2d90 Update ukui-service development files and libsearch.pro. 2022-01-18 17:43:13 +08:00
iaom e6cb935fc0 Change namespace. 2021-12-14 14:43:35 +08:00
iaom 02bdc54669 Add ukui-search-service. 2021-11-22 16:03:31 +08:00
iaom ba88374273 添加数据库搜索单次数量限制。 2021-11-11 14:01:15 +08:00
iaom 4083ee024d Fix merge error. 2021-11-11 10:03:57 +08:00
iaom e95136e6bb Optimize index switch logic. 2021-11-10 14:20:10 +08:00
iaom b50d51dfc8 Integrate blacklist function into Xapian database. 2021-11-10 10:20:16 +08:00
iaom 8e3855e95a Fix:Index init failed sometimes. 2021-11-08 09:39:03 +08:00
iaom c2905bc331 Delete content index if file content is empty. 2021-11-08 09:38:19 +08:00
jixiaoxu a095150f09 Fix double word can not search; 2021-11-08 09:38:19 +08:00
iaom 25bae31cff Add processing logic for encrypted files. 2021-10-29 14:34:07 +08:00
jixiaoxu 7ecc6419a3 Add web search detail page; Change selection rules; Fix translation bug; Add web search plugin; Add some resouces; 2021-10-27 11:37:55 +08:00
iaom 26acf20077 Merge from dev-unity. 2021-10-19 11:14:35 +08:00
iaom d5ebf5a985 Fix:Term pos error when creat Xapian document. 2021-10-19 09:40:57 +08:00
jixiaoxu 95955e5d92 Fix detail page content display bug; 2021-09-23 20:49:21 +08:00
iaom ce5c804a11 Add pop up window for file search plugin. 2021-09-23 10:31:13 +08:00
iaom 9998b87f29 Fix: Black list wont't work when block home location. 2021-09-15 14:47:08 +08:00
iaom 091dac9d73 Fix: UI stuck occasionally. 2021-09-08 15:31:47 +08:00
iaom ea93efee7a Merge from dev-unity. 2021-09-07 17:53:19 +08:00
iaom d216398c82 Fix: Index error when process a whole dir. 2021-09-07 17:11:23 +08:00
iaom 96cc2b3bd0 Merge from dev-unity. 2021-08-25 18:00:53 +08:00
iaom d9ac480ae1 Fix:Wrong mutex operation in search-manager. 2021-08-24 17:14:28 +08:00
iaom 1e0f66c8ff Merge from dev-unity. 2021-08-20 16:03:51 +08:00
PengfeiZhang 87eccf6dc4 Merge branch '0818dev' into 'dev-unity'
fix the question that the keyword will be cut off in the resultPage of the file content search.

See merge request kylin-desktop/ukui-search!99
2021-08-20 06:04:45 +00:00
baijunjie a7e296ca0c fix the question that the keyword will be cut off in the resultPage of the file content search. 2021-08-20 10:10:46 +08:00
iaom 359af667fc Update pinyinWithoutTone.txt. 2021-08-19 10:45:51 +08:00
iaom e245fccd11 Optimize the application search plug-in code. 2021-08-10 17:50:50 +08:00
baijunjie@kylinos.cn cc3cd423f9 make a snippet without cut cjk char 2021-08-06 17:45:28 +08:00
iaom ea5242b921 Update UI;Update internal plugins. 2021-08-06 10:54:48 +08:00
jixiaoxu ba0e71c23d Add order of best match results;Fix best match dissplay bug; 2021-08-03 16:08:30 +08:00
iaom 7d569715ea Add internal plugin detail pages;
Modified debian files.
2021-07-31 16:12:04 +08:00
iaom 0894cd56a8 Merge from dev-unity. 2021-07-20 11:28:36 +08:00
iaom deea743dec Add preview page iface. 2021-07-08 18:53:16 +08:00
iaom 37fa621452 [Fix] Path inclusive relation judgment incorrectly. 2021-07-06 16:53:32 +08:00
iaom 7fb1dba37f Merge from dev-unity 2021-07-03 16:07:17 +08:00
iaom 272d707230 [Fix] Creat fifo error sometimes. 2021-07-01 19:37:37 +08:00
iaom 099779fdc7 Merge from dev-unity 2021-06-30 16:24:45 +08:00
iaom 2daf23f7bd Add a systembus iface for add inotify_max_user_instance, avoid inotify_init fail. 2021-06-30 10:09:25 +08:00
iaom eef1f4e10f Merge from dev-unity 2021-06-29 14:00:05 +08:00
PengfeiZhang 91c13ca43d Merge branch '0621-dev' into 'dev-unity'
[Fix] Tray icon click won't work after Win+D; Close inotify fd after closed file index service.

See merge request kylin-desktop/ukui-search!42
2021-06-26 06:47:59 +00:00
iaom d3181a36f2 Close inotify fd after closed file index service. 2021-06-25 16:30:46 +08:00
rookie-J bbf27b9d5f Optimization of IDF dictionary loading mode; Limit the maximum number of words segmentation; Other optimization; 2021-06-23 15:50:19 +08:00
iaom 5833658c82 Merge from dev-untiy. 2021-06-19 15:55:22 +08:00
iaom a88bdf25d7 Add app search plugin. 2021-06-17 14:08:55 +08:00
Zihao Zhang 8886ee098a Merge branch '0605-dev' into 'dev-unity'
Add inotify events queue for merging events.

See merge request kylin-desktop/ukui-search!31
2021-06-15 07:19:25 +00:00
iaom d4939e118d Optimized pending file queue process logic. 2021-06-11 19:58:32 +08:00
iaom b9da7ad708 Add inotify events queue for merging events. 2021-06-10 20:43:57 +08:00
rookie-J b5b3926320 Optimization of Jieba keyword extraction; Optimize memory and efficiency 2021-06-07 15:37:06 +08:00
iaom 5692fe6505 Use shared memory to synchronous the path map between inotify-index subprocess and main process. 2021-06-04 16:38:02 +08:00
iaom 900b666154 Add a new thread pool for first index instead of using global thread pool. 2021-06-02 15:17:27 +08:00
iaom c85a4a5d27 [FIX]: Offset info error in keyword extraction. 2021-05-31 14:56:59 +08:00
iaom bfb1d518f6
Merge pull request #246 from rookie-J/0506-dev
Optimize xml-file treatment; Optimize jieba escape character;
2021-05-31 14:18:12 +08:00
fensite 2154e5cae0
Update search-manager.cpp 2021-05-28 17:33:15 +08:00
rookie-J e01552618d Optimize xml-file treatment; Optimize jieba escape character; 2021-05-28 15:55:26 +08:00
Mouse Zhang 8e3fd0b1d1
Update search-manager.cpp 2021-05-28 15:49:49 +08:00
iaom a6d98d5085 Some optimization. 2021-05-28 14:22:17 +08:00
iaom 1ab8001445 Add modify time in result info. 2021-05-28 10:16:28 +08:00
iaom c643518001 Add file search internal plugins. 2021-05-27 21:10:11 +08:00
rookie-J 82a8d61cd1 Add file size judgment; Optimize the reference of Jieba function; Fix the default storage path of Jieba temporary files; 2021-05-22 09:18:35 +08:00
iaom abce24773c Fix:Index process crashed when parsing some wps templates. 2021-05-17 14:47:39 +08:00
zhangzihao 48c388d129 Remove useless dbus call. 2021-05-15 22:45:08 +08:00
iaom 5ff0d20b1f Optimized index status record mechanism. 2021-05-13 11:17:07 +08:00
rookie-J 546f80af48 Optimize the process of Qsettings.setValue(). 2021-05-12 15:01:20 +08:00