#6111 -- Meilisearch fine-tuning

- Disable analytics by default
- Allow dev mode
- Expand pagination options
- Update to Meilisearch 1.0.2
This commit is contained in:
Buster Neece 2023-02-25 07:40:31 -06:00
parent ede5e88a49
commit 768d5772de
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
5 changed files with 11 additions and 3 deletions

View File

@ -21,7 +21,7 @@ RUN mkdir -p /tmp/meilisearch
WORKDIR /tmp/meilisearch
RUN curl -fsSL https://github.com/meilisearch/meilisearch/archive/refs/tags/v1.0.0-rc.2.tar.gz -o meilisearch.tar.gz \
RUN curl -fsSL https://github.com/meilisearch/meilisearch/archive/refs/tags/v1.0.2.tar.gz -o meilisearch.tar.gz \
&& tar -xvzf meilisearch.tar.gz --strip-components=1 \
&& cargo build --release \
&& chmod a+x ./target/release/meilisearch \

View File

@ -6,6 +6,7 @@ services:
- "127.0.0.1:3306:3306" # MariaDB
- "127.0.0.1:6025:6025" # Centrifugo
- "127.0.0.1:6379:6379" # Redis
- "127.0.0.1:6070:6070" # Meilisearch
volumes:
- $PWD/util/local_ssl/default.crt:/var/azuracast/acme/ssl.crt:ro
- $PWD/util/local_ssl/default.key:/var/azuracast/acme/ssl.key:ro

View File

@ -72,6 +72,10 @@ final class Index
);
$this->indexClient->waitForTask($response['taskUid']);
$this->indexClient->updatePagination([
'maxTotalHits' => 100000,
]);
}
$currentSettings = $this->indexClient->getSettings();

View File

@ -1,3 +1,4 @@
db_path = "/var/azuracast/meilisearch/persist"
http_addr = "localhost:6070"
http_addr = "0.0.0.0:6070"
env = "production"
no_analytics = true

View File

@ -1,5 +1,7 @@
[program:meilisearch]
command=meilisearch --config-file-path=/var/azuracast/meilisearch/config.toml --master-key %(ENV_MEILISEARCH_MASTER_KEY)s
command=meilisearch --config-file-path=/var/azuracast/meilisearch/config.toml
--env %(ENV_APPLICATION_ENV)s
--master-key %(ENV_MEILISEARCH_MASTER_KEY)s
priority=500
numprocs=1
autostart=true