Skip to content

Commit 431e924

Browse files
committed
default match options
1 parent ffe09c4 commit 431e924

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ An encrypted column should be defined as the `cs_encrypted_v1` [Domain Type](htt
125125
The `cs_encrypted_v1` type is based on the PostgreSQL `jsonb` type and adds a check constraint to verify the schema (see below for details).
126126

127127
Example table definition:
128+
128129
```SQL
129130
CREATE TABLE users
130131
(
@@ -136,6 +137,7 @@ CREATE TABLE users
136137

137138

138139

140+
139141
### Index Functions
140142

141143
Functions expect a `jsonb` value that conforms to the storage schema.
@@ -163,11 +165,25 @@ Supported types:
163165
- boolean
164166
- date
165167

166-
#### match opts
167-
168168

169+
#### match opts
169170

171+
Default Match index options:
170172

173+
```json
174+
{
175+
"k": 6,
176+
"m": 2048,
177+
"include_original": true,
178+
"tokenizer": {
179+
"kind": "ngram",
180+
"token_length": 3
181+
}
182+
"token_filters": {
183+
"kind": "downcase"
184+
}
185+
}
186+
```
171187

172188

173189
```SQL

0 commit comments

Comments
 (0)