stable

Clone or download

Read-only

Use local Meilisearch instance

To test you need to have a working local Meilisearch instance (see 98ff5915811d166c0498b0f91e2d35901f2518bf), also you will probably want to index your existing documents with `tuleap full-text-search:index-all-pending-items`. The metadata associated to the indexed items are still stored in the DB. It avoids more complex setup of the index on the Meilisearch side and make it is easy for us to determine an ID for a document. Part of story #28835: have a full-text search backend based on Meilisearch Change-Id: I6b808db83f049c10065fc5a0bf5b930495858bbb

Modified Files

Name
A plugins/fts_common/include/Index/NullIndexHandler.php +46 −0 Go to diff View file
A plugins/fts_common/tests/unit/Index/NullIndexHandlerTest.php +38 −0 Go to diff View file
M plugins/fts_meilisearch/composer.json +3 −0 Go to diff View file
M plugins/fts_meilisearch/composer.lock +902 −2 Go to diff View file
A plugins/fts_meilisearch/include/Index/MeilisearchHandler.php +104 −0 Go to diff View file
A plugins/fts_meilisearch/include/Index/MeilisearchHandlerFactory.php +68 −0 Go to diff View file
A plugins/fts_meilisearch/include/Index/MeilisearchMetadataDAO.php +180 −0 Go to diff View file
M plugins/fts_meilisearch/include/Server/GenerateServerMasterKey.php +1 −1 Go to diff View file
M plugins/fts_meilisearch/include/Server/LocalMeilisearchServer.php +23 −0 Go to diff View file
M plugins/fts_meilisearch/include/fts_meilisearchPlugin.php +22 −4 Go to diff View file
A plugins/fts_meilisearch/tests/integration/Index/MeilisearchMetadataDAOTest.php +90 −0 Go to diff View file
A plugins/fts_meilisearch/tests/unit/Index/MeilisearchHandlerFactoryTest.php +70 −0 Go to diff View file
A plugins/fts_meilisearch/tests/unit/Index/MeilisearchHandlerTest.php +120 −0 Go to diff View file
M tests/integration/bin/setup.sh +2 −1 Go to diff View file