Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix escaped quotes in filter #552

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Fix escaped quotes in filter #552

merged 2 commits into from
Jun 9, 2022

Conversation

irevoire
Copy link
Member

@irevoire irevoire commented Jun 9, 2022

Will fix meilisearch/meilisearch#2380

The issue was that in the evaluation of the filter, I was using the deref implementation instead of calling the value method of my token.

To avoid the problem happening again, I removed the deref implementation; now, you need to either call the lexeme or the value methods but can't rely on a « default » implementation to get a string out of a token.

@irevoire irevoire added the no breaking The related changes are not breaking (DB nor API) label Jun 9, 2022
@curquiza
Copy link
Member

curquiza commented Jun 9, 2022

Can you please update the version of milli so that we can release it immediately? 😇

Kerollmops
Kerollmops previously approved these changes Jun 9, 2022
Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see this bug fixed! Thank you!
bors merge

@Kerollmops
Copy link
Member

bors merge-

1 similar comment
@curquiza
Copy link
Member

curquiza commented Jun 9, 2022

bors merge-

@bors
Copy link
Contributor

bors bot commented Jun 9, 2022

Canceled.

Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 9, 2022

@bors bors bot merged commit f1d848b into main Jun 9, 2022
@bors bors bot deleted the fix-escaped-quote-in-filter branch June 9, 2022 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no breaking The related changes are not breaking (DB nor API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't filter on documents with double or/and simple quote
3 participants