Debian Codegraph @

test/command/suite/select/index/match/wgs84_geo_point/h3_index.test

raw
1 #@on-error omit
2 plugin_register tokenizers/h3_index
3 #@on-error default
4
5 table_create H3Indexes TABLE_PAT_KEY UInt64 \
6 --default_tokenizer 'TokenH3Index("resolution", 8)'
7
8 table_create Locations TABLE_PAT_KEY ShortText
9 column_create Locations location COLUMN_SCALAR WGS84GeoPoint
10
11 load --table Locations
12 [
13 {"_key": "ClearCode: 35.80460x139.45649", "location": "35.80460x139.45649"},
14 {"_key": "Shin Tokorozawa: 35.80747x139.45602", "location": "35.80747x139.45602"},
15 {"_key": "Koku koen: 35.79841x139.46573", "location": "35.79841x139.46573"}
16 ]
17
18 column_create H3Indexes locations_location COLUMN_INDEX Locations location
19
20 select Locations --filter 'location @ "35.80460x139.45649"'