[Groonga-commit] groonga/groonga at 1712d81 [master] test: add not match test case for near search

Back to archive index

Kentaro Hayashi null+****@clear*****
Tue Jan 17 11:16:53 JST 2017


Kentaro Hayashi	2017-01-17 11:16:53 +0900 (Tue, 17 Jan 2017)

  New Revision: 1712d811dc2033f1f6cba6403a92dc2378828ecc
  https://github.com/groonga/groonga/commit/1712d811dc2033f1f6cba6403a92dc2378828ecc

  Message:
    test: add not match test case for near search

  Added files:
    test/command/suite/select/filter/near/max_interval/not_match.expected
    test/command/suite/select/filter/near/max_interval/not_match.test

  Added: test/command/suite/select/filter/near/max_interval/not_match.expected (+15 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/filter/near/max_interval/not_match.expected    2017-01-17 11:16:53 +0900 (f8d2205)
@@ -0,0 +1,15 @@
+table_create Memos TABLE_PAT_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Memos content COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+table_create Terms TABLE_PAT_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]
+load --table Memos
+[
+{"_key":"alphabets", "content": "a b c d"}
+]
+[[0,0.0,0.0],1]
+select Memos   --filter 'content *N1 "a d"'   --output_columns '_score, content'
+[[0,0.0,0.0],[[[0],[["_score","Int32"],["content","ShortText"]]]]]

  Added: test/command/suite/select/filter/near/max_interval/not_match.test (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/filter/near/max_interval/not_match.test    2017-01-17 11:16:53 +0900 (fb49e7a)
@@ -0,0 +1,16 @@
+table_create Memos TABLE_PAT_KEY ShortText
+column_create Memos content COLUMN_SCALAR ShortText
+
+table_create Terms TABLE_PAT_KEY ShortText \
+  --default_tokenizer TokenBigram \
+  --normalizer NormalizerAuto
+column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content
+
+load --table Memos
+[
+{"_key":"alphabets", "content": "a b c d"}
+]
+
+select Memos \
+  --filter 'content *N1 "a d"' \
+  --output_columns '_score, content'
-------------- next part --------------
HTML����������������������������...
Download 



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