couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: lucene on opensuse
Date Mon, 10 Jun 2013 12:41:29 GMT
It looks like you've misconfigured things there. This page explains
how to configure correctly:
https://github.com/rnewson/couchdb-lucene/blob/master/README.md

Basically, you've configured 'fti' as a global handler but tried
calling it as a db handler. The README will set you right.

B.

On 10 June 2013 13:30, slymak <slymak@gmail.com> wrote:
> when I'm quering
>  curl "
> http://localhost:5984/fv_howto_130329/_fti/_design/search/by_name?debug=true&q=EXEC
> "
> i get
> {"error":"not_found","reason":"missing"}
>
> couchdb itself get response see
> * curl http://localhost:5984/fv_howto_130329/_design/iname/_view/iname*
> *{"total_rows":156,"offset":0,"rows":[*
> *{"id":"ALTIDCAM","key":"ALTIDCAM","value":null},*
> ....
>
>
> by creating new index searching in name
> {
>     "_id":"_design/foo",
>     "fulltext": {
>         "by_name": {
>             "index":"function(doc) { var ret=new Document(); ret.add(
> doc.name); return ret }"
>         }
>     }
> }
>
> no response
> curl "
> http://localhost:5984/fv_howto_130329/_fti/_design/searchtest/by_name?debug=true&q=EXEC
> "
> {"error":"not_found","reason":"missing"}
>
>
> my couchdb/local.ini settings is
> [couchdb]
> os_process_timeout=60000 ; increase the timeout from 5 seconds
>
> [external]
> fti=/usr/bin/python
> /opt/couchdb-lucene-master/target/couchdb-lucene-0.10.0-SNAPSHOT/tools/couchdb-external-hook.py
>
> [httpd_global_handlers]
> _fti = {couch_httpd_external, handle_external_req, <<"fti">>}
>
> lucene is executed  ./run from
> /opt/couchdb-lucene-master/target/couchdb-lucene-0.10.0-SNAPSHOT/bin # ./run
> 2013-06-10 14:24:02,743 INFO [Config] Index output goes to:
> /opt/couchdb-lucene-master/target/couchdb-lucene-0.10.0-SNAPSHOT/indexes
> 2013-06-10 14:24:02,801 INFO [Main] Accepting connections with
> SelectChannelConnector@localhost:5985
> 2013-06-10 14:24:02,834 INFO [log] Logging to
> org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog
> 2013-06-10 14:24:03,872 INFO [log] jetty-6.1.20
> 2013-06-10 14:24:03,994 INFO [log] Started SelectChannelConnector@localhost
> :5985
>
>
> What should I query to see any lucene reaction please?
>
>
>
>
>
> On Mon, Jun 10, 2013 at 11:44 AM, Robert Newson <rnewson@apache.org> wrote:
>
>> Did you query your index yet?
>> On 10 Jun 2013 10:18, "slymak" <slymak@gmail.com> wrote:
>>
>> > Hello
>> > What simple test I can use to see if couchdb-lucene works well?
>> >
>> > I changed Mandriva to openSuse 12.2
>> > couchdb from 0.11 to 1.2
>> >
>> > Couchdb works fine but couchdb-lucene by starting raise
>> >
>> >
>> couch:/opt/couchdb-lucene-master/target/couchdb-lucene-0.10.0-SNAPSHOT/bin
>> > # ./run
>> > 2013-06-10 11:01:51,900 INFO [Config] Index output goes to:
>> > /opt/couchdb-lucene-master/target/couchdb-lucene-0.10.0-SN
>> >                APSHOT/indexes
>> > 2013-06-10 11:01:51,957 INFO [Main] Accepting connections with
>> > SelectChannelConnector@localhost:5985
>> > 2013-06-10 11:01:51,990 INFO [log] Logging to
>> > org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.S
>> >                              lf4jLog
>> > 2013-06-10 11:01:53,004 INFO [log] jetty-6.1.20
>> > 2013-06-10 11:01:53,143 INFO [log] Started
>> SelectChannelConnector@localhost
>> > :5985
>> >
>> > and doesn't create indexes
>> >
>> > I'm using fulltext search in attachments see
>> >
>> > {
>> >    "_id": "_design/search",
>> >    "_rev": "1-0b891bd5b31df6f4d8872140f9208c88",
>> >    "fulltext": {
>> >        "by_name": {
>> >            "index": "            function(doc) {            var result
>> > = new Document();            for(var a in doc._attachments) {
>> >    result.attachment('default',a);             } return result;}"
>> >        }
>> >    }
>> > }
>> >
>> >
>> > I tried couchdb-lucene 0.6 as well but with the same results.
>> >
>> > amy idea please?
>> >
>> > Fanda
>> >
>>

Mime
View raw message