[Groonga-commit] groonga/groonga at 81ee391 [master] test: add a test for offline indexing with GRN_TABLE_DAT_KEY

Back to archive index

Susumu Yata null+****@clear*****
Tue Jan 31 12:12:09 JST 2017


Susumu Yata	2017-01-31 12:12:09 +0900 (Tue, 31 Jan 2017)

  New Revision: 81ee391c07aa089f6ccd86dca50f1d378ecf13b2
  https://github.com/groonga/groonga/commit/81ee391c07aa089f6ccd86dca50f1d378ecf13b2

  Message:
    test: add a test for offline indexing with GRN_TABLE_DAT_KEY
    
    GitHub: #623
    
    Reported by Naoya Murakami. Thanks!!!

  Added files:
    test/command/suite/column_create/index/dat.expected
    test/command/suite/column_create/index/dat.test

  Added: test/command/suite/column_create/index/dat.expected (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/column_create/index/dat.expected    2017-01-31 12:12:09 +0900 (5e05e60)
@@ -0,0 +1,16 @@
+table_create Memos TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Memos content COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+load --table Memos
+[
+{"content": "Hello"},
+{"content": "Good-bye"}
+]
+[[0,0.0,0.0],2]
+table_create Terms TABLE_DAT_KEY ShortText   --default_tokenizer TokenBigram   --normalizer NormalizerAuto
+[[0,0.0,0.0],true]
+column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content
+[[0,0.0,0.0],true]
+select Memos --match_columns content --query "Good"
+[[0,0.0,0.0],[[[1],[["_id","UInt32"],["content","ShortText"]],[2,"Good-bye"]]]]

  Added: test/command/suite/column_create/index/dat.test (+15 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/column_create/index/dat.test    2017-01-31 12:12:09 +0900 (7cfe886)
@@ -0,0 +1,15 @@
+table_create Memos TABLE_NO_KEY
+column_create Memos content COLUMN_SCALAR ShortText
+
+load --table Memos
+[
+{"content": "Hello"},
+{"content": "Good-bye"}
+]
+
+table_create Terms TABLE_DAT_KEY ShortText \
+  --default_tokenizer TokenBigram \
+  --normalizer NormalizerAuto
+column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content
+
+select Memos --match_columns content --query "Good"
-------------- next part --------------
HTML����������������������������...
Download 



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