Commit Graph

269 Commits

Author SHA1 Message Date
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
fensite 7598394fd6
Merge pull request #224 from rookie-J/0506-dev
Fix blockpath uneffective problem
2021-05-08 11:05:35 +08:00
fensite e6b3455966
Update search-manager.cpp 2021-05-08 11:02:13 +08:00
rookie-J b552c4f7a5 Fix blockpath uneffective problem 2021-05-08 09:26:12 +08:00
iaom 1077958980 Delete libchinese-segmentation-dev pkg. 2021-05-07 20:48:15 +08:00
iaom 2f0e34774f Add namespace 'Zeeker';
Add plugin iface;
Add libchinese-segmentation-dev package;
Update translations.
2021-04-30 16:28:50 +08:00
zhangzihao 422c73fd1e Format code style. 2021-04-26 15:06:47 +08:00
iaom 0c5a1ffcb5 Make direct search case insensitive. 2021-04-22 10:02:27 +08:00
iaom 6a8aa85c8f Avoid a deadly bug.:wq 2021-04-21 09:31:03 +08:00
zhangzihao 6969fba1fd Add change search method in ukui-search. 2021-04-20 16:24:07 +08:00
Mouse Zhang fd9a19ecae Add switch search method. 2021-04-16 16:09:50 +08:00
Mouse Zhang ffb51b9d17 Add direct search without index. 2021-04-16 15:35:54 +08:00
Mouse Zhang 154203f44b Move headers' reference from source files to header files. 2021-04-16 11:20:14 +08:00
iaom d3caad4f56 Add support for pdf in file parser. 2021-04-15 09:19:36 +08:00
Zihao Zhang 3c014ff917 Merge branch 'main' into '0330-dev'
# Conflicts:
#   libsearch/index/first-index.h
#   libsearch/index/inotify-index.h
2021-04-13 07:03:00 +00:00
iaom 5a73c03d90 Add support for xlsx pasering. 2021-04-13 14:53:55 +08:00
iaom f1485deeac Add support for 'pptx'. 2021-04-08 16:11:58 +08:00
Mouse Zhang 71e6c6896a Fix potential problems. 2021-04-08 14:23:18 +08:00
Mouse Zhang 3dc0eb4af2 Optimize code logic. 2021-04-07 22:28:49 +08:00
Mouse Zhang 9ca9f47320 Fix: symbolic link makes main blocked. 2021-04-06 16:20:29 +08:00
iaom 3233e4af5c Add support for '.xls', '.dot','.wps', '.pps', '.dps', '.et','.ppt' 2021-04-06 02:21:40 +08:00
iaom d050d4ea28 [Fix] Snippet will not be displayed correctly when file content is too short. 2021-04-01 20:41:22 +08:00
iaom 81c4ef9a0e Update changelog. 2021-03-22 14:51:36 +08:00
zhangjiaping 9b7bcf54c6 Feat:Add cloud sync interface. 2021-03-20 15:37:54 +08:00
zhangjiaping 449825c5f9 feat(frontend): Reset geometry for ukui-search.
Description: 重新计算搜索主界面的显示位置

Log: 重新计算搜索主界面的显示位置
2021-03-19 10:15:30 +08:00
iaom 87ff2fade1 Re-implement the file search interface. 2021-03-17 10:23:21 +08:00
iaom 05fe8b5b85 Try to reduce the memory footprint a little bit. 2021-03-16 17:21:10 +08:00
iaom 74eaa6fdb5 [FIX]Some 'doc' type could not be read. 2021-03-09 09:56:47 +08:00
张佳萍 8fb9eb38c4
Merge pull request #162 from MouseZhangZh/main
[Fix]Index process may crash while system first boot;
2021-03-08 14:39:44 +08:00
iaom 6d9961fbc7 [FIX]Index crash if database path don't exits. 2021-03-08 10:02:53 +08:00
Mouse Zhang f32a89cd33 [Fix]Index process may crash while system first boot;
Remove a dbus operation.
2021-03-06 16:41:16 +08:00
iaom 3daf5ceab9 Optimized file content parser. 2021-03-04 14:10:00 +08:00
iaom 4a8076122e Add support for 'doc' file in file content search. 2021-03-02 15:19:10 +08:00
iaom 6893409b5e Make file search case insensitive. 2021-03-01 09:07:33 +08:00
MouseZhangZh 5466590bec Reduced resource footprint and increased indexing time. 2021-02-27 10:51:19 +08:00
iaom fbb15e4a14 [FIX] Updating status with QSettings will get stuck sometimes. 2021-02-25 14:40:44 +08:00
MouseZhangZh f289cd1dc2 Add memset. 2021-02-25 09:37:57 +08:00
iaom eac2d7f418 Update exit status settings. 2021-02-22 14:35:55 +08:00
zhangpengfei ca3d633527 [FIX] Function sigset in main.cpp is useless,first-index will often be called. 2021-02-21 11:41:20 +08:00
zhangpengfei 501022ad92 Optimized Chinese phonetic alphabet index. 2021-02-20 16:56:30 +08:00
zhangzihao a41381db2d [FIX] Spelling mistake. 2021-02-06 17:19:56 +08:00
zhangzihao dc851cf32f Replacing exit(0) to _exit(0) to avoid crash down. 2021-02-06 15:13:05 +08:00
zhangpengfei 81cf59cd3c [FIX] File index won't be created correctly when copied a folder which has many childern folders. 2021-02-02 16:04:14 +08:00
张佳萍 7289562d17
Merge pull request #122 from iaom/0126-dev
[FIX] Compute the md5 in the wrong way.错误的计算了md5值。
2021-02-02 14:17:09 +08:00
zhangpengfei ee7ff13017 [FIX] Compute the md5 in the wrong way.错误的计算了md5值。 2021-02-02 14:05:32 +08:00
zhangzihao f5f17e13e3 Set max thread count in first index equals half the number of logical processor. 2021-02-01 21:20:38 +08:00
iaom 675630e18a
Update inotify-index.cpp 2021-01-30 16:32:46 +08:00
zhangzihao 263714d56a Try to resolve the problem of files lost. 2021-01-30 10:39:35 +08:00
zhangpengfei 39a6382377 Update copyright. 2021-01-29 11:43:07 +08:00
zhangpengfei 2d6a208dc4 Adds support for special symbols in file index and search. 2021-01-27 18:22:50 +08:00
zhangzihao fccf8a25ef [FIX] File search won't return enough result issue. 2021-01-26 16:50:30 +08:00
zhangpengfei 7e3bb085a8 Optimized index sub-process code. 2021-01-26 11:32:02 +08:00
zhangpengfei 22fbf1883f Optimized file search method;Update debian files about translations. 2021-01-25 19:16:22 +08:00
zhangzihao e6ebd8ec9e Changed _exit to exit. 2021-01-23 11:32:18 +08:00
zhangzihao 2d7b3a8eb1 Change the timeout mechanism in inotify index. 2021-01-23 10:13:13 +08:00
zhangzihao 0dda5b97e5 Use select to not block process and child process whill exit per 30 secs. 2021-01-23 09:52:44 +08:00
zhangzihao fc283322b7 Removed inotify on home and modified index status 2021-01-22 17:15:43 +08:00
zhangzihao d4c613e3e6 Fixed an issue where the monitor would not start the next time the application exits normally. 2021-01-22 10:51:06 +08:00
zhangzihao add5b7bb46 Add named pipe to control the order of two child process. 2021-01-22 09:49:44 +08:00
zhangzihao 501e252bf7 Adjust the logic between parent and child processes, named pipes to be added. 2021-01-21 21:05:53 +08:00
zhangpengfei 452896a354 Creat two sub-processes for file index to reduce the resource consumption(ongoing). 2021-01-21 13:50:21 +08:00
zhangzihao 8e42f28145 change position of index status from index-generator to first-index and inotify-index. 2021-01-20 17:14:14 +08:00
zhangpengfei 9350b32a6e Optimized docx parsing method;
Optimized file content search method;
2021-01-19 20:59:46 +08:00
zhangzihao 5790b5692c Try fixing occupied too much memory issue. 2021-01-19 19:26:39 +08:00
zhangpengfei 20efcc67af Try fixing occupied too much memory bug. 2021-01-19 10:44:28 +08:00
zhangjiaping 9cd15760ba fix(setting-widget): Index is empty.
Description: 索引项接口对接

Log: 索引项接口对接
Bug: http://172.17.66.192/biz/bug-view-33094.html
2021-01-15 16:16:51 +08:00
zhangpengfei 0a1f1f7b69 Add function of querying current index count. 2021-01-15 09:14:25 +08:00
张佳萍 5b84a5fd27
Merge pull request #80 from iaom/0113-dev
Add system tray icon.
2021-01-13 18:40:06 +08:00
iaom fc9ca050b7
Merge pull request #78 from MouseZhangZh/0110-dev
🗑🗑🗑delete unuseful files and add the number first index files and folders
2021-01-13 18:37:16 +08:00
zhangpengfei d7ff0e2a31 Add system tray icon. 2021-01-13 18:35:48 +08:00
zhangzihao 38cac0bc3b delete unuseful files and add the number first index files and folders 2021-01-13 15:59:04 +08:00
zhangpengfei 0f2c2f2ec6 Update desktop file 2021-01-13 15:30:42 +08:00
zhangzihao 276f520888 fix the bug of cannot delete files and add the handling of modify events 2021-01-13 14:04:13 +08:00
zhangpengfei 3aeaa46b2d [Fix] Delete folder won't success. 2021-01-13 11:02:15 +08:00
zhangpengfei 6465ea2457 Add index count;
[Fix] Duplicate index issue.
2021-01-12 18:54:51 +08:00
zhangpengfei 6158b46487 [FIX] Block dir won't take effect issue;
Remove '\n' when get text content.
2021-01-12 16:07:50 +08:00
zhangpengfei e554789059 Modified mode of search thread exit. 2021-01-11 20:49:42 +08:00
张佳萍 c991679741
Merge branch 'main' into 0111-dev 2021-01-11 20:38:38 +08:00
zhangjiaping 51fd7e19bf feat(searchList): Confirm interface with backend.
Description: 接口对接

Log: 接口对接
2021-01-11 20:34:51 +08:00
zhangpengfei 18665ec2cd Add lock in deconstruction of index-generator. 2021-01-11 18:36:04 +08:00
zhangzihao e046b609f1 add the feature of database won't be rebuild after restart and fix some bugs 2021-01-11 16:59:50 +08:00
zhangzihao 417400e8b7 delete unuseful files 2021-01-10 16:32:16 +08:00
zhangpengfei 929063645b Modified file search interface and index interface. 2021-01-10 15:59:17 +08:00
iaom af19c6c94d
Merge pull request #61 from MouseZhangZh/0107-dev
🗑🗑🗑delete files unuseful from git, but they're still exist.
2021-01-10 09:15:22 +08:00
zhangzihao 6a225fc56d delete files unuseful from git, but they're still exist. 2021-01-10 09:09:46 +08:00