Permalink
Browse files

change examples to index attachments into default field.

  • Loading branch information...
1 parent 8449a2c commit 470171d758c795b0c882bfddafd7623c9bc75c3a Robert Newson committed Oct 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -259,7 +259,7 @@ function(doc) {
if (doc._attachments) {
for (var i in doc._attachments) {
- ret.attachment("attachment", i);
+ ret.attachment("default", i);
}
}
@@ -293,7 +293,7 @@ function(doc) {
function(doc) {
var result = new Document();
for(var a in doc._attachments) {
- result.attachment("attachment", a);
+ result.attachment("default", a);
}
return result;
}

0 comments on commit 470171d

Please sign in to comment.