Navigation Menu

Skip to content

Commit

Permalink
test: modify to occur error
Browse files Browse the repository at this point in the history
Because begin to occur error when a full-text search for vector column
if we don't set "WITH_SECTION" flag.
  • Loading branch information
komainu8 committed Jun 20, 2018
1 parent c3d16e1 commit 10d7e24
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
Expand Up @@ -12,7 +12,18 @@ load --table Docs
table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
[[0,0.0,0.0],true]
column_create Words docs_sentences COLUMN_INDEX|WITH_POSITION Docs sentences
[[0,0.0,0.0],true]
[
[
[
-22,
0.0,
0.0
],
"grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sent"
],
false
]
#|e| grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sentences>
select Words --limit -1 --sort_keys _key --output_columns '_key, index_column_source_records("docs_sentences")'
[
[
Expand All @@ -23,7 +34,7 @@ select Words --limit -1 --sort_keys _key --output_columns '_key, index_col
[
[
[
1
0
],
[
[
Expand All @@ -34,12 +45,6 @@ select Words --limit -1 --sort_keys _key --output_columns '_key, index_col
"index_column_source_records",
null
]
],
[
"-",
[
1
]
]
]
]
Expand Down
Expand Up @@ -7,7 +7,18 @@ column_create Docs sentences COLUMN_VECTOR Text
table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
[[0,0.0,0.0],true]
column_create Words docs_sentences COLUMN_INDEX|WITH_POSITION Docs sentences
[[0,0.0,0.0],true]
[
[
[
-22,
0.0,
0.0
],
"grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sent"
],
false
]
#|e| grn_obj_set_info(): GRN_INFO_SOURCE: full text index for vector column must be created with WITH_SECTION flag: <Words.docs_sentences>
load --table Docs
[
{"sentences": ["-", "-", "-"]}
Expand All @@ -23,7 +34,7 @@ select Words --limit -1 --sort_keys _key --output_columns '_key, index_col
[
[
[
1
0
],
[
[
Expand All @@ -34,12 +45,6 @@ select Words --limit -1 --sort_keys _key --output_columns '_key, index_col
"index_column_source_records",
null
]
],
[
"-",
[
1
]
]
]
]
Expand Down

0 comments on commit 10d7e24

Please sign in to comment.