[Groonga-commit] groonga/gcs at 296a267 [master] Use normalizer API

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Mar 2 14:14:01 JST 2014


Kouhei Sutou	2014-03-02 14:14:01 +0900 (Sun, 02 Mar 2014)

  New Revision: 296a267af1196f405c2158079a22e33c0903590f
  https://github.com/groonga/gcs/commit/296a267af1196f405c2158079a22e33c0903590f

  Message:
    Use normalizer API

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+4 -3)
===================================================================
--- lib/database/domain.js    2014-03-02 14:11:36 +0900 (d345f8c)
+++ lib/database/domain.js    2014-03-02 14:14:01 +0900 (6ab419d)
@@ -391,9 +391,10 @@ Domain.prototype = {
 
     this.context.commandSync('table_create', {
       name: this.termsTableName,
-      flags: nroonga.TABLE_PAT_KEY + '|' + nroonga.KEY_NORMALIZE,
+      flags: nroonga.TABLE_PAT_KEY,
       key_type: nroonga.ShortText,
-      default_tokenizer: nroonga.TokenBigram
+      default_tokenizer: nroonga.TokenBigram,
+      normalizer: 'NormalizerAuto'
     });
 
     this.setCreationDate('self', new Date());
@@ -525,7 +526,7 @@ Domain.prototype = {
       name: this.synonymsTableName,
       flags: nroonga.TABLE_HASH_KEY,
       key_type: nroonga.ShortText,
-      flags: nroonga.KEY_NORMALIZE
+      normalizer: 'NormalizerAuto'
     });
     this.context.commandSync('column_create', {
       table: this.synonymsTableName,
-------------- next part --------------
HTML����������������������������...
Download 



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