Skip to content

Instantly share code, notes, and snippets.

@coderdan
Created February 16, 2023 00:27
Show Gist options
  • Save coderdan/914993ff6e336d139996318b6f45814d to your computer and use it in GitHub Desktop.
Save coderdan/914993ff6e336d139996318b6f45814d to your computer and use it in GitHub Desktop.
Demo config
tables:
- path: users
fields:
- name: name
in_place: false
cast_type: utf8-str
mode: encrypted-duplicate
indexes:
- version: 1
kind: match
include_original: true
tokenizer:
kind: ngram
token_length: 3
token_filters:
- kind: downcase
k: 6
m: 2048
- version: 1
kind: ore
- name: email
mode: encrypted-duplicate
in_place: false
cast_type: utf8-str
indexes:
- version: 1
kind: unique
- name: dob
mode: encrypted-duplicate
in_place: false
cast_type: date
indexes:
- version: 1
kind: ore
- path: patients
fields:
- name: full_name
in_place: false
cast_type: utf8-str
mode: encrypted-duplicate
indexes:
- version: 1
kind: match
tokenizer:
kind: ngram
token_length: 3
token_filters:
- kind: downcase
k: 6
m: 2048
include_original: true
- version: 1
kind: ore
- name: email
in_place: false
cast_type: utf8-str
mode: encrypted-duplicate
indexes:
- version: 1
kind: match
tokenizer:
kind: ngram
token_length: 3
token_filters:
- kind: downcase
k: 6
m: 2048
include_original: true
- version: 1
kind: ore
- name: allergies
in_place: false
cast_type: utf8-str
mode: encrypted-duplicate
indexes:
- version: 1
kind: match
tokenizer:
kind: ngram
token_length: 3
token_filters:
- kind: downcase
k: 6
m: 2048
include_original: true
- version: 1
kind: ore
- name: medications
in_place: false
cast_type: utf8-str
mode: encrypted-duplicate
indexes:
- version: 1
kind: match
tokenizer:
kind: ngram
token_length: 3
token_filters:
- kind: downcase
k: 6
m: 2048
include_original: true
- version: 1
kind: ore
- name: age
in_place: false
cast_type: int
mode: encrypted-duplicate
indexes:
- version: 1
kind: ore
- name: weight
in_place: false
cast_type: float
mode: encrypted-duplicate
indexes:
- version: 1
kind: ore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment