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

fix(filter): Fix two bugs. #433

Merged
merged 1 commit into from
Jan 17, 2022
Merged

fix(filter): Fix two bugs. #433

merged 1 commit into from
Jan 17, 2022

Conversation

irevoire
Copy link
Member

@irevoire irevoire commented Jan 17, 2022

  • Stop lowercasing the field when looking in the field id map
  • When a field id does not exist it means there is currently zero
    documents containing this field thus we return an empty RoaringBitmap
    instead of throwing an internal error

Will fix meilisearch/meilisearch#2082 once meilisearch is released

- Stop lowercasing the field when looking in the field id map
- When a field id does not exist it means there is currently zero
  documents containing this field thus we returns an empty RoaringBitmap
  instead of throwing an internal error
milli/src/search/facet/filter.rs Show resolved Hide resolved
milli/src/search/facet/filter.rs Show resolved Hide resolved
milli/src/search/facet/filter.rs Show resolved Hide resolved
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.

Thank you for the fix, it looks valid!
bors merge

@bors
Copy link
Contributor

bors bot commented Jan 17, 2022

@bors bors bot merged commit 8f44990 into main Jan 17, 2022
@bors bors bot deleted the double-bug branch January 17, 2022 14:18
@irevoire irevoire mentioned this pull request Jan 17, 2022
bors bot added a commit that referenced this pull request Jan 24, 2022
434: bump milli to v0.22.0 r=curquiza a=irevoire

This is breaking because of this PR:
98a365a

Should we do a special branch to only release the [patch](#433) for meilisearch/meilisearch#2082 (which is non-breaking)?

Co-authored-by: Tamo <tamo@meilisearch.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filterableAttributes does not support camel-case'd keys
2 participants