calckey/packages/backend/src
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
..
@types some quick fixes 2023-03-01 15:04:01 +01:00
boot lavaforge --> codeberg until lavaforge is ready 2023-01-19 16:18:17 -08:00
config Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
daemons refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
db Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
mfm clean up w/ rome 2023-01-16 11:19:20 -08:00
misc Expand caption limit to 1500 characters 2023-03-05 16:51:44 +10:00
models feat: set license information for custom emojis (#9719) 2023-03-19 07:22:28 +00:00
prelude clean up w/ rome 2023-01-16 11:19:20 -08:00
queue Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
remote feat: Make follower counts for remote users correct (#9705) 2023-03-17 01:16:31 +00:00
server Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
services Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
const.ts Expand caption limit to 1500 characters 2023-03-05 16:51:44 +10:00
env.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
global.d.ts chore: rome linting 2023-01-14 16:09:47 +01:00
index.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
types.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00