YUKI Hiroshi
null+****@clear*****
Wed Nov 21 20:13:04 JST 2012
YUKI Hiroshi 2012-11-21 20:13:04 +0900 (Wed, 21 Nov 2012) New Revision: fcc360a9a56e5283e4c0099a16cd38ba8d9e43d7 https://github.com/groonga/gcs/commit/fcc360a9a56e5283e4c0099a16cd38ba8d9e43d7 Log: Don't output duplicated index fields Modified files: lib/api/2011-02-01/configuration.js Modified: lib/api/2011-02-01/configuration.js (+6 -1) =================================================================== --- lib/api/2011-02-01/configuration.js 2012-11-21 20:09:36 +0900 (3dd5b63) +++ lib/api/2011-02-01/configuration.js 2012-11-21 20:13:04 +0900 (5899b0f) @@ -433,7 +433,12 @@ handlers.DescribeIndexFields = function(context, request, response, config) { throw new errors.MalformedInputError('Key ' + match[1] + ' may not have a leading \'' + match[1].charAt(0) + '\''); return true; }); - var fieldNames = keys.sort().map(function(key) { + var appeared = {}; + var fieldNames = keys.sort().filter(function(key) { + if (key in appeared) return false; + appeared[key] = true; + return true; + }).map(function(key) { return request.query[key]; }); var fields = fieldNames.length ? -------------- next part -------------- HTML����������������������������...Download