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

Commit

Permalink
tidy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Apr 21, 2009
1 parent 8328332 commit 8ff99e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ Declare your functions as follows;


<pre> <pre>
{ {
"map": <i>conventional view code goes here</i>", "views": {

<i>conventional view code goes here</i>
},
"fulltext": { "fulltext": {
"by_subject": { "by_subject": {
"defaults": { "store":"yes" }, "defaults": { "store":"yes" },
Expand Down Expand Up @@ -142,7 +143,10 @@ doc.add("2009-01-01T00:00:00Z", {"type":"date"});


// intrepret "value" as a date using the supplied format string // intrepret "value" as a date using the supplied format string
// (see Java's SimpleDateFormat class for the syntax). // (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> </pre>


<h3>Example Transforms</h3> <h3>Example Transforms</h3>
Expand Down

0 comments on commit 8ff99e1

Please sign in to comment.