Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter x != string does not select documents which have a field x containing a number #2516

Closed
loiclec opened this issue Jun 14, 2022 · 0 comments · Fixed by #2636
Closed
Labels
bug Something isn't working as expected enhancement New feature or improvement milli Related to the milli workspace v0.29.0 PRs/issues solved in v0.29.0 released on 2022-10-03
Milestone

Comments

@loiclec
Copy link
Contributor

loiclec commented Jun 14, 2022

After adding the following documents:

{
	"id": 1,
	"colour": ["blue", "green"]
},
{
	"id": 2,
	"colour": 145238
},

The filter:

colour != blue

does not return any documents. But it should return the document with id = 2

Screenshots
Screenshot 2022-06-14 at 16 48 00

Meilisearch version: 0.27

@curquiza curquiza added this to the v0.29.0 milestone Jun 14, 2022
@curquiza curquiza added the enhancement New feature or improvement label Jun 14, 2022
@irevoire irevoire added the bug Something isn't working as expected label Jun 15, 2022
bors bot added a commit to meilisearch/milli that referenced this issue Jun 28, 2022
568: Fix not equal filter when field contains both number and strings r=Kerollmops a=GraDKh

Related to meilisearch/meilisearch#2516
Looks like the issue should be moved to this repo, but I'm not sure what the right procedure for it.

Co-authored-by: Dmytro Gordon <dmytro@bigstream.co>
@curquiza curquiza added the milli Related to the milli workspace label Jun 28, 2022
loiclec pushed a commit to meilisearch/milli that referenced this issue Jul 4, 2022
568: Fix not equal filter when field contains both number and strings r=Kerollmops a=GraDKh

Related to meilisearch/meilisearch#2516
Looks like the issue should be moved to this repo, but I'm not sure what the right procedure for it.

Co-authored-by: Dmytro Gordon <dmytro@bigstream.co>
@loiclec loiclec closed this as completed Jul 21, 2022
@loiclec loiclec reopened this Jul 21, 2022
@bors bors bot closed this as completed in #2636 Aug 23, 2022
@bors bors bot closed this as completed in c445334 Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected enhancement New feature or improvement milli Related to the milli workspace v0.29.0 PRs/issues solved in v0.29.0 released on 2022-10-03
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants