couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: Help with couchdb-lucene
Date Thu, 25 Feb 2010 17:41:57 GMT
Bruno,

First, verify you have the latest couchdb-external-hook.py in there,
there was an encoding bug a while back that's been fixed.

If that doesn't work, let me know your OS and versions of all relevant
software, perhaps there's another encoding problem lurking.

B.

On Thu, Feb 25, 2010 at 10:44 AM, Bruno Ronchetti
<bruno.ronchetti@mac.com> wrote:
> 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
View raw message