[Groonga-commit] groonga/groonga at f7a37e4 [master] test: add a test for offline index construction with normalizer options

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Apr 26 06:45:56 JST 2018


Kouhei Sutou	2018-04-26 06:45:56 +0900 (Thu, 26 Apr 2018)

  New Revision: f7a37e45abbe1437ff6b022b9612c0338914d932
  https://github.com/groonga/groonga/commit/f7a37e45abbe1437ff6b022b9612c0338914d932

  Message:
    test: add a test for offline index construction with normalizer options

  Added files:
    test/command/suite/table_create/normalizer/nfkc100/options/offline.expected
    test/command/suite/table_create/normalizer/nfkc100/options/offline.test

  Added: test/command/suite/table_create/normalizer/nfkc100/options/offline.expected (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/table_create/normalizer/nfkc100/options/offline.expected    2018-04-26 06:45:56 +0900 (2a2432f1f)
@@ -0,0 +1,16 @@
+table_create Memos TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Memos content COLUMN_SCALAR Text
+[[0,0.0,0.0],true]
+load --table Memos
+[
+{"content": "リンゴ"},
+{"content": "りんご"}
+]
+[[0,0.0,0.0],2]
+table_create Terms TABLE_PAT_KEY ShortText   --default_tokenizer TokenBigram   --normalizer 'NormalizerNFKC100("unify_kana", true)'
+[[0,0.0,0.0],true]
+column_create Terms memos_content COLUMN_INDEX Memos content
+[[0,0.0,0.0],true]
+select Terms --output_columns _key --limit -1
+[[0,0.0,0.0],[[[3],[["_key","ShortText"]],["ご"],["りん"],["んご"]]]]

  Added: test/command/suite/table_create/normalizer/nfkc100/options/offline.test (+15 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/table_create/normalizer/nfkc100/options/offline.test    2018-04-26 06:45:56 +0900 (b0b18557e)
@@ -0,0 +1,15 @@
+table_create Memos TABLE_NO_KEY
+column_create Memos content COLUMN_SCALAR Text
+
+load --table Memos
+[
+{"content": "リンゴ"},
+{"content": "りんご"}
+]
+
+table_create Terms TABLE_PAT_KEY ShortText \
+  --default_tokenizer TokenBigram \
+  --normalizer 'NormalizerNFKC100("unify_kana", true)'
+column_create Terms memos_content COLUMN_INDEX Memos content
+
+select Terms --output_columns _key --limit -1
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180426/72139db8/attachment.htm 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index