incubator-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 19:05:54 GMT
Robert, thanks again for your help.

I have pulled from git yesterday and the couchdb-external-hook.py. So I assume it is the latest.
In fact the download has provided me with two such files (one inside the /tools folder and
one up in the home folder), but they look the same to me.

I am on OS X 10.6.2.

Tomorrow I will try and put together a list of software versions i use (it is pretty late
now here in Europe). 

Thanks again and regards.

Bruno



On 25/feb/2010, at 18.41, Robert Newson wrote:

> 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