YUKI Hiroshi
null+****@clear*****
Wed Nov 21 20:52:56 JST 2012
YUKI Hiroshi 2012-11-21 20:52:56 +0900 (Wed, 21 Nov 2012) New Revision: 9b9627a64ceb5690873dc6ff6b5ee069a10c0c34 https://github.com/groonga/gcs/commit/9b9627a64ceb5690873dc6ff6b5ee069a10c0c34 Log: Don't return duplicated index field Modified files: lib/api/2011-02-01/configuration.js Modified: lib/api/2011-02-01/configuration.js (+5 -5) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-11-21 20:49:24 +0900 (2e26ad8) +++ lib/api/2011-02-01/configuration.js 2012-11-21 20:52:56 +0900 (7aa391e) @@ -473,12 +473,12 @@ handlers.DescribeIndexFields = function(context, request, response, config) { return true; }); var appeared = {}; - var fieldNames = keys.sort().filter(function(key) { - if (key in appeared) return false; - appeared[key] = true; - return true; - }).map(function(key) { + var fieldNames = keys.sort().map(function(key) { return request.query[key]; + }).filter(function(name) { + if (name in appeared) return false; + appeared[name] = true; + return true; }); var fields = fieldNames.length ? fieldNames.map(function(name) { -------------- next part -------------- HTML����������������������������...ダウンロード