The example on the wiki page is the most trivial example. Look at the examples at http://github.com/rnewson/couchdb-lucene for less trivial ones.
The reason for a Document object is that there are many different ways to index your date (different fields, numeric, date, tokenized, not tokenized, stored, not stored, etc). B. On Thu, Jun 10, 2010 at 7:49 PM, Norman Barker <norman.bar...@gmail.com> wrote: > Hi, > > why in > > http://wiki.apache.org/couchdb/Full_text_search > > does the index function create a new document and add results to it? > > is it equally valid just to return a string? > > I have nearly finished the clucene integration now, I will be posting > some code towards the end of the week. > > If I have missed something with the new Document() in the index js > function please let me know. > > thanks, > > Norman >