Skip to content
This repository
Browse code

add date example.

  • Loading branch information...
commit 5ff4cda496e86026d52592b98ee2048693b71f4b 1 parent f59999b
Robert Newson authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  README.md
1  README.md
Source Rendered
@@ -85,6 +85,7 @@ function(doc) {
85 85 var result = new Document();
86 86 result.field("subject", doc.subject, "yes");
87 87 result.field("content", doc.content);
  88 + result.date("indexed_at", new Date());
88 89 return result;
89 90 }
90 91 </pre>

0 comments on commit 5ff4cda

Please sign in to comment.
Something went wrong with that request. Please try again.