| 1 |
table_create Normalizations TABLE_PAT_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Normalizations normalized COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
load --table Normalizations |
| 6 |
[ |
| 7 |
{"_key": "a", "normalized": "AAA"}, |
| 8 |
{"_key": "b", "normalized": "BBB"}, |
| 9 |
{"_key": "c", "normalized": "CCC"}, |
| 10 |
{"_key": "d", "normalized": "DDD"}, |
| 11 |
{"_key": "e", "normalized": "EEE"} |
| 12 |
] |
| 13 |
[[0,0.0,0.0],5] |
| 14 |
table_create Entries TABLE_NO_KEY |
| 15 |
[[0,0.0,0.0],true] |
| 16 |
column_create Entries body COLUMN_SCALAR ShortText |
| 17 |
[[0,0.0,0.0],true] |
| 18 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer 'TokenNgram("report_source_location", true)' --normalizer 'NormalizerTable("normalized", "Normalizations.normalized", "report_source_offset", true)' |
| 19 |
[[0,0.0,0.0],true] |
| 20 |
column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body |
| 21 |
[[0,0.0,0.0],true] |
| 22 |
load --table Entries |
| 23 |
[ |
| 24 |
{"body": ".a.b.c.d.e."} |
| 25 |
] |
| 26 |
[[0,0.0,0.0],1] |
| 27 |
select Entries --match_columns body --query 'CCC' --output_columns 'highlight_html(body, Terms)' |
| 28 |
[ |
| 29 |
[ |
| 30 |
0, |
| 31 |
0.0, |
| 32 |
0.0 |
| 33 |
], |
| 34 |
[ |
| 35 |
[ |
| 36 |
[ |
| 37 |
1 |
| 38 |
], |
| 39 |
[ |
| 40 |
[ |
| 41 |
"highlight_html", |
| 42 |
null |
| 43 |
] |
| 44 |
], |
| 45 |
[ |
| 46 |
".a.b.<span class=\"keyword\">c</span>.d.e." |
| 47 |
] |
| 48 |
] |
| 49 |
] |
| 50 |
] |