Permalink
Browse files

add date example.

  • Loading branch information...
1 parent f59999b commit 5ff4cda496e86026d52592b98ee2048693b71f4b Robert Newson committed Apr 4, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
@@ -85,6 +85,7 @@ function(doc) {
var result = new Document();
result.field("subject", doc.subject, "yes");
result.field("content", doc.content);
+ result.date("indexed_at", new Date());
return result;
}
</pre>

0 comments on commit 5ff4cda

Please sign in to comment.