| 1 |
Execution example:: |
| 2 |
|
| 3 |
select Documents \ |
| 4 |
--output_columns 'snippet(content, \ |
| 5 |
"fast", \ |
| 6 |
"performance", \ |
| 7 |
{ \ |
| 8 |
"default_open_tag": "[", \ |
| 9 |
"default_close_tag": "]" \ |
| 10 |
})' |
| 11 |
# [ |
| 12 |
# [ |
| 13 |
# 0, |
| 14 |
# 1337566253.89858, |
| 15 |
# 0.000355720520019531 |
| 16 |
# ], |
| 17 |
# [ |
| 18 |
# [ |
| 19 |
# [ |
| 20 |
# 2 |
| 21 |
# ], |
| 22 |
# [ |
| 23 |
# [ |
| 24 |
# "snippet", |
| 25 |
# null |
| 26 |
# ] |
| 27 |
# ], |
| 28 |
# [ |
| 29 |
# [ |
| 30 |
# "Groonga is a [fast] and accurate full text search engine based on inverted index. One of the characteristics of groonga is that a newly registered document instantly appears in search results. Also, gro", |
| 31 |
# "onga allows updates without read locks. These characteristics result in superior [performance] on real-time applications." |
| 32 |
# ] |
| 33 |
# ], |
| 34 |
# [ |
| 35 |
# null |
| 36 |
# ] |
| 37 |
# ] |
| 38 |
# ] |
| 39 |
# ] |