1 <chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-services-meilisearch">
2 <title>Meilisearch</title>
4 Meilisearch is a lightweight, fast and powerful search engine. Think
5 elastic search with a much smaller footprint.
7 <section xml:id="quickstart">
8 <title>Quickstart</title>
10 the minimum to start meilisearch is
12 <programlisting language="bash">
13 services.meilisearch.enable = true;
16 this will start the http server included with meilisearch on port
21 <literal>curl -X GET 'http://localhost:7700/health'</literal>
24 <section xml:id="usage">
27 you first need to add documents to an index before you can search
30 <section xml:id="add-a-documents-to-the-movies-index">
31 <title>Add a documents to the <literal>movies</literal>
34 <literal>curl -X POST 'http://127.0.0.1:7700/indexes/movies/documents' --data '[{"id": "123", "title": "Superman"}, {"id": 234, "title": "Batman"}]'</literal>
37 <section xml:id="search-documents-in-the-movies-index">
38 <title>Search documents in the <literal>movies</literal>
41 <literal>curl 'http://127.0.0.1:7700/indexes/movies/search' --data '{ "q": "botman" }'</literal>
42 (note the typo is intentional and there to demonstrate the typo
43 tolerant capabilities)
47 <section xml:id="defaults">
48 <title>Defaults</title>
52 The default nixos package doesn’t come with the
53 <link xlink:href="https://docs.meilisearch.com/learn/getting_started/quick_start.html#search">dashboard</link>,
54 since the dashboard features makes some assets downloads at
60 Anonimized Analytics sent to meilisearch are disabled by
66 Default deployment is development mode. It doesn’t require a
67 secret master key. All routes are not protected and
73 <section xml:id="missing">
74 <title>Missing</title>
75 <itemizedlist spacing="compact">
78 the snapshot feature is not yet configurable from the module,
79 it’s just a matter of adding the relevant environment