ad hoc
1e310ecc7d
fix typo in docstring
...
Co-authored-by: Tamo <tamo@meilisearch.com >
2022-05-30 14:34:49 +02:00
ad hoc
4cb2c6ef1e
use map_or instead of map + unwrap_or
2022-05-30 12:30:15 +02:00
bors[bot]
582930dbbb
Merge #538
...
538: speedup exact words r=Kerollmops a=MarinPostma
This PR make `exact_words` return an `Option` instead of an empty set, since set creation is costly, as noticed by `@kerollmops.`
I was not convinces that this was the cause for all of the performance drop we measured, and then realized that methods that initialized it were called recursively which caused initialization times to add up. While the first fix solves the issue when not using exact words, using exact word remained way more expensive that it should be. To address this issue, the exact words are cached into the `Context`, so they are only initialized once.
Co-authored-by: ad hoc <postma.marin@protonmail.com >
2022-05-30 08:20:34 +00:00
ad hoc
a9ef399a6b
processing::Nothing return BatchContent::Empty instead of panic
2022-05-26 12:04:27 +02:00
ad hoc
5a2972fc19
use TaskEvent method instead of variants in BatchHandler impl
2022-05-26 11:51:58 +02:00
0x0x1
ba51ca83ec
Update docker volume path
...
Makes docker volume same as Dockerfile
2022-05-26 10:29:27 +08:00
ad hoc
1647ca3c1f
fix clipy warnings
2022-05-25 15:07:52 +02:00
ad hoc
74a1f88d88
add test for dump processing order
2022-05-25 14:57:36 +02:00
ad hoc
f58507379a
fix dump priority in scheduler
2022-05-25 14:50:14 +02:00
ad hoc
6b2016b350
remove typo in BatchContent variant
2022-05-25 14:39:07 +02:00
ad hoc
3015265bde
remove useless dump errors
2022-05-25 14:37:10 +02:00
ad hoc
49d8fadb52
test dump handler
2022-05-25 14:32:12 +02:00
ad hoc
127171c812
impl Default on Processing
2022-05-25 14:10:39 +02:00
bors[bot]
67b6f4340a
Merge #2422
...
2422: Update url of movies.json r=curquiza a=0x0x1
URL `https://bit.ly/2PAcw9l ` is a notion site.
Co-authored-by: 0x0x1 <101086451+0x0x1@users.noreply.github.com >
2022-05-25 11:21:56 +00:00
ad hoc
986a99296d
remove useless dump test
2022-05-25 11:25:11 +02:00
ad hoc
92d86ce6aa
add tests to IndexResolver BatchHandler
2022-05-25 11:13:36 +02:00
ad hoc
3c85b29865
add doc to BatchHandler
2022-05-25 11:13:35 +02:00
ad hoc
8349f38197
remove unused file
2022-05-25 11:13:35 +02:00
ad hoc
64654ef7c3
rename batch_handler to handler
2022-05-25 11:13:35 +02:00
ad hoc
0f9c134114
fix tests
2022-05-25 11:13:35 +02:00
ad hoc
7b47e4e87a
snapshot batch handler
2022-05-25 11:13:35 +02:00
ad hoc
8743d73973
move DumpHandler to own module
2022-05-25 11:13:35 +02:00
ad hoc
f0aceb4fba
remove unused files
2022-05-25 11:13:35 +02:00
ad hoc
61035a3ea4
create dump v5
2022-05-25 11:13:34 +02:00
ad hoc
4778884105
remove dump status route
2022-05-25 11:13:34 +02:00
ad hoc
57fde30b91
handle dump
2022-05-25 11:13:34 +02:00
ad hoc
56eb2907c9
dump indexes
2022-05-25 11:13:34 +02:00
ad hoc
414d0907ce
register dump handler
2022-05-25 11:13:34 +02:00
ad hoc
60a8249de6
add dump batch handler
2022-05-25 11:13:34 +02:00
ad hoc
46cdc17701
make scheduler accept multiple batch handlers
2022-05-25 11:13:34 +02:00
ad hoc
6a0231cb28
perform dump method
2022-05-25 11:13:33 +02:00
ad hoc
7fa3eb1003
register dump tasks
2022-05-25 11:13:33 +02:00
ad hoc
2f0625a984
register and insert dump task in scheduler
2022-05-25 11:13:33 +02:00
ad hoc
737b891a41
introduce Dump TaskListIdentifier variant
2022-05-25 11:13:33 +02:00
ad hoc
5a5066023b
introduce TaskListIdentifier
2022-05-25 11:13:33 +02:00
ad hoc
aa50acb031
make Task index_uid an option
...
Not all task relate to an index. Tasks that don't have an index_uid set
to None
2022-05-25 11:13:32 +02:00
bors[bot]
9935db86c7
Merge #2424
...
2424: Uncomment clippy from the ci check r=curquiza a=irevoire
The issue has been fixed in the latest release of rust. See https://github.com/rust-lang/rust-clippy/issues/8662
Fix #2305
Co-authored-by: Irevoire <tamo@meilisearch.com >
2022-05-24 17:50:55 +00:00
bors[bot]
9f78e392b1
Merge #536
...
536: Improves ranking rules error message r=Kerollmops a=matthias-wright
This PR improves the ranking rules error message to properly reflect the case sensitivity.
The issue was highlighted in [meilisearch/issues/2407](https://github.com/meilisearch/meilisearch/issues/2407 ).
Cheers!
Co-authored-by: Matthias Wright <matthias.s.wright@gmail.com >
2022-05-24 16:43:52 +00:00
Irevoire
f65116b208
chore(ci): uncomment clippy from the ci check
...
The issue has been fixed in the latest release of rust. See https://github.com/rust-lang/rust-clippy/issues/8662
Fix #2305
2022-05-24 15:03:11 +02:00
bors[bot]
341756a0eb
Merge #2357
...
2357: chore(dump): add dump tests r=Kerollmops a=irevoire
Add tests on the import of dump v1, v2, v3 and v4.
Since the dumps are slow to decompress, I made the `flate2` crate always compile in optimized.
And since they're also slow to index, I also made the `milli` crate always compile in optimized. What do you think of this `@MarinPostma?`
Should we keep milli unoptimized in case it could help us debug some things? 👀
Co-authored-by: Tamo <tamo@meilisearch.com >
2022-05-24 12:24:29 +00:00
Tamo
5f0e9b63d2
chore(dump): add tests
2022-05-24 14:21:56 +02:00
ad hoc
25fc576696
review changes
2022-05-24 14:15:33 +02:00
bors[bot]
ca9ba2d90c
Merge #2406
...
2406: chore(search): rename in the search endpoint r=irevoire a=irevoire
Fix #2376
Co-authored-by: Irevoire <tamo@meilisearch.com >
2022-05-24 12:02:45 +00:00
ad hoc
69dc4de80f
change &Option<Set> to Option<&Set>
2022-05-24 12:14:55 +02:00
bors[bot]
2c248a68a4
Merge #2374
...
2374: feat(analytics): handle the `X-Meilisearch-Client` header r=Kerollmops a=irevoire
Fix #2367
Co-authored-by: Tamo <tamo@meilisearch.com >
2022-05-24 09:49:16 +00:00
0x0x1
641ca5a857
Update url of movies.json
2022-05-24 17:34:34 +08:00
ad hoc
ac975cc747
cache context's exact words
2022-05-24 09:43:17 +02:00
ad hoc
8993fec8a3
return optional exact words
2022-05-24 09:15:49 +02:00
Tamo
6bf4db0bca
feat(analytics): handle the new x-meilisearch-client custom header for the analytics
...
Fix #2367
2022-05-23 13:51:19 +02:00
Matthias Wright
754f48a4fb
Improves ranking rules error message
2022-05-20 21:25:43 +02:00