| 1 |
table_create Normalizations TABLE_PAT_KEY ShortText |
| 2 |
column_create Normalizations normalized COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
load --table Normalizations |
| 5 |
[ |
| 6 |
{"_key": "a", "normalized": "AAA"}, |
| 7 |
{"_key": "b", "normalized": "BBB"}, |
| 8 |
{"_key": "c", "normalized": "CCC"}, |
| 9 |
{"_key": "d", "normalized": "DDD"}, |
| 10 |
{"_key": "e", "normalized": "EEE"} |
| 11 |
] |
| 12 |
|
| 13 |
table_create Entries TABLE_NO_KEY |
| 14 |
column_create Entries body COLUMN_SCALAR ShortText |
| 15 |
|
| 16 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 17 |
--default_tokenizer 'TokenNgram("report_source_location", true)' \ |
| 18 |
--normalizer 'NormalizerTable("normalized", "Normalizations.normalized", \ |
| 19 |
"report_source_offset", true)' |
| 20 |
column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 21 |
|
| 22 |
load --table Entries |
| 23 |
[ |
| 24 |
{"body": ".a.b.c.d.e."} |
| 25 |
] |
| 26 |
|
| 27 |
select Entries \ |
| 28 |
--match_columns body \ |
| 29 |
--query 'CCC' \ |
| 30 |
--output_columns 'highlight_html(body, Terms)' |