[Groonga-commit] groonga/gcs [master] Fix regression around response XML of IndexDocuments action

Back to archive index

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


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

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

  Log:
    Fix regression around response XML of IndexDocuments action

  Modified files:
    lib/api/2011-02-01/configuration.js

  Modified: lib/api/2011-02-01/configuration.js (+7 -5)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-07-19 18:11:46 +0900 (9203819)
+++ lib/api/2011-02-01/configuration.js    2012-07-19 18:12:54 +0900 (28d1ce3)
@@ -253,11 +253,13 @@ function createIndexDocumentsResponse(options) {
   doc.begin('IndexDocumentsResponse', {version: '1.0'})
     .attribute('xmlns', XMLNS)
     .element('IndexDocumentsResult')
-      .addFragment(options.fieldNames.map(function(fieldName) {
-        var member = new xmlbuilder.XMLFragment(null, 'member');
-        member.text(fieldName);
-        return member;
-      }))
+      .element('FieldNames')
+        .addFragment(options.fieldNames.map(function(fieldName) {
+          var member = new xmlbuilder.XMLFragment(null, 'member');
+          member.text(fieldName);
+          return member;
+        }))
+      .up()
     .up()
     .element('ResponseMetadata')
       .element('RequestId').text(options.requestId || '').up()
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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