From 1143eae46e8e4569084a12c38bd44128e3c36eed Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 9 Sep 2024 15:37:11 +0200 Subject: [PATCH 1/2] Update known_limitations.mdx The limitation was slightly wrong https://github.com/meilisearch/meilisearch/blob/db0cf3b2ed0ca6cf6549510bf373681e83b775dd/milli/src/lib.rs#L106-L110 --- learn/resources/known_limitations.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learn/resources/known_limitations.mdx b/learn/resources/known_limitations.mdx index d76c13b66..12aac54c8 100644 --- a/learn/resources/known_limitations.mdx +++ b/learn/resources/known_limitations.mdx @@ -76,9 +76,9 @@ If your query is `Hello - World`: ## Length of individual `filterableAttributes` values -**Limitation:** Individual `filterableAttributes` values are limited to 512 bytes. +**Limitation:** Individual `filterableAttributes` values are limited to 480 bytes. -**Explanation:** Meilisearch stores `filterableAttributes` values as keys in LMDB, a data type whose size is limited to 512 bytes. Note that this only applies to individual values—for example, a `genres` attribute can contain any number of values such as `horror`, `comedy`, or `cyberpunk` as long as each one of them is smaller than 512 bytes. +**Explanation:** Meilisearch stores `filterableAttributes` values as keys in LMDB, a data type whose size is limited to 512 bytes, to which Meilisearch adds a margin of 32 bytes. Note that this only applies to individual values—for example, a `genres` attribute can contain any number of values such as `horror`, `comedy`, or `cyberpunk` as long as each one of them is smaller than 480 bytes. ## Maximum filter depth From 309d856c78e5943d43b4819e810232fd59f993e3 Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 9 Sep 2024 15:42:01 +0200 Subject: [PATCH 2/2] Update known_limitations.mdx --- learn/resources/known_limitations.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learn/resources/known_limitations.mdx b/learn/resources/known_limitations.mdx index 12aac54c8..e3e2c3ed2 100644 --- a/learn/resources/known_limitations.mdx +++ b/learn/resources/known_limitations.mdx @@ -76,9 +76,9 @@ If your query is `Hello - World`: ## Length of individual `filterableAttributes` values -**Limitation:** Individual `filterableAttributes` values are limited to 480 bytes. +**Limitation:** Individual `filterableAttributes` values are limited to 468 bytes. -**Explanation:** Meilisearch stores `filterableAttributes` values as keys in LMDB, a data type whose size is limited to 512 bytes, to which Meilisearch adds a margin of 32 bytes. Note that this only applies to individual values—for example, a `genres` attribute can contain any number of values such as `horror`, `comedy`, or `cyberpunk` as long as each one of them is smaller than 480 bytes. +**Explanation:** Meilisearch stores `filterableAttributes` values as keys in LMDB, a data type whose size is limited to 512 bytes, to which Meilisearch adds a margin of 44 bytes. Note that this only applies to individual values—for example, a `genres` attribute can contain any number of values such as `horror`, `comedy`, or `cyberpunk` as long as each one of them is smaller than 468 bytes. ## Maximum filter depth