Navigation Menu

Skip to content

Commit

Permalink
scorer test: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
komainu8 committed Sep 10, 2018
1 parent 63e5414 commit d8ed565
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -1,10 +1,10 @@
table_create Users TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Users tags COLUMN_VECTOR|WITH_WEIGHT ShortText
column_create Users tags COLUMN_SCALAR ShortText
[[0,0.0,0.0],true]
load --table Users
[
{"_key": "alice", "tags": {"wonder": 100}}
{"_key": "alice", "tags": "wonder"}
]
[[0,0.0,0.0],1]
select Users --filter true --scorer '_score = (tags @ "wonder") * 3' --output_columns _score
Expand Down
@@ -1,9 +1,9 @@
table_create Users TABLE_HASH_KEY ShortText
column_create Users tags COLUMN_VECTOR|WITH_WEIGHT ShortText
column_create Users tags COLUMN_SCALAR ShortText

load --table Users
[
{"_key": "alice", "tags": {"wonder": 100}}
{"_key": "alice", "tags": "wonder"}
]

select Users \
Expand Down

0 comments on commit d8ed565

Please sign in to comment.