[Groonga-commit] groonga/gcs [master] Add terms tables for full text search to the expected result of DefineIndexField (uint)

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 6日 (金) 18:53:58 JST


SHIMODA Hiroshi	2012-07-06 18:53:58 +0900 (Fri, 06 Jul 2012)

  New Revision: 55d94e01b28d1f2054d8bef25af98fd3648690d6
  https://github.com/groonga/gcs/commit/55d94e01b28d1f2054d8bef25af98fd3648690d6

  Log:
    Add terms tables for full text search to the expected result of DefineIndexField (uint)

  Modified files:
    test/api-configuration.test.js

  Modified: test/api-configuration.test.js (+5 -2)
===================================================================
--- test/api-configuration.test.js    2012-07-06 18:49:38 +0900 (5bf333a)
+++ test/api-configuration.test.js    2012-07-06 18:53:58 +0900 (aa26a01)
@@ -260,7 +260,10 @@ suite('Configuration API', function() {
         var dump = database.commandSync('dump', {
               tables: 'companies'
             });
-        var expected = 'table_create companies TABLE_HASH_KEY ShortText\n' +
+        var expected = 'table_create companies_BigramTerms ' +
+                         'TABLE_PAT_KEY|KEY_NORMALIZE ShortText ' +
+                         '--default_tokenizer TokenBigram\n' +
+                       'table_create companies TABLE_HASH_KEY ShortText\n' +
                        'column_create companies age COLUMN_SCALAR UInt32\n' +
                        'table_create companies_age ' +
                          'TABLE_HASH_KEY UInt32\n' +
@@ -275,7 +278,7 @@ suite('Configuration API', function() {
       });
   });
 
-  test('Get, Action=DeleteIndexField', function(done) {
+  test('Get, Action=DeleteIndexField (text)', function(done) {
     var path = '/?DomainName=companies&Action=CreateDomain&Version=2011-02-01';
     utils.get(path, {
                 'Host': 'cloudsearch.localhost'
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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