| 1 | Execution example: |
| 2 | |
| 3 | ```shell |
| 4 | table_create Contents TABLE_NO_KEY |
| 5 | # [[0,1337566253.89858,0.000355720520019531],true] |
| 6 | column_create Contents html COLUMN_SCALAR Text |
| 7 | # [[0,1337566253.89858,0.000355720520019531],true] |
| 8 | table_create Terms TABLE_PAT_KEY ShortText \ |
| 9 | --default_tokenizer TokenBigram \ |
| 10 | --normalizers NormalizerNFKC \ |
| 11 | --extractors ExtractorHTML |
| 12 | # [[0,1337566253.89858,0.000355720520019531],true] |
| 13 | column_create Terms contents_html COLUMN_INDEX|WITH_POSITION Contents html |
| 14 | # [[0,1337566253.89858,0.000355720520019531],true] |
| 15 | load --table Contents |
| 16 | [ |
| 17 | {"html": "<p>Groonga is a <b>fast</b> full text search engine.</p>"} |
| 18 | ] |
| 19 | # [[0,1337566253.89858,0.000355720520019531],1] |
| 20 | select Contents \ |
| 21 | --match_columns html \ |
| 22 | --query "fast" \ |
| 23 | --output_columns html |
| 24 | # [ |
| 25 | # [ |
| 26 | # 0, |
| 27 | # 1337566253.89858, |
| 28 | # 0.000355720520019531 |
| 29 | # ], |
| 30 | # [ |
| 31 | # [ |
| 32 | # [ |
| 33 | # 1 |
| 34 | # ], |
| 35 | # [ |
| 36 | # [ |
| 37 | # "html", |
| 38 | # "Text" |
| 39 | # ] |
| 40 | # ], |
| 41 | # [ |
| 42 | # "<p>Groonga is a <b>fast</b> full text search engine.</p>" |
| 43 | # ] |
| 44 | # ] |
| 45 | # ] |
| 46 | # ] |
| 47 | select Contents \ |
| 48 | --match_columns html \ |
| 49 | --query "<b>" \ |
| 50 | --output_columns html |
| 51 | # [[0,1337566253.89858,0.000355720520019531],[[[0],[["html","Text"]]]]] |
| 52 | ``` |