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
|`column_name`| Name of target column | Required |
27
-
|`index_name`| The index kind | Required.|
27
+
|`index_name`| The index kind | Required|
28
28
|`cast_as`| The PostgreSQL type decrypted data will be cast to | Optional. Defaults to `text`|
29
29
|`opts`| Index options | Optional for `match` indexes, required for `ste_vec` indexes (see below) |
30
30
@@ -44,7 +44,7 @@ Supported types:
44
44
45
45
A match index enables full text search across one or more text fields in queries.
46
46
47
-
The default Match index options are:
47
+
The default match index options are:
48
48
49
49
```json
50
50
{
@@ -93,21 +93,21 @@ Specifically, searching for strings _shorter_ than the `tokenLength` parameter w
93
93
94
94
If you're using n-gram as a token filter, then a token that is already shorter than the `tokenLength` parameter will be kept as-is when indexed, and so a search for that short token will match that record.
95
95
However, if that same short string only appears as a part of a larger token, then it will not match that record.
96
-
In general, therefore, you should try to ensure that the string you search for is at least as long as the `tokenLength` of the index, except in the specific case where you know that there are shorter tokens to match, _and_ you are explicitly OK with not returning records that have that short string as part of a larger token.
96
+
Try to ensure that the string you search for is at least as long as the `tokenLength` of the index, except in the specific case where you know that there are shorter tokens to match, _and_ you are explicitly OK with not returning records that have that short string as part of a larger token.
97
97
98
98
#### Options for ste_vec indexes (`opts`)
99
99
100
100
An ste_vec index on a encrypted JSONB column enables the use of PostgreSQL's `@>` and `<@`[containment operators](https://www.postgresql.org/docs/16/functions-json.html#FUNCTIONS-JSONB-OP-TABLE).
101
101
102
102
An ste_vec index requires one piece of configuration: the `context` (a string) which is passed as an info string to a MAC (Message Authenticated Code).
103
103
This ensures that all of the encrypted values are unique to that context.
104
-
It is generally recommended to use the table and column name as a the context (e.g. `users/name`).
104
+
We recommend that you use the table and column name as a the context (e.g. `users/name`).
105
105
106
-
Within a dataset, encrypted columns indexed using an `ste_vec` that use different contexts cannot be compared.
106
+
Within a dataset, encrypted columns indexed using an `ste_vec` that use different contexts can't be compared.
107
107
Containment queries that manage to mix index terms from multiple columns will never return a positive result.
108
108
This is by design.
109
109
110
-
The index is generated from a JSONB document by first flattening the structure of the document such that a hash can be generated for each unique path prefix to a node.
110
+
The index is generated from a JSONB document by first flattening the structure of the document so that a hash can be generated for each unique path prefix to a node.
111
111
112
112
The complete set of JSON types is supported by the indexer.
113
113
Null values are ignored by the indexer.
@@ -182,7 +182,7 @@ The hashes would be generated for all prefixes of the full path to the leaf node
182
182
183
183
Query terms are processed in the same manner as the input document.
184
184
185
-
A query prior to encrypting & indexing looks like a structurally similar subset of the encrypted document, for example:
185
+
A query prior to encrypting and indexing looks like a structurally similar subset of the encrypted document. For example:
0 commit comments