test/command/suite/select/function/snippet/twice_keyword.expected
raw| 1 | table_create Entries TABLE_NO_KEY |
| 2 | [[0,0.0,0.0],true] |
| 3 | column_create Entries content COLUMN_SCALAR ShortText |
| 4 | [[0,0.0,0.0],true] |
| 5 | load --table Entries |
| 6 | [ |
| 7 | {"content": "groonga and MySQL and PosrgreSQL"} |
| 8 | ] |
| 9 | [[0,0.0,0.0],1] |
| 10 | select Entries --output_columns ' snippet(content, "SQL", "<span class=\\"keyword1\\">", "</span>", "groonga", "<span class=\\"keyword2\\">", "</span>", {"prefix": "..."} )' |
| 11 | [ |
| 12 | [ |
| 13 | 0, |
| 14 | 0.0, |
| 15 | 0.0 |
| 16 | ], |
| 17 | [ |
| 18 | [ |
| 19 | [ |
| 20 | 1 |
| 21 | ], |
| 22 | [ |
| 23 | [ |
| 24 | "snippet", |
| 25 | null |
| 26 | ] |
| 27 | ], |
| 28 | [ |
| 29 | [ |
| 30 | "...<span class=\"keyword2\">groonga</span> and My<span class=\"keyword1\">SQL</span> and Posrgre<span class=\"keyword1\">SQL</span>" |
| 31 | ] |
| 32 | ] |
| 33 | ] |
| 34 | ] |
| 35 | ] |