test/command/suite/select/function/snippet/max_results.test
raw| 1 | table_create Entries TABLE_NO_KEY |
| 2 | column_create Entries content COLUMN_SCALAR ShortText |
| 3 | |
| 4 | load --table Entries |
| 5 | [ |
| 6 | {"content": "groonga and MySQL and PosrgreSQL"} |
| 7 | ] |
| 8 | |
| 9 | select Entries \ |
| 10 | --output_columns ' \ |
| 11 | snippet(content, \ |
| 12 | "SQL", "<span class=\\"keyword\\">", "</span>", \ |
| 13 | {"width": 10, "max_n_results": 2} \ |
| 14 | )' |