diff --git a/src/content/doc-surrealdb/cli/env.mdx b/src/content/doc-surrealdb/cli/env.mdx index 9d49d530e..5eb7f8102 100644 --- a/src/content/doc-surrealdb/cli/env.mdx +++ b/src/content/doc-surrealdb/cli/env.mdx @@ -22,6 +22,8 @@ Environment variables are divided into four types: ## SurrealDB environment variables +Many environment variables have a maximum value equivalent to the greatest possible `usize`, which is an unsigned integer with a number of bytes depending on the target that the database runs on. For most systems this will be 64 bits, leading to a maximum size of 18_446_744_073_709_551_615 (264), while for 32 bits the maximum will be 4_294_967_296 (232). + diff --git a/src/content/doc-surrealql/statements/define/analyzer.mdx b/src/content/doc-surrealql/statements/define/analyzer.mdx index b14b06c94..27ae62540 100644 --- a/src/content/doc-surrealql/statements/define/analyzer.mdx +++ b/src/content/doc-surrealql/statements/define/analyzer.mdx @@ -541,3 +541,17 @@ This example creates an analyzer specifically designed for source code analysis. -- Creates an analyzer suitable for source code analysis. DEFINE ANALYZER code TOKENIZERS class,camel FILTERS lowercase,ascii; ``` + +## Attempting to remove an analyzer may fail + + + +An analyzer can only be removed if it is currently unused by an index. + +```surql +DEFINE ANALYZER example_blank TOKENIZERS blank; +DEFINE INDEX example_index ON example FIELDS name FULLTEXT ANALYZER example_blank; +REMOVE ANALYZER example_blank; +-- Output: +"Cannot delete analyzer `example_blank` which is used by index(es) `example.example_index`" +``` \ No newline at end of file