rudeshark.net/packages/backend
Kaity A 706b4ae602 Add sonic full-text search support (#9714)
This pull request adds support for the [sonic](https://github.com/valeriansaliou/sonic) full text indexing server into Calckey.

In addition to this, a stateful endpoint has been added that will completely (re-)index all notes into any (elasticsearch and/or sonic) indexing server defined in your config at `/api/admin/search/index-all`. It can (optionally) take input data to define the starting point, such as:

```
{"cursor": "9beg3lx6ad"}
```

Currently if both sonic and elasticsearch are defined in the config, sonic will take precedence for searching, but both indexes will continue to be updated for new note creations. Future enhancements may include the ability to choose which indexer to use (or combine multiple).

Co-authored-by: Kaitlyn Allan <kaitlyn.allan@enlabs.cloud>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9714
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-03-19 08:26:47 +00:00
..
.idea Create move type 2022-11-23 21:49:52 +01:00
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets docs: 📝 custom assets 2023-02-11 13:16:45 -08:00
migration feat: set license information for custom emojis (#9719) 2023-03-19 07:22:28 +00:00
nsfw-model feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
src Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
test Remove usused eslint files 2023-01-12 22:27:17 -08:00
.mocharc.json fix: mocha テストが動かないのを修正 v2 (#8892) 2022-06-26 19:16:32 +09:00
.swcrc perf: 👷 build backend with swc 2023-01-10 16:48:49 -08:00
check_connect.js Check redis connection 2023-02-23 22:04:47 -08:00
jsconfig.json use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
package.json Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
tsconfig.json use es2021 for node 2022-07-31 14:20:10 +09:00