67 Commits

Author SHA1 Message Date
BoYanZh
b3be9ef428
feat(search): use FULLTEXT index (close #2716 pr #2726) 2022-12-16 16:51:36 +08:00
foxxorcat
33bae52fa1
refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters (#2691)
* refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters

* fix typo

Co-authored-by: Noah Hsu <i@nn.ci>
2022-12-13 18:03:30 +08:00
BoYanZh
179d285564
feat: optimize database search (#2687)
* feat: remove index on `SearchNode.Name`

As we do not use s% on name column, index there does not work

* fix: init index after init data

Or on the first run, it will log 'init index error: readObjectStart: expect { or n, but found , error found in #0 byte of ...||..., bigger context ...||...'

* fix: match parent more precisely

It will match `/a/bc` if we search in `/a/b` originally.
But it is not backward compatible by adding a suffix `/`
to all the data in parent field
2022-12-12 20:20:01 +08:00
BoYanZh
7aa4dfb240
feat: use natural sort in SortFiles (#2612) 2022-12-06 17:28:18 +08:00
Noah Hsu
bf8b6f4c2c feat: customize ignore paths of indexes 2022-12-05 16:45:11 +08:00
BoYanZh
8c0dfe2f3d
feat: Search enhancement (#2562)
* feat: ignore AList storage on indexing

* fix: remove unused err in `walkFn`

* chore(ci): fix auto_lang trigger and run it

* feat: batch index

* feat: quit index & init index

* feat: set DocType for bleve data

* fix: build index cleanup check origin err
2022-12-05 13:28:39 +08:00
Noah Hsu
b5bf5f4325 fix: check if the req path is relative path (close #2531) 2022-11-30 21:38:00 +08:00
Noah Hsu
83644dab85 fix: mapping filename in GetName
some missed filename mapping
2022-11-30 20:46:54 +08:00
Noah Hsu
ddcba93eea
feat: multiple search indexes (#2514)
* refactor: abstract search interface

* wip: ~

* fix cycle import

* objs update hook

* wip: ~

* Delete search/none

* auto update index while cache changed

* db searcher

TODO: bleve init issue

cannot open index, metadata missing

* fix size type

why float64??

* fix typo

* fix nil pointer using

* api adapt ui

* bleve: fix clear & change struct
2022-11-28 13:45:25 +08:00
Noah Hsu
b6d9018ebd fix: sorting by modified doesn't work (close #1756) 2022-09-23 12:30:32 +08:00
Noah Hsu
71d30b6819 chore: rename index to order of storage 2022-09-07 15:55:15 +08:00
Noah Hsu
5d0668b00b feat: add google_drive driver 2022-09-03 20:34:06 +08:00
Noah Hsu
611457c0e7 feat: add baidu_netdisk driver 2022-09-02 22:46:31 +08:00
Noah Hsu
0f2425ce53 feat: add teambition driver 2022-09-02 18:24:14 +08:00
Noah Hsu
f551dc76d0 feat: add onedrive driver 2022-08-30 21:52:06 +08:00
Noah Hsu
7425e001db feat: auto generate drivers language json 2022-08-26 15:08:31 +08:00
Noah Hsu
74f1154e5e feat: add disable option for storage (close #1476) 2022-08-11 21:08:50 +08:00
Noah Hsu
af884010d1 feat: local storage image thumbnail 2022-08-11 20:32:17 +08:00
Noah Hsu
d8b56042c3 chore: ignore opt_secret while marshal 2022-08-08 16:29:56 +08:00
Noah Hsu
2e8322e99b feat: set cache_expiration for each storage (close #1455) 2022-08-07 13:33:53 +08:00
Noah Hsu
a6ed4afdae feat: 2fa/otp support 2022-08-06 01:22:13 +08:00
Noah Hsu
721f18a7f4 feat: fs other api 2022-08-03 14:14:37 +08:00
Noah Hsu
e707d6b26e chore: change select values case 2022-07-27 15:49:18 +08:00
Noah Hsu
5166d73b4d chore: unified function name 2022-07-23 21:49:09 +08:00
Noah Hsu
a16da3b45e chore: fix typo 2022-07-12 18:41:16 +08:00
Noah Hsu
2bff656f00 chore: rename VirtualPath to MountPath 2022-07-12 14:11:37 +08:00
Noah Hsu
fc1204c914 chore: rename account to storage 2022-07-10 14:45:39 +08:00
Noah Hsu
4340a48633 fix: put as task from web 2022-07-01 15:11:18 +08:00
Noah Hsu
fba96d024f feat: add write field to list resp 2022-06-30 15:53:57 +08:00
Noah Hsu
35b04ffa9c feat: add readme field to list resp 2022-06-30 15:41:58 +08:00
Noah Hsu
d24e51bc86 chore: user permissions 2022-06-29 18:03:12 +08:00
Noah Hsu
8abee6504f feat: set aria2 client and add url to aria2 api 2022-06-29 17:31:37 +08:00
Noah Hsu
a09a1b814b chore: change permission check 2022-06-29 17:08:31 +08:00
Noah Hsu
40548926e6 feat: fs link api 2022-06-29 16:08:55 +08:00
Noah Hsu
5dbf5db4ff feat: token and reset 2022-06-28 14:18:10 +08:00
Noah Hsu
c6007aa9e6 feat: sort obj list 2022-06-27 19:10:02 +08:00
Noah Hsu
005ded41c3 feat: settings manage api 2022-06-27 17:06:10 +08:00
Noah Hsu
1a148eee7c feat: initial setting items 2022-06-27 15:51:02 +08:00
Noah Hsu
e4c3ef0262 feat: setting model 2022-06-27 14:51:48 +08:00
Noah Hsu
087fae1b15 chore: webdav policy of account 2022-06-27 13:58:21 +08:00
Noah Hsu
cab498e376 feat: user manage api 2022-06-26 19:36:27 +08:00
Noah Hsu
4cef3adc90 feat: meta manage api 2022-06-26 19:09:28 +08:00
Noah Hsu
7cbfe93a02 chore: set guest while token is empty 2022-06-26 16:39:02 +08:00
Noah Hsu
54ca68e4b3 chore: init users 2022-06-25 22:05:02 +08:00
Noah Hsu
c5295f4d72 feat: user jwt login 2022-06-25 21:34:44 +08:00
Noah Hsu
306b90399c chore: move conf package 2022-06-25 20:38:02 +08:00
Noah Hsu
fd5c3e831d chore: change size of file to int64 2022-06-23 15:57:36 +08:00
Noah Hsu
31ff31d3dd chore: add callback for task 2022-06-20 17:13:19 +08:00
Noah Hsu
dd46e99e66 chore: set addition type as text 2022-06-18 20:10:35 +08:00
Noah Hsu
52575f6ad6 feat: add meta model and test 2022-06-17 16:31:19 +08:00