MarginaliaSearch/code/services-core/assistant-service
Viktor Lofgren 8ef34883a8 (search) Move site information out of the search service and into assistant.
This reduces the impact of restarting the search service, as the site information takes a few minutes to load during which it's not available.  It also permits exposing this information via API in the future if there is interest in this.

The assistant service was also modified to do a late load of the suggestions trie, as this is a major contributor to its start-up time.

Finally, some changes were made to the client library, a new get() method was added that takes a TypeToken to allow deserialization of generics such as List<Foo>, and the scheduler was also modified to use virtual threads.
2023-12-09 16:30:06 +01:00
..
src (search) Move site information out of the search service and into assistant. 2023-12-09 16:30:06 +01:00
build.gradle (search) Move site information out of the search service and into assistant. 2023-12-09 16:30:06 +01:00
readme.md Move all code to a code directory. 2023-03-07 17:14:32 +01:00

Assistant Service

The assistant service helps the search service by offering various peripheral functionality, such as spelling correction.

Central Classes

  • AssistantService handles REST requests and delegates to the appropriate handling classes.