Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/content/doc-surrealdb/cli/env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (2<sup>64</sup>), while for 32 bits the maximum will be 4_294_967_296 (2<sup>32</sup>).

<table>
<thead>
<tr>
Expand Down
14 changes: 14 additions & 0 deletions src/content/doc-surrealql/statements/define/analyzer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

<Since v="v3.0.0-beta" />

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`"
```