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

Transfer numbers and strings facets into the appropriate facet databases #184

Merged
merged 14 commits into from
May 31, 2021

Conversation

Kerollmops
Copy link
Member

@Kerollmops Kerollmops commented May 3, 2021

This pull request is related to #152 and changes the layout of the facets values, numbers and strings are now in dedicated databases and the user no more needs to define the type of the fields. No more conversion between the two types is done, numbers (floats and integers converted to f64) go to the facet float database and strings go to the strings facet database.

There is one related issue that I found regarding CSVs, the values in a CSV are always considered to be strings, meilisearch/specifications#28 fixes this issue by allowing the user to define the fields types using : in the "CSV Formatting Rules" section.

All previous tests on facets have been modified to pass again and I have also done hand-driven tests with the 115m songs dataset. Everything seems to be good!

Fixes #192.

@Kerollmops Kerollmops mentioned this pull request May 7, 2021
@Kerollmops Kerollmops marked this pull request as ready for review May 25, 2021 09:27
@Kerollmops Kerollmops requested review from ManyTheFish and MarinPostma and removed request for ManyTheFish May 25, 2021 09:27
@Kerollmops
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request May 25, 2021
@bors
Copy link
Contributor

bors bot commented May 25, 2021

try

Build succeeded:

milli/src/update/index_documents/store.rs Outdated Show resolved Hide resolved
milli/src/update/facets.rs Outdated Show resolved Hide resolved
milli/src/search/facet/facet_condition.rs Outdated Show resolved Hide resolved
@Kerollmops
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request May 31, 2021
@bors
Copy link
Contributor

bors bot commented May 31, 2021

try

Build succeeded:

@Kerollmops
Copy link
Member Author

bors merge

@bors
Copy link
Contributor

bors bot commented May 31, 2021

Build succeeded:

@bors bors bot merged commit 2f5e61b into main May 31, 2021
@bors bors bot deleted the split-facet-databases branch May 31, 2021 13:36
@curquiza curquiza added the DB breaking The related changes break the DB label Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DB breaking The related changes break the DB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug with filter syntax
3 participants