Navigation Menu

Skip to content

Commit

Permalink
doc en: add missing column index for location column
Browse files Browse the repository at this point in the history
These changes fix following errors by "make update-examples"

"geo_in_circle(): index for <Users.location> is missing"
"geo_in_circle(): index for <Comments.location> is missing"
  • Loading branch information
kenhys committed Jun 24, 2013
1 parent 4d4cc0a commit 56b0b4d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions doc/source/example/tutorial/micro_blog-1.log
Expand Up @@ -23,6 +23,9 @@ Execution example::
# [[0, 1337566253.89858, 0.000355720520019531], true]
# [[0, 1337566253.89858, 0.000355720520019531], true]
# [[0, 1337566253.89858, 0.000355720520019531], true]
# [[0, 1337566253.89858, 0.000355720520019531], true]
# [[0, 1337566253.89858, 0.000355720520019531], true]
# [[0, 1337566253.89858, 0.000355720520019531], true]
# [[0, 1337566253.89858, 0.000355720520019531], 3]
# [[0, 1337566253.89858, 0.000355720520019531], 8]
# [
Expand Down
12 changes: 6 additions & 6 deletions doc/source/example/tutorial/micro_blog-4.log
Expand Up @@ -23,16 +23,16 @@ Execution example::
# ]
# ],
# [
# "OffGao",
# "@daijiro @tasukuchan 登録してみましたよー!"
# "グニャラくん",
# "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
# ],
# [
# "グニャラくん",
# "groongaなう #groonga"
# ],
# [
# "グニャラくん",
# "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
# "OffGao",
# "@daijiro @tasukuchan 登録してみましたよー!"
# ],
# [
# "OffGao",
Expand Down Expand Up @@ -77,11 +77,11 @@ Execution example::
# ]
# ],
# [
# "OffGao",
# "tasukuchan",
# 2
# ],
# [
# "tasukuchan",
# "OffGao",
# 2
# ]
# ]
Expand Down
8 changes: 8 additions & 0 deletions doc/source/tutorial/micro_blog.txt
Expand Up @@ -21,6 +21,7 @@
table_create --name Comments --flags TABLE_HASH_KEY --key_type ShortText
table_create --name HashTags --flags TABLE_HASH_KEY --key_type ShortText
table_create --name Bigram --flags TABLE_PAT_KEY|KEY_NORMALIZE --key_type ShortText --default_tokenizer TokenBigram
table_create --name GeoIndex --flags TABLE_PAT_KEY --key_type WGS84GeoPoint

column_create --table Users --name name --flags COLUMN_SCALAR --type ShortText
column_create --table Users --name follower --flags COLUMN_VECTOR --type Users
Expand All @@ -44,6 +45,9 @@
column_create --table Bigram --name users_index --flags COLUMN_INDEX|WITH_POSITION|WITH_SECTION --type Users --source name,location_str,description
column_create --table Bigram --name comment_index --flags COLUMN_INDEX|WITH_POSITION --type Comments --source comment

column_create --table GeoIndex --name users_location --type Users --flags COLUMN_INDEX --source location
column_create --table GeoIndex --name comments_location --type Comments --flags COLUMN_INDEX --source location

Usersテーブル
^^^^^^^^^^^^^

Expand Down Expand Up @@ -249,6 +253,7 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
table_create --name Comments --flags TABLE_HASH_KEY --key_type ShortText
table_create --name HashTags --flags TABLE_HASH_KEY --key_type ShortText
table_create --name Bigram --flags TABLE_PAT_KEY|KEY_NORMALIZE --key_type ShortText --default_tokenizer TokenBigram
table_create --name GeoIndex --flags TABLE_PAT_KEY --key_type WGS84GeoPoint
column_create --table Users --name name --flags COLUMN_SCALAR --type ShortText
column_create --table Users --name follower --flags COLUMN_VECTOR --type Users
Expand All @@ -272,6 +277,9 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
column_create --table Bigram --name users_index --flags COLUMN_INDEX|WITH_POSITION|WITH_SECTION --type Users --source name,location_str,description
column_create --table Bigram --name comment_index --flags COLUMN_INDEX|WITH_POSITION --type Comments --source comment
column_create --table GeoIndex --name users_location --type Users --flags COLUMN_INDEX --source location
column_create --table GeoIndex --name comments_location --type Comments --flags COLUMN_INDEX --source location
load --table Users
[
{
Expand Down

0 comments on commit 56b0b4d

Please sign in to comment.