| 1 |
Execution example:: |
| 2 |
|
| 3 |
select Documents \ |
| 4 |
--output_columns 'snippet(content, \ |
| 5 |
{ \ |
| 6 |
"default_open_tag": "[", \ |
| 7 |
"default_close_tag": "]", \ |
| 8 |
"width": 50 \ |
| 9 |
})' \ |
| 10 |
--match_columns content \ |
| 11 |
--query "fast performance" |
| 12 |
# [ |
| 13 |
# [ |
| 14 |
# 0, |
| 15 |
# 1337566253.89858, |
| 16 |
# 0.000355720520019531 |
| 17 |
# ], |
| 18 |
# [ |
| 19 |
# [ |
| 20 |
# [ |
| 21 |
# 1 |
| 22 |
# ], |
| 23 |
# [ |
| 24 |
# [ |
| 25 |
# "snippet", |
| 26 |
# null |
| 27 |
# ] |
| 28 |
# ], |
| 29 |
# [ |
| 30 |
# [ |
| 31 |
# "Groonga is a [fast] and accurate full text search en", |
| 32 |
# " result in superior [performance] on real-time appli" |
| 33 |
# ] |
| 34 |
# ] |
| 35 |
# ] |
| 36 |
# ] |
| 37 |
# ] |