Tamo
74d1a67a99
Use the workspace inheritance feature of rust 1.64
2023-02-15 13:51:07 +01:00
Tamo
1b005f697d
update the syntax of the geoboundingbox filter to uses brackets instead of parens around lat and lng
2023-02-06 16:50:27 +01:00
Tamo
d27007005e
comments the geoboundingbox + forbid the usage of the lexeme method which could introduce bugs
2023-02-06 11:36:49 +01:00
Louis Dureuil
ae8660e585
Add Token::original_span rather than making Token::span pub
2023-02-02 15:03:34 +01:00
Guillaume Mourier
d80ce00623
Update insta test
2023-02-02 12:34:51 +01:00
Guillaume Mourier
2d66fdc8e9
Apply review comments
2023-02-02 12:34:51 +01:00
Guillaume Mourier
b297b5deb0
cargo fmt
2023-02-02 12:34:49 +01:00
Guillaume Mourier
b2054d3f6c
Add insta test on geo filters whitespacing
2023-02-02 12:27:58 +01:00
Guillaume Mourier
426d63b01b
Update insta test suite
2023-02-02 12:27:56 +01:00
Guillaume Mourier
b078477d80
Add error handling and earth lap collision with bounding box
2023-02-02 12:17:38 +01:00
Guillaume Mourier
5c525168a0
Add _geoBoundingBox parser
2023-02-02 11:57:21 +01:00
Clément Renault
1b78231e18
Make clippy happy
2023-01-17 18:25:54 +01:00
Kerollmops
97005dd505
Bump the milli-imported crates to v1.0.0
2023-01-16 16:29:12 +01:00
curquiza
9e32ac7cb2
Update version for the next release (v0.39.0) in Cargo.toml files
2023-01-11 15:05:06 +00:00
curquiza
c72535531b
Update version for the next release (v0.38.0) in Cargo.toml files
2022-12-19 16:35:38 +00:00
Tamo
2c47500bc3
fix two nightly errors
2022-12-13 15:29:52 +01:00
Gregory Conrad
1b5b5778c1
feat: Add From<&str> implementation for Token
2022-12-03 13:13:41 -05:00
curquiza
cd5aaa3a9f
Update version for the next release (v0.37.0) in Cargo.toml files
2022-11-17 12:50:07 +00:00
Kerollmops
d00d2aab3f
Update version for the next release (v0.36.0) in Cargo.toml files
2022-11-09 11:03:09 +00:00
Kerollmops
bd12989610
Update version for the next release (v0.35.1) in Cargo.toml files
2022-11-08 14:31:39 +00:00
Louis Dureuil
3328560788
fix: allow filters on = inf, = NaN, return InvalidFilter for < inf, < NaN
...
Fixes meilisearch/meilisearch#3000
2022-11-08 13:27:15 +01:00
bors[bot]
6add470805
Merge #659
...
659: Fix clippy error to add clippy job on Ci r=Kerollmops a=unvalley
## Related PR
This PR is for #673
## What does this PR do?
- ~~add `Run Clippy` job to CI (rust.yml)~~
- apply `cargo clippy --fix` command
- fix some `cargo clippy` error manually (but warnings still remain on tests)
## 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?
Co-authored-by: unvalley <kirohi.code@gmail.com>
Co-authored-by: unvalley <38400669+unvalley@users.noreply.github.com>
2022-11-03 15:24:38 +00:00
unvalley
0d43ddbd85
Update filter-parser/src/lib.rs
...
Co-authored-by: Tamo <irevoire@protonmail.ch>
2022-11-01 01:32:54 +09:00
Pranav Yadav
3950ec8d3c
chore: update tests for invalid_filter
msg
2022-10-31 15:41:49 +00:00
Pranav Yadav
3b35ebda50
chore: added IN
,NOT IN
to invalid_filter
msg
2022-10-31 15:01:14 +00:00
unvalley
f4ec1abb9b
Fix all clippy error after conflicts
2022-10-27 23:58:13 +09:00
unvalley
c7322f704c
Fix cargo clippy errors
...
Dont apply clippy for tests for now
Fix clippy warnings of filter-parser package
parent 8352febd646ec4bcf56a44161e5c4dce0e55111f
author unvalley <38400669+unvalley@users.noreply.github.com> 1666325847 +0900
committer unvalley <kirohi.code@gmail.com> 1666791316 +0900
Update .github/workflows/rust.yml
Co-authored-by: Clémentine Urquizar - curqui <clementine@meilisearch.com>
Allow clippy lint too_many_argments
Allow clippy lint needless_collect
Allow clippy lint too_many_arguments and type_complexity
Fix for clippy warnings comparison_chains
Fix for clippy warnings vec_init_then_push
Allow clippy lint should_implement_trait
Allow clippy lint drop_non_drop
Fix lifetime clipy warnings in filter-paprser
Execute cargo fmt
Fix clippy remaining warnings
Fix clippy remaining warnings again and allow lint on each place
2022-10-27 01:04:23 +09:00
curquiza
e883bccc76
Update version for the next release (v0.35.0) in Cargo.toml files
2022-10-26 11:43:54 +00:00
curquiza
f3874d58b9
Update version for the next release (v0.34.0) in Cargo.toml files
2022-10-24 10:13:25 +00:00
Loïc Lecrenier
4c481a8947
Upgrade all dependencies
2022-10-17 13:05:56 +02:00
curquiza
753e76d451
Update version for the next release (v0.33.4) in Cargo.toml files
2022-09-13 13:55:50 +00:00
curquiza
077dcd2002
Update version for the next release (v0.33.3) in Cargo.toml files
2022-09-07 15:48:53 +00:00
ManyTheFish
97a04887a3
Update version for next release (v0.33.2) in Cargo.toml
2022-09-01 11:47:23 +02:00
Clémentine Urquizar
c3363706c5
Update version for next release (v0.33.1) in Cargo.toml
2022-08-31 11:37:27 +02:00
Clémentine Urquizar
9ed7324995
Update version for next release (v0.33.0)
2022-08-23 11:47:48 +02:00
Loïc Lecrenier
c7a86b56ef
Fix filter parser compilation error
2022-08-18 13:16:56 +02:00
Loïc Lecrenier
8a271223a9
Change a macro_rules to a function in filter parser
2022-08-18 13:03:55 +02:00
Loïc Lecrenier
dd34dbaca5
Add more filter parser tests
2022-08-18 11:55:01 +02:00
Loïc Lecrenier
5d74ebd5e5
Cargo fmt
2022-08-18 11:36:38 +02:00
Loïc Lecrenier
9af69c151b
Limit the maximum depth of filters
...
This should have no impact on the user but is there to safeguard
meilisearch against malicious inputs.
2022-08-18 11:31:38 +02:00
Loïc Lecrenier
98f0da6b38
Simplify representation of nested NOT filters
2022-08-18 10:58:24 +02:00
Loïc Lecrenier
b030efdc83
Fix parsing of IN[] filter followed by whitespace + factorise its impl
2022-08-18 10:58:04 +02:00
Loïc Lecrenier
497f9817a2
Use snapshot testing for the filter parser
2022-08-17 17:35:01 +02:00
Loïc Lecrenier
238a7be58d
Fix filter parser handling of keywords and surrounding spaces
...
Now the following fragments are allowed:
AND(field =
AND'field' =
AND"field" =
2022-08-17 16:53:40 +02:00
Loïc Lecrenier
b09a8f1b91
Filters: add explicit error message when using a keyword as value
2022-08-17 16:07:00 +02:00
Loïc Lecrenier
196f79115a
Run cargo fmt
2022-08-17 12:28:33 +02:00
Loïc Lecrenier
4ecfb95d0c
Improve syntax errors for IN
filter
2022-08-17 12:28:33 +02:00
Loïc Lecrenier
2fd20fadfc
Implement the NOT IN syntax for negated IN filter
2022-08-17 12:28:33 +02:00
Loïc Lecrenier
ca97cb0eda
Implement the IN filter operator
2022-08-17 12:28:33 +02:00
Loïc Lecrenier
90a304cb07
Fix tests after simplification of NOT filter
2022-08-17 12:28:33 +02:00