[Groonga-commit] groonga/groonga at d8ed565 [master] scorer test: simplify

Back to archive index

Yasuhiro Horimoto null+****@clear*****
Mon Sep 10 12:05:47 JST 2018


Yasuhiro Horimoto	2018-09-10 12:05:47 +0900 (Mon, 10 Sep 2018)

  Revision: d8ed565a11f8d744565cc048d5b5ee383e5f20a1
  https://github.com/groonga/groonga/commit/d8ed565a11f8d744565cc048d5b5ee383e5f20a1

  Merged 1f7a284: Merge pull request #869 from komainu8/add_test_for_scorer

  Message:
    scorer test: simplify

  Modified files:
    test/command/suite/select/scorer/expression/multiplication.expected
    test/command/suite/select/scorer/expression/multiplication.test

  Modified: test/command/suite/select/scorer/expression/multiplication.expected (+2 -2)
===================================================================
--- test/command/suite/select/scorer/expression/multiplication.expected    2018-09-10 11:56:03 +0900 (fe221215d)
+++ test/command/suite/select/scorer/expression/multiplication.expected    2018-09-10 12:05:47 +0900 (84bf026bd)
@@ -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

  Modified: test/command/suite/select/scorer/expression/multiplication.test (+2 -2)
===================================================================
--- test/command/suite/select/scorer/expression/multiplication.test    2018-09-10 11:56:03 +0900 (a288bc231)
+++ test/command/suite/select/scorer/expression/multiplication.test    2018-09-10 12:05:47 +0900 (6aae31288)
@@ -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 \
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180910/4bad4efe/attachment-0001.htm 



More information about the Groonga-commit mailing list
Back to archive index