[Groonga-commit] groonga/gcs [master] bq: support multi phrase in a string

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 14:38:34 JST


Kouhei Sutou	2012-08-06 14:38:34 +0900 (Mon, 06 Aug 2012)

  New Revision: 830722161d23a90a7e8248406498ce3d5c6f6e45
  https://github.com/groonga/gcs/commit/830722161d23a90a7e8248406498ce3d5c6f6e45

  Log:
    bq: support multi phrase in a string

  Modified files:
    test/bq-translator.test.js

  Modified: test/bq-translator.test.js (+5 -1)
===================================================================
--- test/bq-translator.test.js    2012-08-06 14:36:06 +0900 (05cfa26)
+++ test/bq-translator.test.js    2012-08-06 14:38:34 +0900 (de43047)
@@ -228,10 +228,14 @@ suite('BoolanQueryTranslator', function() {
                  "'keyword*' 'other keyword'",
                  "'keyword*'".length,
                  "field @^ \"keyword\"");
-  testExpression("value only: stirng: phrase",
+  testExpression("value only: stirng: phrase: one",
                  "'\"keyword1 keyword2\"' 'other keyword'",
                  "'\"keyword1 keyword2\"'".length,
                  "field @ \"keyword1 keyword2\"");
+  testExpression("value only: stirng: phrase: multi",
+                 "'\"keyword1 keyword2\"|\"keyword3\"' 'other keyword'",
+                 "'\"keyword1 keyword2\"|\"keyword3\"'".length,
+                 "field @ \"keyword1 keyword2\" || field @ \"keyword3\"");
   testExpression("value only: unsigned integer",
                  "29 75",
                  "29".length,
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index