Commit Graph

196 Commits

Author SHA1 Message Date
mpostma 0f7625e29a bump dependencies 2021-09-13 15:17:08 +02:00
bors[bot] 971c361e0f
Merge #1682
1682: Change the format of custom ranking rules when importing old dumps r=curquiza a=Kerollmops

This PR changes the format of the custom ranking rules from `asc(price)` to `title:asc` as the format changed between v0.21 and v0.22. The dumps are now correctly importing the custom ranking rules.

This PR also change the previous default ranking rules (without sort) to the new default ranking rules (with the new sort).

Co-authored-by: Kerollmops <clement@meilisearch.com>
2021-09-08 16:20:10 +00:00
Kerollmops be50b2bec6
Change the format of custom ranking rules when importing v2 dumps 2021-09-08 17:56:21 +02:00
many 08138c7c23
Use set indexer options instead of create a default one 2021-09-08 13:40:00 +02:00
Kerollmops 331d28102f
Change the format of custom ranking rules when importing v1 dumps 2021-09-07 17:16:40 +02:00
Kerollmops ea4c831de0
Integrate the sortable-attributes into the settings 2021-08-25 17:39:25 +02:00
Alexey Shekhirin d9dd2a038b
refactor(http): use Setting enum 2021-08-25 17:43:46 +03:00
mpostma 8f05d8d546 fix clippy warnings 2021-08-05 16:00:47 +02:00
mpostma f5ddea481a reintroduce exactness 2021-08-05 15:59:39 +02:00
mpostma 29ca8271b3 test dumpv1 format regression 2021-08-05 15:59:39 +02:00
mpostma 3084537d1e restore attributes for faceting in dump v1 2021-08-05 15:59:39 +02:00
bors[bot] 7a0b20c740
Merge #1532
1532: Start writing documentation for newcomers r=MarinPostma a=irevoire



Co-authored-by: Tamo <tamo@meilisearch.com>
2021-08-03 09:26:45 +00:00
bors[bot] 09c74c04a0
Merge #1539
1539: Use serdeval for validating json format. r=curquiza a=MarinPostma

uses [serdeval](https://github.com/MarinPostma/serdeval) to validate that the json payload is valid json, and in the correct format.

fix #1535


Co-authored-by: mpostma <postma.marin@protonmail.com>
2021-07-29 17:05:13 +00:00
Clémentine Urquizar 1b5d918cb9
Fix rustfmt 2021-07-29 18:32:09 +02:00
Clémentine Urquizar bf76d4a43c
Make clippy happy 2021-07-29 18:14:36 +02:00
mpostma 53b4b2fcbc Use serdeval for validating json format. 2021-07-29 18:02:54 +02:00
Tamo 1a1046a0ef
start writing some documentation for newcomers 2021-07-27 16:35:42 +02:00
mpostma 066085f6f5 fix index deletion bug 2021-07-05 18:42:13 +02:00
mpostma bc85d30076
add test 2021-07-05 12:33:28 +02:00
mpostma bc417726fc
fix update loop bug 2021-07-05 12:33:22 +02:00
Kerollmops fa5f8f9531
Fix an issue with the update loop falsely breaking 2021-07-01 14:53:31 +02:00
Tamo a95c44193d
Do not block when sending update notifications 2021-06-30 17:29:22 +02:00
Tamo 29bf6a8d42
run rustfmt one the whole project and add it to the CI 2021-06-29 15:25:18 +02:00
Clémentine Urquizar c09e610bb5
Update heed and milli 2021-06-29 10:25:47 +02:00
bors[bot] b6ca7929eb
Merge #240
240: Rework error messages r=irevoire a=MarinPostma

Simplify the error messages, and make them more compliant with legacy Meilisearch.

Basically, stop composing the messages, and simply forward the message of inner errors.


Co-authored-by: marin postma <postma.marin@protonmail.com>
2021-06-24 11:36:11 +00:00
Tamo ad8d9a97d6
debug the body of every http request 2021-06-24 11:22:11 +02:00
Tamo b4fd4212ad
reduce the log level of some info! 2021-06-24 11:20:52 +02:00
marin postma a1d34faaad
decompose error messages 2021-06-24 10:57:28 +02:00
bors[bot] 8638c9ab77
Merge #232
232: Fix payload size limit r=MarinPostma a=MarinPostma

Fix #223

This was due to the fact that Payload ignores the limit payload size limit. I fixed it by implementing my own `Payload` extractor that checks that the size of the payload is not too large.

I also refactored the `create_app` a bit.

Co-authored-by: marin postma <postma.marin@protonmail.com>
2021-06-23 16:06:08 +00:00
marin postma f68c257452
move flush in write_to_file function 2021-06-23 16:49:25 +02:00
marin postma a838238a63
move payload to own module 2021-06-23 16:49:25 +02:00
marin postma 834995b130
clippy + fmt 2021-06-23 16:49:23 +02:00
marin postma b000ae7614
remove file if write to update file fails 2021-06-23 16:48:33 +02:00
marin postma f62779671b
change error message for payload size limit 2021-06-23 16:48:33 +02:00
marin postma 1c13100948
implement custom payload 2021-06-23 16:48:31 +02:00
marin postma da36a6b5cd
fix not found error 2021-06-23 15:06:36 +02:00
bors[bot] db7215eaa9
Merge #213
213: Implement all the CLI options r=MarinPostma a=irevoire

closes #206 
And I looked into #204, I fixed some default values and tried to test as many options as possible, and I think the cli is already mostly working.
If someone knows any issues about it, I would like to hear more 🙂 

Co-authored-by: Tamo <tamo@meilisearch.com>
2021-06-22 15:04:05 +00:00
bors[bot] 4b37a4a415
Merge #211 #218
211: fix index deletion race condition r=MarinPostma a=MarinPostma

Make update store block if the currently processing update is from an index we are trying to delete. This ensure that no write to the index can occur after it has been deleted.

218: Update milli version to v0.5.0 r=MarinPostma a=curquiza



Co-authored-by: marin postma <postma.marin@protonmail.com>
Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
2021-06-22 14:36:34 +00:00
marin postma caa231aebe
fix race condition 2021-06-22 16:09:07 +02:00
Clémentine Urquizar 2e3d85c31a
Update milli version to v0.5.0 2021-06-22 15:57:46 +02:00
marin postma 9092d35a3c
fix payload error handler 2021-06-21 21:51:38 +02:00
marin postma 2bdaa70f31
invalid update payload returns bad_request 2021-06-21 18:56:22 +02:00
marin postma 1e4592dd7e
enable errors in updates 2021-06-21 18:42:47 +02:00
Tamo 2097554c09
fix the cli 2021-06-21 16:34:49 +02:00
marin postma 56686dee40
review changes 2021-06-21 13:57:32 +02:00
marin postma fa573dabf0
fmt 2021-06-21 12:11:09 +02:00
marin postma abdf642d68
integrate milli errors 2021-06-21 12:11:08 +02:00
marin postma 0dfd1b74c8
fix tests 2021-06-21 12:11:08 +02:00
marin postma 0d3fb5ee0d
factorize internal error macro 2021-06-21 12:11:08 +02:00
marin postma 02277ec2cf
reintroduce anyhow 2021-06-21 12:11:06 +02:00