2024-02-06 11:41:28 +00:00
|
|
|
The query service parses search queries and delegates work to the
|
|
|
|
index services.
|
2023-10-09 12:56:59 +00:00
|
|
|
|
|
|
|
The [index-service](../index-service) speaks a lower level query specification language
|
|
|
|
that is difficult to build an application out of. The query service exists as an interpreter
|
2024-01-13 20:16:45 +00:00
|
|
|
to that format.
|
|
|
|
|
|
|
|
## Web Interface
|
|
|
|
|
|
|
|
The query service also offers a basic web interface for testing queries, or
|
|
|
|
running the search engine as a white-label service without all the Marginalia Search
|
|
|
|
specific stuff. This mode of operations is available through a `barebones` install.
|
|
|
|
|
|
|
|
The web interface also offers a JSON API for machine-based queries.
|
2023-10-09 12:56:59 +00:00
|
|
|
|
2024-02-22 18:37:59 +00:00
|
|
|
## Central Classes
|
2023-10-09 12:56:59 +00:00
|
|
|
|
2024-02-27 20:15:49 +00:00
|
|
|
This module is almost entirely boilerplate, except the [QueryBasicInterface](java/nu/marginalia/query/QueryBasicInterface.java)
|
2024-02-22 18:37:59 +00:00
|
|
|
class, which offers a REST API for querying the index.
|
2023-10-09 12:56:59 +00:00
|
|
|
|
2024-02-22 18:37:59 +00:00
|
|
|
Much of the guts of the query service are in the [query-service](../../functions/search-query)
|
|
|
|
module; which offers query parsing and an interface to the index service partitions.
|