Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
change examples to index attachments into default field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Oct 23, 2010
1 parent 8449a2c commit 470171d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -259,7 +259,7 @@ function(doc) {

if (doc._attachments) {
for (var i in doc._attachments) {
ret.attachment("attachment", i);
ret.attachment("default", i);
}
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 470171d

Please sign in to comment.