On Mar 29, 2008, at 16:58 , Damien Katz wrote:
Field names must not start with an underscore as they are reserved for CouchDB, that's why you get the error. Just rename it to "fulltext_options" and it should work.

To clarify, in case you are wondering why fulltext search is not considered being inside CouchDB. The fulltext search system is not part of the core functionality, so it doesn't have access to the underscore fields.

Cheers
Jan
==


On Mar 29, 2008, at 6:40 PM, Søren Hilmer wrote:

Have I missed something?
I am trying to put the below design document into couch, but it complaints
with an error saying: Bad special document member: _fulltext_options

Is _fulltext_options something that needs to be added into couch itself? If so
I have missed that requirement in our discussion.

{
"_id":"_design/fulltextsearch",
"_rev":"123",
"_fulltext_options": {
  "views": {
    "names" : {"index":"view-value", "return":"document"},
    "cities": {"index":"view-key", "return":"view-value"}
  }
}
}

Have fun
Søren

--
Søren Hilmer, M.Sc., M.Crypt.
wideTrail                       Phone:  +45 25481225
Pilevænget 41           Email:  [EMAIL PROTECTED]
DK-8961  Allingåbro     Web:    www.widetrail.dk



Reply via email to