stable

Clone or download

Read-only

Add the ability to use a remote Meilisearch server

The remote server is only used when no local instance is present. To test: * make sure you do not have the local instance installed in `web` container * set the API key with `tuleap config-set fts_meilisearch_api_key MEILI_MASTER_KEY_DO_NOT_USE_IN_PRODUCTION` * the current dev setup does not allow to access the Meilisearch instance with `https://tuleap-web.tuleap-aio-dev.docker/meilisearch-remote/` (😭) so to make a quick & dirty test you can insert directly into the `forgeconfig` the server URL: `INSERT INTO forgeconfig(name,value) VALUES (fts_meilisearch_server_url,http://meilisearch:7700/)` * you might want to re-index your items to have some content to search Web UI to set those values is not yet provided. Part of story #28835: have a full-text search backend based on Meilisearch Change-Id: I2b21cf36b736d13ada7c6a2215c833d1f3f4a803

Modified Files

Name
M plugins/fts_meilisearch/db/uninstall.sql +2 −1 Go to diff View file
M plugins/fts_meilisearch/include/Index/MeilisearchHandlerFactory.php +18 −0 Go to diff View file
A plugins/fts_meilisearch/include/Server/MeilisearchAPIKeyValidator.php +42 −0 Go to diff View file
A plugins/fts_meilisearch/include/Server/MeilisearchIndexNameValidator.php +41 −0 Go to diff View file
A plugins/fts_meilisearch/include/Server/MeilisearchServerURLValidator.php +52 −0 Go to diff View file
A plugins/fts_meilisearch/include/Server/RemoteMeilisearchServerSettings.php +53 −0 Go to diff View file
M plugins/fts_meilisearch/include/fts_meilisearchPlugin.php +11 −1 Go to diff View file
M plugins/fts_meilisearch/tests/unit/Index/MeilisearchHandlerFactoryTest.php +19 −0 Go to diff View file
A plugins/fts_meilisearch/tests/unit/Server/MeilisearchAPIKeyValidatorTest.php +42 −0 Go to diff View file
A plugins/fts_meilisearch/tests/unit/Server/MeilisearchIndexNameValidatorTest.php +41 −0 Go to diff View file
A plugins/fts_meilisearch/tests/unit/Server/MeilisearchServerURLValidatorTest.php +48 −0 Go to diff View file