Commit Graph

95 Commits

Author SHA1 Message Date
ee352b6c7c Allow a user to disable the auto batching system 2022-10-20 15:44:58 +02:00
21d6c03bb4 Add a test to check that it works without autobatching 2022-10-20 15:44:58 +02:00
12c374e475 Remove the IndexScheduler::notify method 2022-10-20 15:44:58 +02:00
fc148212aa Make sure that the index-scheduler tick loop is rerun after processing 2022-10-20 15:44:58 +02:00
67e8ee6ef7 Add a test that verifies that sending multiple tasks works 2022-10-20 15:44:57 +02:00
4958bf3a55 start writting the compat layer between v5 and v6 2022-10-20 15:44:52 +02:00
b5ebab5c66 fix the tests 2022-10-20 15:44:51 +02:00
a358eaa816 Create the index only if the task has the rights to do so 2022-10-20 15:44:35 +02:00
134634d99a Correctly batch tasks with different index creation rights 2022-10-20 15:44:35 +02:00
cea19f5af1 Use a ControlFlow in the autobatcher function 2022-10-20 15:44:34 +02:00
2a45d24143 IndexDeletion operation have ClearAll details 2022-10-20 15:44:34 +02:00
be192f281d Only mark the first clear document with the amount of cleared documents 2022-10-20 15:44:34 +02:00
99d1e9a870 Let the tick function set the Failed status itself 2022-10-20 15:44:34 +02:00
945cb00fc3 Fill an IndexDeletion task with the number of documents removed 2022-10-20 15:44:34 +02:00
b7ad050737 Panic if we encountered a wring KindWithContent type 2022-10-20 15:44:34 +02:00
f3f6bbf624 Update the tasks statuses 2022-10-20 15:44:33 +02:00
88a0ed9736 Implement the IndexDeletion batch operation 2022-10-20 15:44:33 +02:00
4a53cb1c50 Implement the IndexUpdate batch operation 2022-10-20 15:44:33 +02:00
617994a9d7 Implement the IndexCreate batch operation 2022-10-20 15:44:33 +02:00
4871509507 Make sure that meilisearch-http works without index wrapper 2022-10-20 15:44:33 +02:00
478e3f0f6b Remove the Index wrapper and use milli::Index directly 2022-10-20 15:43:03 +02:00
8bffe41886 Remove the IndexRename operation 2022-10-20 15:43:02 +02:00
257651c615 Move the IndexScheduler to the root of the index-scheduler crate 2022-10-20 15:43:02 +02:00
78e730ca37 Add a TODO about the index creation 2022-10-20 15:43:02 +02:00
373995dca9 Make clippy happy 2022-10-20 15:43:02 +02:00
3fda1942c0 Implement a recursive indexation for the index-related operations 2022-10-20 15:43:02 +02:00
e7ca5efe1e Implement the SettingsAndDocumentImport batch operation 2022-10-20 15:43:01 +02:00
e24715abe5 Merge both DocumentAddition/Update into one DocumentImport variant 2022-10-20 15:43:01 +02:00
9e1d7fbfe5 Implement the DocumentClear batch operation 2022-10-20 15:43:01 +02:00
eb8dda1f81 Implement the DocumentClearAndSettings batch operation 2022-10-20 15:43:01 +02:00
ad0d285f12 Implement the Settings batch operation 2022-10-20 15:43:01 +02:00
e84119fc75 Implement the DocumentUpdate batch operation 2022-10-20 15:43:01 +02:00
78922a7c67 Implement the DocumentDeletion batch operation 2022-10-20 15:43:00 +02:00
5cd1fc0b7b remove an old unworking part of the batch execution 2022-10-20 15:42:45 +02:00
0d0b2a9ac1 bring back the IndexMeta and IndexStats in meilisearch-http 2022-10-20 15:42:45 +02:00
2d31cff082 get rids of meilisearch-lib 2022-10-20 15:42:44 +02:00
2de8f08517 fix a deadlock 2022-10-20 15:36:10 +02:00
972dd6bcef remove Clone from the IndexScheduler 2022-10-20 15:36:10 +02:00
7f1a85d443 remove a bunch of comments 2022-10-20 15:36:10 +02:00
e43d5e9abe move as many fields as possible out of the IndexScheduler 2022-10-20 15:36:09 +02:00
a43fbc9367 move the test function in the test module 2022-10-20 15:36:09 +02:00
03de8669a2 start implementing some logic to test the internal states of the scheduler 2022-10-20 15:36:09 +02:00
2d1cc1a12d fix the tests 2022-10-20 15:36:09 +02:00
f58d969899 slightly refactor the autobatching tests 2022-10-20 15:34:55 +02:00
42f5c1fc3f connect the new scheduler to meilisearch-http officially.
I can index documents and do search
2022-10-20 15:34:55 +02:00
f84cbee170 implements the get_tasks 2022-10-20 15:34:55 +02:00
5b282acb7b fix all compilation errors 2022-10-20 15:34:55 +02:00
60ee1f5e64 wip integrating the scheduler in meilisearch-http 2022-10-20 15:34:55 +02:00
acc6d3a82b start integrating the index-scheduler in meilisearch-lib 2022-10-20 15:30:31 +02:00
01847a14bb add insta::json for later 2022-10-20 15:30:31 +02:00