[Groonga-commit] groonga/gcs [master] Return sorted synonyms correctly

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 13:56:10 JST


SHIMODA Hiroshi	2012-08-09 13:56:10 +0900 (Thu, 09 Aug 2012)

  New Revision: 96284806ab9876734bb01a124f8ce42d5339a618
  https://github.com/groonga/gcs/commit/96284806ab9876734bb01a124f8ce42d5339a618

  Log:
    Return sorted synonyms correctly

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+2 -2)
===================================================================
--- lib/database/domain.js    2012-08-09 13:54:31 +0900 (ad0938d)
+++ lib/database/domain.js    2012-08-09 13:56:10 +0900 (1457332)
@@ -266,8 +266,8 @@ Domain.prototype = {
 
     synonyms = nroonga.formatSelectResult(synonyms);
     var formattedSynonyms = {};
-    Object.keys(synonyms).sort().forEach(function(key) {
-      var terms = synonyms[key][SYNONYMS_COLUMN];
+    Object.keys(synonyms.results).sort().forEach(function(key) {
+      var terms = synonyms.results[key][SYNONYMS_COLUMN];
       formattedSynonyms[key] = terms.sort();
     });
     return formattedSynonyms;
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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