#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:
parent
ede5e88a49
commit
768d5772de
|
@ -21,7 +21,7 @@ RUN mkdir -p /tmp/meilisearch
|
||||||
|
|
||||||
WORKDIR /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 \
|
&& tar -xvzf meilisearch.tar.gz --strip-components=1 \
|
||||||
&& cargo build --release \
|
&& cargo build --release \
|
||||||
&& chmod a+x ./target/release/meilisearch \
|
&& chmod a+x ./target/release/meilisearch \
|
||||||
|
|
|
@ -6,6 +6,7 @@ services:
|
||||||
- "127.0.0.1:3306:3306" # MariaDB
|
- "127.0.0.1:3306:3306" # MariaDB
|
||||||
- "127.0.0.1:6025:6025" # Centrifugo
|
- "127.0.0.1:6025:6025" # Centrifugo
|
||||||
- "127.0.0.1:6379:6379" # Redis
|
- "127.0.0.1:6379:6379" # Redis
|
||||||
|
- "127.0.0.1:6070:6070" # Meilisearch
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD/util/local_ssl/default.crt:/var/azuracast/acme/ssl.crt:ro
|
- $PWD/util/local_ssl/default.crt:/var/azuracast/acme/ssl.crt:ro
|
||||||
- $PWD/util/local_ssl/default.key:/var/azuracast/acme/ssl.key:ro
|
- $PWD/util/local_ssl/default.key:/var/azuracast/acme/ssl.key:ro
|
||||||
|
|
|
@ -72,6 +72,10 @@ final class Index
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->indexClient->waitForTask($response['taskUid']);
|
$this->indexClient->waitForTask($response['taskUid']);
|
||||||
|
|
||||||
|
$this->indexClient->updatePagination([
|
||||||
|
'maxTotalHits' => 100000,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$currentSettings = $this->indexClient->getSettings();
|
$currentSettings = $this->indexClient->getSettings();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
db_path = "/var/azuracast/meilisearch/persist"
|
db_path = "/var/azuracast/meilisearch/persist"
|
||||||
http_addr = "localhost:6070"
|
http_addr = "0.0.0.0:6070"
|
||||||
env = "production"
|
env = "production"
|
||||||
|
no_analytics = true
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
[program:meilisearch]
|
[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
|
priority=500
|
||||||
numprocs=1
|
numprocs=1
|
||||||
autostart=true
|
autostart=true
|
||||||
|
|
Loading…
Reference in New Issue