ManyTheFish
40c5f911fd
Revert metadata creation when computing the facet-distribution
2025-03-10 17:05:41 +01:00
ManyTheFish
abef655849
Revert metadata creation when computing facet search and distinct
2025-03-10 15:45:59 +01:00
ManyTheFish
c9a4c6ed96
REvert metadata creation when computing filters at search time
2025-03-10 14:29:44 +01:00
ManyTheFish
67f7470c83
Apply PR requests related to Refactor search and facet-search
2025-03-05 18:17:42 +01:00
ManyTheFish
63e753bde0
Apply PR requests related to settings API
2025-03-05 12:05:40 +01:00
ManyTheFish
5fa4b5c50a
Add a test on filterable attributes rules priority
...
**Changes:**
- Add a new test playing with filterable attributes rules priority
- Optimize the faceted field selector avoiding to match false positives
2025-03-05 09:44:52 +01:00
ManyTheFish
f2a28a4dd7
Add and enhance tests
...
**Changes:**
Introduce a test_settings_documents_indexing_swapping_and_search function that run the test twice:
1) by indexing the settings before the documents then running the test
2) by indexing the documents before the settings then running the test
This helps to ensure that their is no bug coming from one or the other indexer.
2025-03-03 10:33:39 +01:00
ManyTheFish
6dbec91d2b
Index document in filterable attributes tests
...
**Reason:**
Because the filterable attributes are patterns now,
the fieldIdMap will only register the fields that exists in at least one document.
if a field doesn't exist in any document, it will not be registered even if it has been specified in the filterable fields.
2025-03-03 10:33:39 +01:00
ManyTheFish
15788773af
Check the exact_word database when computing zero typo query
2025-02-26 17:01:22 +01:00
Louis Dureuil
b21b8e8f30
Remote search tests
2025-02-05 15:03:33 +01:00
Louis Dureuil
4a9e5ae215
mv multi.rs -> multi/mod.rs
2025-02-05 15:03:33 +01:00
Kerollmops
4d4683adb6
Add a test to check the facet casing is good
2025-01-22 15:50:42 +01:00
Louis Dureuil
c32bec338f
Fix tests
2025-01-14 13:55:33 +01:00
meili-bors[bot]
e568dbbabb
Merge #5182
...
5182: Remove hard coded task ids to prevent flaky tests r=irevoire a=mhmoudr
# Pull Request
## Related issue
Fixes partial #4840
## What does this PR do?
- Mainly scan the test code for any hard coded task Id and replace it by the returned task Id once the action or task is performed on an index.
- PS: _PR is not split by files as it has one theme applied to all tests which make it easy to review_
## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?
Thank you so much for contributing to Meilisearch!
Co-authored-by: Mahmoud Rawas <mhmoudr@gmail.com>
Co-authored-by: Tamo <tamo@meilisearch.com>
2025-01-13 15:18:55 +00:00
Mahmoud Rawas
c6f14279d7
remove unused imports.
2025-01-08 15:11:34 +11:00
Tamo
dd128656cb
fix all the tests
2025-01-07 16:28:12 +01:00
Mahmoud Rawas
98e3ecb86b
Format fixes after running: cargo +nightly fmt
2025-01-07 11:16:37 +11:00
Mahmoud Rawas
d7cb319217
#4840 - Partial fix - Confirm task success after waiting for it - continued, few missing cases - batch 2
2024-12-24 23:07:43 +11:00
Mahmoud Rawas
15062e7dba
#4840 - Partial fix - Confirm task success after waiting for it - continued, few missing cases.
2024-12-24 23:06:07 +11:00
Mahmoud Rawas
bf19f86e38
#4840 - Partial fix - Confirm task success after waiting for it.
2024-12-24 23:06:07 +11:00
Mahmoud Rawas
91c7ef8723
#4840 - Partial fix - Remove hard coded task ids to prevent flaky tests.
...
# Conflicts:
# crates/meilisearch/tests/documents/add_documents.rs
# crates/meilisearch/tests/search/facet_search.rs
# crates/meilisearch/tests/settings/get_settings.rs
# crates/meilisearch/tests/snapshot/mod.rs
2024-12-24 23:05:59 +11:00
ManyTheFish
18ce95dcbf
Add test reproducing the bug
2024-12-12 14:56:45 +01:00
airycanon
b75f1f4c17
fix tests
...
# Conflicts:
# crates/index-scheduler/src/batch.rs
# crates/index-scheduler/src/snapshots/lib.rs/fail_in_process_batch_for_document_deletion/after_removing_the_documents.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_bad_primary_key/fifth_task_succeeds.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_bad_primary_key/fourth_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_multiple_primary_key/second_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_multiple_primary_key/third_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_multiple_primary_key_batch_wrong_key/second_and_third_tasks_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_set_and_null_primary_key_inference_works/all_other_tasks_succeeds.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_set_and_null_primary_key_inference_works/second_task_fails.snap
# crates/index-scheduler/src/snapshots/lib.rs/test_document_addition_with_set_and_null_primary_key_inference_works/third_task_succeeds.snap
# Conflicts:
# crates/index-scheduler/src/batch.rs
# crates/meilisearch/src/search/mod.rs
# crates/meilisearch/tests/vector/mod.rs
# Conflicts:
# crates/index-scheduler/src/batch.rs
2024-12-06 02:03:02 +08:00
ManyTheFish
a0a3b55700
Change error code
2024-12-05 14:48:29 +01:00
ManyTheFish
fc1df5793c
fix tests
2024-12-04 14:35:20 +01:00
ManyTheFish
953a82ca04
Add new error message
2024-12-04 11:15:29 +01:00
meili-bors[bot]
d0b2c0a523
Merge #5091
...
5091: Settings opt out r=Kerollmops a=ManyTheFish
# Pull Request
Related PRD: https://www.notion.so/meilisearch/API-usage-Settings-to-opt-out-indexing-features-fff4b06b651f8108ade3f858aeb16b14?pvs=4
## Related issue
Fixes #4979
- [x] Add setting opt-out
- [x] Add analytics
- [x] Add tests
Co-authored-by: ManyTheFish <many@meilisearch.com>
Co-authored-by: Many the fish <many@meilisearch.com>
2024-11-26 15:50:28 +00:00
ManyTheFish
2e896f30a5
Fix PR comments
2024-11-26 16:06:33 +01:00
meili-bors[bot]
e241f91285
Merge #5062
...
5062: Fix bugs for v1.12 r=Kerollmops a=ManyTheFish
# Pull Request
## Related issue
Fixes #4984
Fixes https://github.com/meilisearch/meilisearch/issues/4974
Fixes [SDK test](https://github.com/meilisearch/meilisearch/actions/runs/11886701996/job/33118278794 )
## What does this PR do?
- add 3 tests
- fix bugs
Co-authored-by: ManyTheFish <many@meilisearch.com>
2024-11-26 08:10:50 +00:00
ManyTheFish
d66dc363ed
Test and implement settings opt-out
2024-11-25 18:23:22 +01:00
Louis Dureuil
6e6acfcf1b
Merge branch 'main' into indexer-edition-2024
2024-11-20 16:59:58 +01:00
ManyTheFish
4d616f8794
Parse every attributes and filter before tokenization
2024-11-20 15:15:25 +01:00
ManyTheFish
35bbe1c2a2
Add failing test on settings changes
2024-11-20 14:48:12 +01:00
Tamo
6062914654
add the batch_id to the tasks
2024-11-20 10:42:54 +01:00
Lukas Kalbertodt
057fcb3993
Add indices
field to _matchesPosition
to specify where in an array a match comes from ( #5005 )
...
* Remove unreachable code
* Add `indices` field to `MatchBounds`
For matches inside arrays, this field holds the indices of the array
elements that matched. For example, searching for `cat` inside
`{ "a": ["dog", "cat", "fox"] }` would return `indices: [1]`. For nested
arrays, this contains multiple indices, starting with the one for the
top-most array. For matches in fields without arrays, `indices` is not
serialized (does not exist) to save space.
2024-11-20 01:00:43 +01:00
ManyTheFish
8924d486db
Add a test reproducing the bug
2024-11-18 16:08:55 +01:00
ManyTheFish
e0c3f3d560
Fix #4984
2024-11-18 16:08:53 +01:00
Louis Dureuil
9150c8f052
Accept changes to vector format
2024-11-18 11:04:57 +01:00
ManyTheFish
72ba353498
reproduce sdk fail
2024-11-18 10:03:23 +01:00
ManyTheFish
0dd321afc7
reproduce #4984
2024-11-14 10:02:51 +01:00
Clément Renault
8e5b1a3ec1
Compute the field distribution and convert _geo into an f64s
2024-11-13 17:44:05 +01:00
Louis Dureuil
82dcaba6ca
Fix test: somehow on main vectors where displayed even though retrieveVectors: false
2024-11-12 23:58:25 +01:00
Louis Dureuil
e32677999f
Adapt some snapshots
2024-11-08 00:06:33 +01:00
PedroTurik
03886d0012
Applies optimizations to formatted integration tests ( #5043 )
2024-11-07 15:58:55 +01:00
Tamo
cf6ad1ae5e
Merge branch 'main' into tmp-release-v1.11.0
2024-11-04 16:14:44 +01:00
Clément Renault
9c1e54a2c8
Move crates under a sub folder to clean up the code
2024-10-21 08:18:43 +02:00