Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #850 from komainu8/add_check_exist_with_section_flag
Add check exist of "WITH SECTION" flag when a full-text search for vector column Patch by Yasuhiro Horimoto. Thanks!!!
- Loading branch information
Showing
11 changed files
with
121 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
test/command/suite/column_create/index/source/multi_column/vector_full_text_search.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| plugin_register functions/index_column | ||
| [[0,0.0,0.0],true] | ||
| table_create Docs TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Docs title COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Docs sentences COLUMN_VECTOR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| [[0,0.0,0.0],true] | ||
| column_create Words docs_content COLUMN_INDEX|WITH_SECTION|WITH_POSITION Docs title,sentences | ||
| [ | ||
| [ | ||
| [ | ||
| -22, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| "grn_obj_set_info(): GRN_INFO_SOURCE: multi column full text index with vector column isn't supported yet: <Words.docs_content>" | ||
| ], | ||
| false | ||
| ] | ||
| #|e| grn_obj_set_info(): GRN_INFO_SOURCE: multi column full text index with vector column isn't supported yet: <Words.docs_content> |
9 changes: 9 additions & 0 deletions
9
test/command/suite/column_create/index/source/multi_column/vector_full_text_search.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| plugin_register functions/index_column | ||
|
|
||
| table_create Docs TABLE_NO_KEY | ||
| column_create Docs title COLUMN_SCALAR ShortText | ||
| column_create Docs sentences COLUMN_VECTOR Text | ||
|
|
||
| table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| column_create Words docs_content \ | ||
| COLUMN_INDEX|WITH_SECTION|WITH_POSITION Docs title,sentences |
10 changes: 10 additions & 0 deletions
10
test/command/suite/column_create/index/source/vector_column/full_text_search.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| plugin_register functions/index_column | ||
| [[0,0.0,0.0],true] | ||
| table_create Docs TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Docs sentences COLUMN_VECTOR Text | ||
| [[0,0.0,0.0],true] | ||
| table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| [[0,0.0,0.0],true] | ||
| column_create Words docs_sentences COLUMN_INDEX|WITH_SECTION|WITH_POSITION Docs sentences | ||
| [[0,0.0,0.0],true] |
7 changes: 7 additions & 0 deletions
7
test/command/suite/column_create/index/source/vector_column/full_text_search.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| plugin_register functions/index_column | ||
|
|
||
| table_create Docs TABLE_NO_KEY | ||
| column_create Docs sentences COLUMN_VECTOR Text | ||
|
|
||
| table_create Words TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| column_create Words docs_sentences COLUMN_INDEX|WITH_SECTION|WITH_POSITION Docs sentences |
21 changes: 21 additions & 0 deletions
21
.../suite/column_create/index/source/vector_column/full_text_search_without_section.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| plugin_register functions/index_column | ||
| [[0,0.0,0.0],true] | ||
| table_create Docs TABLE_NO_KEY | ||
| [[0,0.0,0.0],true] | ||
| column_create Docs sentences COLUMN_VECTOR Text | ||
| [[0,0.0,0.0],true] | ||
| 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 | ||
| [ | ||
| [ | ||
| [ | ||
| -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
test/command/suite/load/index/offline/vector/text_without_section.expected
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
test/command/suite/load/index/online/vector/text_without_section.expected
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
test/command/suite/load/index/online/vector/text_without_section.test
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters