couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Ronchetti <bruno.ronche...@mac.com>
Subject Re: Help with couchdb-lucene
Date Thu, 25 Feb 2010 15:44:38 GMT
Hi Robert,  thanks for your kind reply. 

I have done as you advised and removed the update_notification from the ini.

After restarting I query the db with:

curl  http://127.0.0.1:5984/pbo_documents/_fti/fulltext/by_content?q=pippo

For reference my view continues to be:
{
   "_id": "_design/fulltext",
   "_rev": "7-0d7cc995c51f36af49af2bfe18213f27",
   "language": "javascript",
   "fulltext": {
       "by_content": {
           "index": "function(doc) {  var ret=new Document();  ret.add(doc.name);  return
ret;}"
       }
   }
}

I hope the mapping of the view name etc is correct.

But I only get back:

{"error":"{bad_return_value,{os_process_error,{exit_status,1}}}","reason":"{gen_server,call,
            [<0.7408.0>,
             {execute,{[{<<\"info\">>,
                         {[{db_name,<<\"pbo_documents\">>},
                           {doc_count,19},
                           {doc_del_count,0},
                           {update_seq,44},
                           {purge_seq,0},
                           {compact_running,false},
                           {disk_size,180313},
                           {instance_start_time,<<\"1267109674800303\">>},
                           {disk_format_version,4}]}},
                        {<<\"id\">>,null},
                        {<<\"method\">>,'GET'},
                        {<<\"path\">>,
                         [<<\"pbo_documents\">>,<<\"_fti\">>,<<\"fulltext\">>,
                          <<\"by_content\">>]},
                        {<<\"query\">>,{[{<<\"q\">>,<<\"pippo\">>}]}},
                        {<<\"headers\">>,
                         {[{<<\"Accept\">>,<<\"*/*\">>},
                           {<<\"Host\">>,<<\"127.0.0.1:5984\">>},
                           {<<\"User-Agent\">>,
                           <<\"curl/7.19.7 (i386-apple-darwin10.2.0) libcurl/7.19.7
OpenSSL/0.9.8l zlib/1.2.3\">>}]}},
                        {<<\"body\">>,undefined},
                        {<<\"peer\">>,<<\"127.0.0.1\">>},        
               {<<\"form\">>,{[]}},                        {<<\"cookie\">>,{[]}},
                        {<<\"userCtx\">>,
                         {[{<<\"db\">>,<<\"pbo_documents\">>},
                           {<<\"name\">>,null},
                           {<<\"roles\">>,[<<\"_admin\">>]}]}}]}},
             infinity]}"}

Hmmm. Couchdb apparently points to the right db (pbo_documents) but stops somewhere down the
road.

What I am doing wrong?

Thanks in advance and again congrats fro the great software.

Regards. Bruno.




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message