Permalink
Browse files

tidy docs

  • Loading branch information...
1 parent 8328332 commit 8ff99e140b08127526d68c3ef0be39f6db558c15 Robert Newson committed Apr 21, 2009
Showing with 7 additions and 3 deletions.
  1. +7 −3 README.md
View
10 README.md
@@ -47,8 +47,9 @@ Declare your functions as follows;
<pre>
{
- "map": <i>conventional view code goes here</i>",
-
+ "views": {
+ <i>conventional view code goes here</i>
+ },
"fulltext": {
"by_subject": {
"defaults": { "store":"yes" },
@@ -142,7 +143,10 @@ doc.add("2009-01-01T00:00:00Z", {"type":"date"});
// intrepret "value" as a date using the supplied format string
// (see Java's SimpleDateFormat class for the syntax).
-doc.add("2009-01-01", {"type":"date", "date_format":"YYYY-MM-dd"});
+doc.add("2009-01-01", {"type":"date", "format":"YYYY-MM-dd"});
+
+// intrepret "value" as a number.
+doc.add("100", {"type":"number"});
</pre>
<h3>Example Transforms</h3>

0 comments on commit 8ff99e1

Please sign in to comment.