Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Conversation

@irevoire
Copy link
Contributor

@irevoire irevoire commented Mar 9, 2023

Summary

Add support for the boolean type in csv

e.g isActive:boolean as the column name:type to interpret true/false values as boolean and not string

Associated issue: meilisearch/meilisearch#3572
Implemented in: meilisearch/meilisearch#3576

@irevoire irevoire requested a review from gmourier March 9, 2023 12:13
@gmourier gmourier changed the title Add support for the boolean type in csv CSV Content-Type — Add support for the boolean type in CSV Mar 10, 2023
@gmourier gmourier mentioned this pull request Mar 10, 2023
1 task
@gmourier gmourier added Ready For Review Feature specification must be reviewed. v1.2.0 labels Mar 10, 2023
Copy link
Member

@gmourier gmourier 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 @irevoire 💯 ❤️

@gmourier gmourier force-pushed the support-the-boolean-type branch from cb61af9 to 139cb32 Compare April 3, 2023 14:34
@gmourier gmourier force-pushed the support-the-boolean-type branch from 139cb32 to ec028fc Compare May 2, 2023 07:15
Copy link
Member

@gmourier gmourier 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 @irevoire

@gmourier gmourier requested a review from curquiza May 2, 2023 07:21
@gmourier gmourier added Implemented Feature specification has been implemented. and removed Ready For Review Feature specification must be reviewed. labels May 2, 2023

- If a field is of type `string`, then an empty cell is considered as a `null` value (e.g. `,,`), anything else is turned into a string value (e.g. `, ,` is a single whitespace string)
- If a field is of type `number`, when the trimmed field is empty, it's considered as a `null` value (e.g. `,,` `, ,`); otherwise Meilisearch try to parse the number.
- If a field is of type `number`, when the trimmed field is empty, it's considered as a `null` value (e.g. `,,` `, ,`); otherwise, Meilisearch tries to parse the number.
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean by "trimmed field" here?

Copy link
Member

Choose a reason for hiding this comment

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

Functions to remove space characters on both ends of a string are most of the time called .trim()

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@macraig macraig merged commit 0117120 into release-v1.2.0 Jun 5, 2023
@macraig macraig deleted the support-the-boolean-type branch June 5, 2023 15:42
macraig pushed a commit that referenced this pull request Jun 5, 2023
* Bump OpenAPI version

* CSV Content-Type — Add support for the boolean type in CSV (#228)

* add support for the boolean type in csv

* fix a typo

* Update text/0028-indexing-csv.md

---------

Co-authored-by: Guillaume Mourier <[email protected]>

* Filter operators - `IS NULL` and `IS EMPTY` filter operators (#232)

* Introduce the spec of the IS EMPTY filter

* Introduce the spec of the IS NULL filter

* Fix suggestions

* Uppercase the IN operator

Co-authored-by: Guillaume Mourier <[email protected]>

* Fix a title number issue

Co-authored-by: Guillaume Mourier <[email protected]>

---------

Co-authored-by: Guillaume Mourier <[email protected]>

* Search Algorithms Refactor: Relevancy Changes (#233)

* Remove old exactness-criterion specification

* Remove old asc-desc-criterion specification

* Get and delete documents by filter (#236)

* specify the new fetch documents route

* update open-api

* try to be nice with bumpsh

* specify the new analytics of the get/fetch documents route

* group the analytics behind already used groups

* fix a placeholder text

* group the get and fetch route under a common section

* rename the section to contain the name of both routes

* clarify how to send the parameter to both routes

* fix the type of the parameters

* add the new fetch route to the api keys actions

* capitalize json

Co-authored-by: cvermand <[email protected]>

* update open-api

* Specify the new route to delete documents by filter

* add the new analytics event

* improve a comment

* add the post - delete route to the api key actions

* Fix the json payload

Co-authored-by: cvermand <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guillaume Mourier <[email protected]>

* Update the details

Co-authored-by: Guillaume Mourier <[email protected]>

* delete the invalid_document_delete_filter error code and introduce the missing_document_filter

* fix the open-api thingy

---------

Co-authored-by: cvermand <[email protected]>
Co-authored-by: Guillaume Mourier <[email protected]>

* Auto deletion of tasks (#238)

* auto deletion of tasks

* Update text/0060-tasks-api.md

Co-authored-by: gui machiavelli <[email protected]>

* Update text/0060-tasks-api.md

Co-authored-by: gui machiavelli <[email protected]>

---------

Co-authored-by: gui machiavelli <[email protected]>

* Experimental reduce indexing memory usage (#239)

* Add the experimental-reduce-indexing-memory-usage option in the telemetry policies

* Add the experimental-reduce-indexing-memory-usage option in the instance options

* Update 0055-sort.md (#240)

related to meilisearch/meilisearch#3749

* Update `payload_too_large` error `message` (#241)

* Update 0061-error-format-and-definitions.md

Update error message in the specification

* Update open-api.yaml

---------

Co-authored-by: Tamo <[email protected]>
Co-authored-by: Clément Renault <[email protected]>
Co-authored-by: cvermand <[email protected]>
Co-authored-by: gui machiavelli <[email protected]>
Co-authored-by: Many the fish <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Implemented Feature specification has been implemented. Q2:2023 v1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants