You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: document array_index_mode for STE-VEC indexes
Add documentation for the new array_index_mode configuration option
in the searchable JSON reference guide, including preset values and
object form for fine-grained control over array indexing behavior.
> **Note:** JSONB literals in INSERT and UPDATE statements work directly without explicit `::jsonb` type casts. The proxy infers the JSONB type from the target column and handles encryption transparently.
47
47
48
+
#### Configuration options
49
+
50
+
The `ste_vec` index configuration accepts the following options:
51
+
52
+
| Option | Type | Default | Description |
53
+
|--------|------|---------|-------------|
54
+
|`prefix`| string | (required) | Unique prefix for the index, typically `table/column`|
|`array_index_mode`| string or object |`"all"`| Controls which array selectors are generated during indexing |
57
+
58
+
#### Array index mode
59
+
60
+
The `array_index_mode` option controls how arrays within JSONB documents are indexed. This affects which JSONPath selectors can be used to query array data.
61
+
62
+
**Preset values:**
63
+
64
+
-`"all"` (default) - Generates all selector types. This is backwards compatible with existing configurations.
65
+
-`"none"` - Disables array indexing entirely.
66
+
67
+
**Object form for fine-grained control:**
68
+
69
+
```json
70
+
{
71
+
"item": true,
72
+
"wildcard": true,
73
+
"position": false
74
+
}
75
+
```
76
+
77
+
| Selector | JSONPath | Description |
78
+
|----------|----------|-------------|
79
+
|`item`|`[@]`| EQL array element selector for functions like `jsonb_array_length`|
80
+
|`wildcard`|`[*]`| Standard JSONPath wildcard for iterating array elements |
81
+
|`position`|`[0]`, `[1]`, etc. | Positional access to specific array indices |
0 commit comments