xiaoyifang
1e0823147a
opt: enable xapian position on default ( #1299 )
...
* opt: enable xapian position on default
* [autofix.ci] apply automated fixes
---------
Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-24 11:03:21 +08:00
YiFang Xiao
8c8f40cb53
opt: remove log
2023-11-10 17:47:04 +08:00
xiaoyifang
e8a2eadade
opt: indexing dictionary in status bar does not disappear ( #1234 )
...
* opt: indexing dictionary name and progress
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-13 10:43:52 +08:00
shenleban tongying
e057722bf9
fix: makeFTSIndex crash when indexed articleCount is zero
2023-10-06 00:45:46 -04:00
YiFang Xiao
091080940f
fix: fts temp folder deletion
2023-08-05 20:37:58 +08:00
YiFang Xiao
43b070add5
fix: code smells
2023-08-05 11:32:19 +08:00
YiFang Xiao
a8c3207a76
opt: full text index compact
2023-08-05 10:57:20 +08:00
xiaoyifang
e5f91f6a3e
feat: use parallel thread to create the fts ( #980 )
...
* feat: use parallel thread to create the fts
* [autofix.ci] apply automated fixes
* feat: use parallel thread to create the fts
* feat: add an option to control the thread count when create the fulltext
* [autofix.ci] apply automated fixes
* feat: set default parallel thread count to half the cpu numbers
* feat: initialize the default parallel threads to 1/3 of cpu cores
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 22:50:32 +08:00
shenleban tongying
b5349478cf
clean: reformat everything
...
The next commit will add `.git-blame-ignore-revs`
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
2023-07-20 04:02:22 -04:00
YiFang Xiao
9bbb23e5d4
fix: when search hypen alone will result too much unnecessary result.
...
fix #928
2023-07-06 15:24:01 +08:00
xiaoyifang
8b88ea544e
opt: add fullindex position ( #916 )
...
* opt: enable fulltext with position info
* opt: add fulltext position support
* 🎨 apply clang-format changes
* i18n: update translation entries
* opt: default enablePosition=false
* opt: fulltext search highlight
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-07-01 22:39:43 +08:00
xiaoyifang
dfd3a86c7f
fix: fulltext remove query word size check ( #845 )
...
* fix: fulltext remove query word size check
* fix: remove unused methods
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-10 21:02:22 +08:00
xiaoyifang
5899aa7c94
fix: highlight fts search result ( #792 )
...
* fix: highlight fts search result
* 🎨 apply clang-format changes
* remove accent/diacritic handler used in fts search
* header file adjustment
* fix: qt5.15 compile
* fix: code smell
use const reference variable
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* 🎨 apply clang-format changes
* fix: code smells
🎨 apply clang-format changes
* opt: fix code smells
remove unused parameters from function `ftsIndexIsOldOrBad`
🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-03 08:29:19 +08:00
xiaoyifang
4147770f85
Opt: ftshelper refactor ( #760 )
...
* opt: remove useless ftshelper methods
🎨 apply clang-format changes
opt: slob use xapian as fulltext engine
🎨 apply clang-format changes
opt: refactor ftshelper
🎨 apply clang-format changes
* opt: refactor ftshelper
remove unused variabes and functions.
* 🎨 apply clang-format changes
* opt: refactor ftshelper
remove unused variabes and functions.
* opt: refactor ftshelper
remove unused variabes and functions.
🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-31 07:42:31 +08:00
YiFang Xiao
15e0fa087f
opt: replace Mutex::Lock with QMutexLocker
2023-05-30 00:08:01 +08:00
xiaoyifang
4eb8374a35
opt: mdx fulltext lock seperated with normal search ( #759 )
...
* opt: refactor mdx fullindex creation
* opt: incremental fulltext creation logic change
* opt: incremental fulltext creation logic change
* opt: progress of fulltext creation logic
* opt: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* 🎨 apply clang-format changes
* fix: code smell
* fix: code smell
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-29 00:01:21 +08:00
xiaoyifang
d174dc16ba
opt:remove non-xapian fulltext creation logic ( #643 )
...
* opt!:remove non-xapian fulltext creation logic
BREAKING CHANGE: after this PR, xapian package will have to installed
before the compilation. on Linux, this should be libxapian-dev package.
For common users: all created fulltext which is not created by xapian
before will be recreated using the new
engine.
* fix: remove old fulltext search ui
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-17 22:29:56 +08:00
Xiao YiFang
b68a70caa6
refactor wstring toWString
...
ref #506
2023-04-24 15:55:24 +08:00
Xiao YiFang
c2f856c074
opt: Sorting through the use of strings
...
there are many string conversion in the system .some of them can be avoided .
2023-04-24 15:11:40 +08:00
shenleban tongying
03af31c6fc
refactor: move common/base/utils into /src/common/
2023-04-17 20:41:47 -04:00
shenleban tongying
129345613e
refactor: Move all .cc/.hh files to src/
2023-04-17 17:17:36 -04:00