1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC121 --default_tokenizer TokenNgram
[[0,0.0,0.0],true]
table_create Notes TABLE_NO_KEY
[[0,0.0,0.0],true]
column_create Notes title COLUMN_SCALAR Text
[[0,0.0,0.0],true]
load --table Notes
[
{"title": "Hello Groonga"},
{"title": " "}
]
[[0,0.0,0.0],2]
column_create Notes title_terms COLUMN_VECTOR Terms title
[[0,0.0,0.0],true]
select Notes --query _id:2 --output_columns title_terms
[[0,0.0,0.0],[[[1],[["title_terms","Terms"]],[[]]]]]
dump
table_create Notes TABLE_NO_KEY
column_create Notes title COLUMN_SCALAR Text
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC121
column_create Notes title_terms COLUMN_VECTOR Terms title
load --table Terms
[
["_key"],
["groonga"],
["hello"]
]
load --table Notes
[
["_id","title"],
[1,"Hello Groonga"],
[2," "]
]
column_create Terms notes_title COLUMN_INDEX|WITH_POSITION Notes title
[[0,0.0,0.0],true]
index_column_diff Terms notes_title
[[0,0.0,0.0],[]]
|