couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "FullTextSearch" by JanLehnardt
Date Thu, 03 Apr 2008 20:51:25 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/FullTextSearch

------------------------------------------------------------------------------
  For this example the string "database\n" followed by "+ query +string\n" is
  transmitted to stdout.
  
- The result of the search is received through stdin and displayed in the shell,
- currently the format of this is not specified and left to the
- particular search engine. (This is not entirely true, I'll update this section
- soonish, Jan)
+ The result must follow this exact scheme to ensure that CouchDB understands
+ it. The first line must be "ok\n". The next two lines contain the id of the 
+ highest ranking document that matches the query and the score or rank: 
+ "docid1\n7\n". These two lines are repeated for all matching documents. 
+ The end of the result must be signalled with an empty newline "\n\n". 
  
+ In case of an error, the first line consists of "error\n" and the second
+ line of the error message: "Invalid Foo Condition\n".
  
  ==== setup ====
  The searcher is started by CouchDB using the commandline specified in

Mime
View raw message