Commit Graph

3464 Commits

Author SHA1 Message Date
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
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
97f35de41f
fix flaky test 2021-02-01 18:59:22 +01:00
bors[bot]
81e9fd8933
Merge #1184
1184: normalize synonyms during indexation r=MarinPostma a=LegendreM

fix #1135 #964

Normalizes the synonyms before indexing them, so they are not case sensitive anymore. Then normalization also involves deunicoding is some cases, such as accents, so `été` and `ete` are considered equivalent in a search for synonyms.

Co-authored-by: many <maxime@meilisearch.com>
Co-authored-by: Many <legendre.maxime.isn@gmail.com>
2021-02-01 14:12:57 +00:00
mpostma
17c463ca61
remove unused deps 2021-02-01 13:32:21 +01:00
KARASZI István
f0ca193122 Merge branch 'master' into atomic-rename 2021-02-01 13:30:51 +01:00
Many
940f83698c
Update meilisearch-core/src/update/settings_update.rs
Co-authored-by: marin <postma.marin@protonmail.com>
2021-02-01 12:06:48 +01:00
mpostma
ccb7104dee
add tests for IndexStore 2021-01-29 19:14:23 +01:00
mpostma
da056a6877
comment tests out 2021-01-28 20:55:29 +01:00
mpostma
e9c95f6623
remove useless files 2021-01-28 19:43:54 +01:00
bors[bot]
f37a420a04
Merge #1174
1174: Limit query words number r=MarinPostma a=MarinPostma

This pr adds a limit to the number of words taken into account in a search query. Using query string that are too long leads to huge performance hits and ressources consumtion, that occasionally crashes the machine. The limit has been hard set to 10, and tests have been added to make sure that it is taken into account.

close #941

Co-authored-by: mpostma <postma.marin@protonmail.com>
2021-01-28 17:38:34 +00:00
mpostma
6c63ee6798
implement list all indexes 2021-01-28 18:32:24 +01:00
mpostma
60371b9dcf
get update id 2021-01-28 17:20:51 +01:00
mpostma
4119ae8655
setttings update 2021-01-28 16:57:53 +01:00
mpostma
8183202868
documetn addition and search 2021-01-28 15:14:48 +01:00
mpostma
74410d8c6b
architecture rework 2021-01-28 14:12:34 +01:00
bors[bot]
c1808513fe
Merge #1211
1211: update tokenizer to v0.1.3 r=MarinPostma a=LegendreM

fix #1188

Co-authored-by: many <maxime@meilisearch.com>
2021-01-28 09:50:38 +00:00
many
eeccdce33a
update tokenizer to v0.1.3 2021-01-28 10:33:44 +01:00