fbec48f56e
Merge remote-tracking branch 'milli/main' into bring-v1-changes
2023-02-06 16:48:10 +01:00
20f05efb3c
clippy: needless_lifetimes
2023-01-31 11:12:59 +01:00
3296cf7ae6
clippy: remove needless lifetimes
2023-01-31 09:32:40 +01:00
1b78231e18
Make clippy happy
2023-01-17 18:25:54 +01:00
ad9937c755
Fix tests after adding DeletionStrategy
2022-12-19 10:07:17 +01:00
cda4ba2bb6
Add document import tests
2022-12-05 12:02:49 +01:00
f2cf981641
Add more tests and allow disabling of soft-deletion outside of tests
...
Also allow disabling soft-deletion in the IndexDocumentsConfig
2022-12-05 10:51:01 +01:00
9dd4b33a9a
Fix bulk facet indexing bug
2022-11-30 14:27:36 +01:00
0caadedd3b
Make clippy happy
2022-11-17 12:17:53 +01:00
d95d02cb8a
Fix Facet Indexing bugs
...
1. Handle keys with variable length correctly
This fixes https://github.com/meilisearch/meilisearch/issues/3042 and
is easily reproducible with the updated fuzz tests, which now generate
keys with variable lengths.
2. Prevent adding facets to the database if their encoded value does
not satisfy `valid_lmdb_key`.
This fixes an indexing failure when a document had a filterable
attribute containing a value whose length is higher than ~500 bytes.
2022-11-17 11:29:42 +01:00
abf1cf9cd5
Fix clippy errors
2022-11-04 09:27:46 +09:00
d55f0e2e53
Execute cargo fmt
2022-10-28 23:42:23 +09:00
d53a80b408
Fix clippy error
2022-10-28 23:41:35 +09:00
a1d7ed1258
fix clippy error and remove clippy job from ci
...
Remove clippy job
Fix clippy error type_complexity
Restore ambiguous change
2022-10-28 22:33:50 +09:00
f4ec1abb9b
Fix all clippy error after conflicts
2022-10-27 23:58:13 +09:00
14ca8048a8
Add some documentation on how to run the facet db fuzzer
2022-10-26 13:48:01 +02:00
f198b20c42
Add facet deletion tests that use both the incremental and bulk methods
...
+ update deletion snapshots to the new database format
2022-10-26 13:47:46 +02:00
2295e0e3ce
Use real delete function in facet indexing fuzz tests
...
By deleting multiple docids at once instead of one-by-one
2022-10-26 13:47:46 +02:00
acc8caebe6
Add link to GitHub PR to document of update/facet module
2022-10-26 13:47:46 +02:00
a034a1e628
Move StrRefCodec and ByteSliceRefCodec to their own files
2022-10-26 13:47:46 +02:00
1165ba2171
Make facet deletion incremental
2022-10-26 13:47:04 +02:00
3baa34d842
Fix compiler errors/warnings
2022-10-26 13:47:04 +02:00
86d9f50b9c
Fix bugs in incremental facet indexing with variable parameters
...
e.g. add one facet value incrementally with a group_size = X and then
add another one with group_size = Y
It is not actually possible to do so with the public API of milli,
but I wanted to make sure the algorithm worked well in those cases
anyway.
The bugs were found by fuzzing the code with fuzzcheck, which I've added
to milli as a conditional dev-dependency. But it can be removed later.
2022-10-26 13:47:04 +02:00
985a94adfc
cargo fmt
2022-10-26 13:47:04 +02:00
b1ab09196c
Remove outdated TODOs
2022-10-26 13:47:04 +02:00
27454e9828
Document and refine facet indexing algorithms
2022-10-26 13:47:04 +02:00
bee3c23b45
Add comparison benchmark between bulk and incremental facet indexing
2022-10-26 13:47:04 +02:00
b2f01ad204
Refactor facet database tests
2022-10-26 13:47:04 +02:00
9026867d17
Give same interface to bulk and incremental facet indexing types
...
+ cargo fmt, oops, sorry for the bad history :(
2022-10-26 13:47:04 +02:00
330c9eb1b2
Rename facet codecs and refine FacetsUpdate API
2022-10-26 13:47:04 +02:00
485a72306d
Refactor facet-related codecs
2022-10-26 13:47:04 +02:00
9b55e582cd
Add FacetsUpdate type that wraps incremental and bulk indexing methods
2022-10-26 13:47:04 +02:00
079ed4a992
Add more snapshots
2022-10-26 13:47:04 +02:00
a7201ece04
cargo fmt
2022-10-26 13:47:04 +02:00
36296bbb20
Add facet incremental indexing snapshot tests + fix bug
2022-10-26 13:47:04 +02:00
07ff92c663
Add more snapshots from facet tests
2022-10-26 13:47:04 +02:00
61252248fb
Fix some facet indexing bugs
2022-10-26 13:47:04 +02:00
68cbcdf08b
Fix compile errors/warnings in http-ui and infos
2022-10-26 13:47:04 +02:00
85824ee203
Try to make facet indexing incremental
2022-10-26 13:47:04 +02:00
d30c89e345
Fix compile error+warnings in new tests
2022-10-26 13:46:46 +02:00
e8a156d682
Reorganise facets database indexing code
2022-10-26 13:46:46 +02:00