iceshrimp/packages/backend/src/server/api
Kaity A 77c12cba8d 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
..
common fix: 🐛 first user gets admin 2023-02-12 20:19:16 -08:00
endpoints Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
mastodon pass auth to metadata 2023-03-18 13:06:49 +01:00
openapi lavaforge --> codeberg until lavaforge is ready 2023-01-19 16:18:17 -08:00
private refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
service refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
stream more mastodon work 2023-02-28 17:23:04 +01:00
2fa.ts clean up w/ rome 2023-01-16 11:19:20 -08:00
api-handler.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
authenticate.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
call.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
compatibility.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
define.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
endpoints.ts Add sonic full-text search support (#9714) 2023-03-19 08:26:47 +00:00
error.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
index.ts Small fix to Masto ID conversion code 2023-03-13 00:44:38 -04:00
limiter.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
logger.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
streaming.ts chore: Rome Formatting 2023-02-10 15:41:19 -08:00