Commit Graph

9813 Commits

Author SHA1 Message Date
Clément Renault
b3776598d8
Add a test to check deletion of documents with number as primary key 2021-02-15 21:24:35 +01:00
Tommy
b28be43cc6 Remove bonjour email from readme.md
Remove email address from README to concentrate communications in visible locations.
2021-02-15 09:19:23 -05:00
Tommy
4a71861066 Revert link 2021-02-15 09:19:23 -05:00
Tommy
5f25703d44 Update README.md
Fix docs links, remove reference to Crisp chatbox
2021-02-15 09:19:23 -05:00
Clément Renault
5d0ac3e3e6
Merge pull request #81 from meilisearch/smart-workspace
Change the project to become a workspace
2021-02-14 19:02:00 +01:00
Clément Renault
fecf3d6fc1
Move the command lines helpers into different crates 2021-02-14 18:55:15 +01:00
Clément Renault
d8f3421608
Update the dependencies and remove the unused ones 2021-02-14 18:32:46 +01:00
mpostma
c317af58bc
implement delete document batches 2021-02-12 17:39:14 +01:00
Clément Renault
e8639517da
Change the project to become a workspace with milli as a default-member 2021-02-12 16:15:09 +01:00
mpostma
a8ba809656
implement clear all documents 2021-02-11 12:03:00 +01:00
mpostma
6766de437f
implement get document 2021-02-11 11:20:39 +01:00
marin
fa7379e129
Merge pull request #30 from meilisearch/update-index
implement update index
2021-02-11 11:03:25 +01:00
mpostma
9fb0d94fc3
add tests 2021-02-11 11:02:27 +01:00
mpostma
8fd9dc231c
implement retrieve all documents 2021-02-10 17:08:37 +01:00
mpostma
4ca46b9e5f
fix bug in error message 2021-02-09 14:32:28 +01:00
mpostma
90b930ed7f
implement update index
implement update index
2021-02-09 14:32:26 +01:00
marin
f44f8a823a
Merge pull request #27 from meilisearch/create-index
Implement create index
2021-02-09 14:26:59 +01:00
mpostma
e89b11b1fa
create IndexSetting struct
need to stabilize the create index trait interface
2021-02-09 11:41:26 +01:00
mpostma
e0976d10ba
Merge branch 'release-v0.19.0' into stable 2021-02-09 11:11:33 +01:00
mpostma
ea681026f7
fix snapshot temp file 2021-02-09 11:08:30 +01:00
bors[bot]
759f6b48ee
Merge #1233
1233: Fix link in launched resume r=Kerollmops a=curquiza



Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
2021-02-08 19:04:09 +00:00
mpostma
ec047eefd2
implement create index 2021-02-08 12:28:45 +01:00
Clémentine Urquizar
811426b161
Update main.rs 2021-02-06 15:53:40 +01:00
bors[bot]
b1d9ad7134
Merge #1224
1224: fix synonyms normalization r=MarinPostma a=LegendreM

Synonyms needs to be indexed in ascendant order,
and the new normalization step for synonyms potentially changes this order
which break the indexation process
because "Harry Potter" > "HP"  but "harry potter" < "hp"

Co-authored-by: many <maxime@meilisearch.com>
2021-02-04 15:37:33 +00:00
bors[bot]
e000e10e01
Merge #1229
1229: Fix links in CONTRIBUTING.md r=Kerollmops a=curquiza

Closes #1228 

Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
2021-02-04 15:00:26 +00:00
Clémentine Urquizar
8dea9662dc
Fix links in CONTRIBUTING.md 2021-02-04 15:56:06 +01:00
mpostma
ed44e684cc
review fixes 2021-02-04 15:28:52 +01:00
mpostma
f18e795124
fix rebase 2021-02-04 15:09:43 +01:00
mpostma
f1c09a54be
implement get index meta 2021-02-04 14:56:37 +01:00
mpostma
8d462afb79
add tests for list index and create index. 2021-02-04 14:56:36 +01:00
mpostma
f988306691
implement create index 2021-02-04 14:56:34 +01:00
mpostma
d43dc4824c
implement list indexes 2021-02-04 14:54:48 +01:00
marin
482f734e53
Merge pull request #24 from meilisearch/index-controller
Index controller
2021-02-04 14:51:21 +01:00
mpostma
f8f02af23e
incorporate review changes 2021-02-04 13:21:15 +01:00
bors[bot]
cb50781d2d
Merge #1222
1222: Ignore existing primary key r=Kerollmops a=MarinPostma

fixing bug in #1176 made it an hard error to try to re-set the primary key on a document addition. This PR makes Meilisearch ignore a primary key passed as an argument to a document addition. This has been decided after a discussion with @curquiza, in order to make the bug fix non breaking.

Turns out it was a good catch too, since contrary to what I thought the error was not caught asynchronously, thank you @curquiza 

Co-authored-by: mpostma <postma.marin@protonmail.com>
2021-02-04 08:08:09 +00:00
many
1df0fdf3e2
fix synonyms normalization
Synonyms needs to be indexed in ascendant order,
and the new normalization step for synonyms potentially changes this order
which break the indexation process
because "Harry Potter" > "HP"  but "harry potter" < "hp"
2021-02-03 15:21:06 +01:00
mpostma
a95a18afe4
ignore primary key if it is already set 2021-02-03 11:59:29 +01:00
mpostma
9af0a08122
post review fixes 2021-02-02 17:34:06 +01:00
Clément Renault
d450b971f9
Merge pull request #78 from meilisearch/required-changes-for-transplant
Changes for transplant
2021-02-02 16:22:09 +01:00
bors[bot]
69c91d2b56
Merge #1218
1218: bump meilisearch version 0.19.0 r=LegendreM a=MarinPostma



Co-authored-by: mpostma <postma.marin@protonmail.com>
2021-02-02 13:45:28 +00:00
mpostma
97ba5e97c6
update changelog 2021-02-02 14:32:04 +01:00
mpostma
8760beed1c
bump meilisearch 2021-02-02 14:23:33 +01:00
bors[bot]
15464e57af
Merge #1172
1172: Fix atomic snapshot creation r=MarinPostma a=raszi

Compress gzip files to a temporary file first and then do an atomic rename.

In our setup we have an indexer which does snapshoting for the instances serving the requests. Since currently the snapshoting mechanism is replacing the file in place therefore the indexer could not share the snapshot with a live instance. 

With this small patch we first create a new temporary file in the same directory as the snapshot dir and then we do an atomic rename therefore the snapshot path would always contain a valid snapshot.
After applying this change it would be enough to simply restart the serving instances to pick up the new snapshot from a shared storage without worrying them to die because of an incomplete snapshot.

Co-authored-by: KARASZI István <ikaraszi@gmail.com>
2021-02-02 12:37:33 +00:00
bors[bot]
c984fa1071
Merge #1176
1176: fix race condition in  document addition r=Kerollmops a=MarinPostma

As described in #1160, there was a race condition when updating settings and adding documents simultaneously. This was due to the schema being updated and document addition being processed in two different transactions. This PR moves the schema update logic for the primary key in the same transaction as the document addition, while maintaining the input checks for the validity of the primary key in the http route, in order not to break the error reporting for the document addition route.

close #1160.

Co-authored-by: mpostma <postma.marin@protonmail.com>
Co-authored-by: marin <postma.marin@protonmail.com>
2021-02-02 09:26:32 +00:00
mpostma
8f43698a60
fix httpui 2021-02-01 19:49:51 +01:00
mpostma
3b60432687
Use update_id in UpdateBuilder
Add `the update_id` to the to the updates. The rationale is the
following:
- It allows for better tracability of the update events, thus improved
  debugging and logging.
- The enigne is now aware of what he's already processed, and can return
  it if asked. It may not make sense now, but in the future, the update
  store may not work the same way, and this information about the state
  of the engine will be desirable (distributed environement).
2021-02-01 19:46:34 +01:00
mpostma
d487791b03
derive serde for method and format
This is nicer when working with UpdateMeta struct
2021-02-01 19:46:34 +01:00
mpostma
91d8198d17
return documents number on addition 2021-02-01 19:42:10 +01:00
mpostma
97f35de41f
fix flaky test 2021-02-01 18:59:22 +01:00
Clément Renault
fa0cc2dc13
Merge pull request #66 from meilisearch/show-available-facets
Expose an API to compute facets distribution
2021-02-01 18:39:45 +01:00