mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-11 15:38:55 +01:00
1e9ac00800
3505: Csv delimiter r=irevoire a=irevoire Fixes https://github.com/meilisearch/meilisearch/issues/3442 Closes https://github.com/meilisearch/meilisearch/pull/2803 Specified in https://github.com/meilisearch/specifications/pull/221 This PR is a reimplementation of https://github.com/meilisearch/meilisearch/pull/2803, on the new engine. Thanks for your idea and initial PR `@MixusMinimax;` sorry I couldn’t update/merge your PR. Way too many changes happened on the engine in the meantime. **Attention to reviewer**; I had to update deserr to implement the support of deserializing `char`s ------- It introduces four new error messages; - Invalid value in parameter csvDelimiter: expected a string of one character, but found an empty string - Invalid value in parameter csvDelimiter: expected a string of one character, but found the following string of 5 characters: doggo - csv delimiter must be an ascii character. Found: 🍰 - The Content-Type application/json does not support the use of a csv delimiter. The csv delimiter can only be used with the Content-Type text/csv. And one error code; - `invalid_index_csv_delimiter` The `invalid_content_type` error code is now also used when we encounter the `csvDelimiter` query parameter with a non-csv content type. Co-authored-by: Tamo <tamo@meilisearch.com>
53 lines
1.3 KiB
TOML
53 lines
1.3 KiB
TOML
[package]
|
|
name = "meilisearch-types"
|
|
publish = false
|
|
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
description.workspace = true
|
|
homepage.workspace = true
|
|
readme.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
actix-web = { version = "4.2.1", default-features = false }
|
|
anyhow = "1.0.65"
|
|
convert_case = "0.6.0"
|
|
csv = "1.1.6"
|
|
deserr = "0.5.0"
|
|
either = { version = "1.6.1", features = ["serde"] }
|
|
enum-iterator = "1.1.3"
|
|
file-store = { path = "../file-store" }
|
|
flate2 = "1.0.24"
|
|
fst = "0.4.7"
|
|
memmap2 = "0.5.7"
|
|
milli = { path = "../milli", default-features = false }
|
|
roaring = { version = "0.10.0", features = ["serde"] }
|
|
serde = { version = "1.0.145", features = ["derive"] }
|
|
serde-cs = "0.2.4"
|
|
serde_json = "1.0.85"
|
|
tar = "0.4.38"
|
|
tempfile = "3.3.0"
|
|
thiserror = "1.0.30"
|
|
time = { version = "0.3.7", features = ["serde-well-known", "formatting", "parsing", "macros"] }
|
|
tokio = "1.24"
|
|
uuid = { version = "1.1.2", features = ["serde", "v4"] }
|
|
|
|
[dev-dependencies]
|
|
insta = "1.19.1"
|
|
meili-snap = { path = "../meili-snap" }
|
|
|
|
[features]
|
|
# all specialized tokenizations
|
|
default = ["milli/default"]
|
|
|
|
# chinese specialized tokenization
|
|
chinese = ["milli/chinese"]
|
|
# hebrew specialized tokenization
|
|
hebrew = ["milli/hebrew"]
|
|
# japanese specialized tokenization
|
|
japanese = ["milli/japanese"]
|
|
# thai specialized tokenization
|
|
thai = ["milli/thai"]
|