Server for tsearch.io.
Tsearch is under development, things might not work as expected.
This is a Stack application, for instructions how to install dependencies and run check the Stack docs.
Before running the application an index of types needs to be provided
(default modules.json
). Check
tsearch-io/indexer for instructions on
how to generate it.
If you are only looking to run Tsearch's server, a Docker image with an index is provided: gillchristian/tsearch. At the moment the image only supports running with the provided index. In the future it should support user provided index.
To run the server:
stack run tsearch-sever
By default the server runs on port 8080 and looks for types index as
./modules.json
.
PORT=9000 stack run tsearch-sever -- ./index.json
Tsearch can run from via the CLI.
stack run tsearch -- --index ./modules.json "A => A"