meilisearch / milli

Search engine library for Meilisearch ⚡️
MIT License
464 stars 81 forks source link

Add some integration tests on the sort criterion #728

Closed loiclec closed 1 year ago

loiclec commented 1 year ago

This is simply an integration test ensuring that the sort criterion works properly.

However, only one version of the algorithm is tested here (the iterative one). To test the version that uses the facet DB, one has to manually set the CANDIDATES_THRESHOLD constant to 0. I have done that and ensured that the test still succeeds. However, in the future, we will probably want to have an option to force which algorithm is used at runtime, for testing purposes.

bors[bot] commented 1 year ago

Build succeeded: