1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
table_create Users TABLE_NO_KEY
[[0,0.0,0.0],true]
column_create Users name COLUMN_SCALAR ShortText
[[0,0.0,0.0],true]
column_create Users memo COLUMN_SCALAR ShortText
[[0,0.0,0.0],true]
load --table Users
[
{"name": "Alice", "memo": "Groonga user"},
{"name": "Bob", "memo": "Rroonga user"}
]
[[0,0.0,0.0],2]
select Users --output_columns _score --filter 'memo @ "Groonga" && memo @ "Groonga" && memo @ "Groonga" && query("name", "Alice OR Bob")'
[[0,0.0,0.0],[[[1],[["_score","Int32"]],[4]]]]
|