-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into parameter-tck
- Loading branch information
Showing
7 changed files
with
90 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,13 +225,14 @@ jobs: | |
image: elasticsearch:7.17.7 | ||
ports: | ||
- 9200:9200 | ||
- 9300:9300 | ||
env: | ||
discovery.type: single-node | ||
options: >- | ||
--health-cmd "curl elasticsearch:9200" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
--health-retries 10 | ||
steps: | ||
- uses: webiny/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -77,13 +77,14 @@ jobs: | |
image: elasticsearch:7.17.7 | ||
ports: | ||
- 9200:9200 | ||
- 9300:9300 | ||
env: | ||
discovery.type: single-node | ||
options: >- | ||
--health-cmd "curl elasticsearch:9200" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
--health-retries 10 | ||
steps: | ||
- uses: webiny/[email protected] | ||
with: | ||
|
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
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
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
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,49 @@ | ||
# Copyright (c) 2022 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
Feature: FulltextIndexTest_Vid_String | ||
|
||
Background: | ||
Given an empty graph | ||
And create a space with following options: | ||
| partition_num | 1 | | ||
| replica_factor | 1 | | ||
| vid_type | FIXED_STRING(30) | | ||
And add listeners to space | ||
And having executed: | ||
""" | ||
SIGN IN TEXT SERVICE(elasticsearch:9200, HTTP) | ||
""" | ||
|
||
@ft_index | ||
Scenario: fulltext demo | ||
When executing query: | ||
""" | ||
CREATE TAG ft_tag(prop1 string) | ||
""" | ||
Then the execution should be successful | ||
When executing query: | ||
""" | ||
CREATE TAG INDEX index_ft_tag_prop1 on ft_tag(prop1) | ||
""" | ||
Then the execution should be successful | ||
When executing query: | ||
""" | ||
CREATE FULLTEXT TAG INDEX nebula_index_1 on ft_tag(prop1) | ||
""" | ||
Then the execution should be successful | ||
And wait 6 seconds | ||
When executing query: | ||
""" | ||
INSERT INTO ft_tag(prop1) VALUES "1":("abc"); | ||
""" | ||
Then the execution should be successful | ||
And wait 5 seconds | ||
When executed query: | ||
""" | ||
LOOKUP ON ft_tag where prefix(ft_tag.prop1,"abc") | ||
YIELD id(vertex) as id, ft_tag.prop1 as prop1 | ||
""" | ||
Then the result should be, in any order: | ||
| id | prop1 | | ||
| "1" | "abc" | |
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