[Groonga-commit] groonga/gcs [master] Re-crete index column for text type index field correctly

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 12日 (木) 19:18:11 JST


SHIMODA Hiroshi	2012-07-12 19:18:11 +0900 (Thu, 12 Jul 2012)

  New Revision: b6937ec26a80cb9d9308ad7df0443dc619e71d5c
  https://github.com/groonga/gcs/commit/b6937ec26a80cb9d9308ad7df0443dc619e71d5c

  Log:
    Re-crete index column for text type index field correctly

  Modified files:
    lib/database/index-field.js

  Modified: lib/database/index-field.js (+2 -1)
===================================================================
--- lib/database/index-field.js    2012-07-12 19:13:54 +0900 (36e2b1e)
+++ lib/database/index-field.js    2012-07-12 19:18:11 +0900 (48ce51f)
@@ -184,6 +184,7 @@ IndexField.prototype = {
   reindexSync: function() {
     var name = this.name;
     var type = this.type;
+console.log("reindex for "+name+' / '+type);
     if (type == 'uint' || type == 'literal') {
       this.context.commandSync('column_remove', {
         table: this.alterTableName,
@@ -213,7 +214,7 @@ IndexField.prototype = {
         table: this.domain.termsTableName,
         name: this.indexColumnName,
         flags: nroonga.INDEX_COLUMN_DEFAULT_FLAGS,
-        type: this.tableName,
+        type: this.domain.tableName,
         source: this.columnName
       });
     }
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



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