File: query_expansion-1.log

package info (click to toggle)
groonga 9.0.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,496 kB
  • sloc: ansic: 608,707; ruby: 35,042; xml: 23,643; cpp: 10,319; sh: 7,453; yacc: 5,968; python: 3,033; makefile: 2,609; perl: 133
file content (26 lines) | stat: -rw-r--r-- 1,114 bytes parent folder | download | duplicates (3)
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
Execution example::

  table_create Doc TABLE_PAT_KEY ShortText
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  column_create Doc body COLUMN_SCALAR ShortText
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  table_create Term TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  column_create Term Doc_body COLUMN_INDEX|WITH_POSITION Doc body
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  table_create Synonym TABLE_PAT_KEY ShortText
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  column_create Synonym body COLUMN_VECTOR ShortText
  # [[0, 1337566253.89858, 0.000355720520019531], true]
  load --table Doc
  [
  {"_key": "001", "body": "Play all night in this theater."},
  {"_key": "002", "body": "theatre is British spelling."},
  ]
  # [[0, 1337566253.89858, 0.000355720520019531], 2]
  load --table Synonym
  [
  {"_key": "theater", "body": ["theater", "theatre"]},
  {"_key": "theatre", "body": ["theater", "theatre"]},
  ]
  # [[0, 1337566253.89858, 0.000355720520019531], 2]