incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aditya Agustyana <aditya.ja...@gmail.com>
Subject Re: how to make sure couchdb-lucene is working ?
Date Tue, 25 Jan 2011 00:06:42 GMT
oh well, i put the config in wrong file

i put it in /couch/couchdb-lucene-0.6.0/conf/couchdb-lucene.ini rather than
/Applications/CouchDBX.app/Contents/Resources/couchdbx-core/couchdb_1.0.1/etc/couchdb/local.ini

so i moved the config and couchdb-lucene worked very well

thanks Robert


Cheers,
Aditya


On Tue, Jan 25, 2011 at 1:46 AM, Robert Newson <robert.newson@gmail.com>wrote:

> Did you make the above configuration changes to local.ini and then
> restart couchdb?
>
> The "missing" is typically coming from couchdb to say that there's no
> _fti handler.
>
> B.
>
> On Mon, Jan 24, 2011 at 3:28 PM, Keith Gable <ziggy@ignition-project.com>
> wrote:
> > IIRC, it's _design/ObjectName/_fti.
> >
> > On Mon, Jan 24, 2011 at 9:10 AM, Aditya Agustyana
> > <aditya.jamop@gmail.com> wrote:
> >> hi All
> >>
> >> i've installed couchdb 1.0.1 via CouchDBX on OSX Leopard then installed
> >> couchdb-lucene 0.6.0 and added configuration below
> >>
> >> [couchdb]
> >> os_process_timeout=60000 ; increase the timeout from 5 seconds.
> >>
> >> [external]
> >> fti=/usr/bin/python
> >> /couch/couchdb-lucene-0.6.0/tools/couchdb-external-hook.py
> >>
> >> [httpd_db_handlers]
> >> _fti = {couch_httpd_external, handle_external_req, <<"fti">>}
> >>
> >> then execute ./bin/run and gave me output like this
> >>
> >> 2011-01-24 21:41:21,828 INFO [Main] Index output goes to:
> >> /couch/couchdb-lucene-0.6.0/indexes
> >> 2011-01-24 21:41:21,860 INFO [Main] Accepting connections with
> >> SelectChannelConnector@localhost:5985
> >> Jan 24, 2011 9:41:21 PM org.mortbay.log.Slf4jLog info
> >> INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via
> >> org.mortbay.log.Slf4jLog
> >> Jan 24, 2011 9:41:22 PM org.mortbay.log.Slf4jLog info
> >> INFO: jetty-6.1.20
> >> Jan 24, 2011 9:41:22 PM org.mortbay.log.Slf4jLog info
> >> INFO: Started SelectChannelConnector@localhost:5985
> >>
> >> i didn't see any errors so i assumed couchdb-lucene is worked
> >>
> >> and then i created project_app database and add data to it
> >>
> >> {
> >>   "_id": "12ecdb20c189895ca50579a3550010af",
> >>   "_rev": "1-2491abee5588e2b9cc1bb82907eda5f8",
> >>   "name": "ms ultimate",
> >>   "created_at": "2011/01/24 20:30:08",
> >>   "updated_at": "2011/01/24 20:30:08",
> >>   "doc_type": "Project",
> >>   "client_id": "Microsoft",
> >>   "description": "ultimate software"
> >> }
> >>
> >> and then i create index function and add it to futon
> >>
> >> {
> >>    "_id":"_design/foo",
> >>    "fulltext": {
> >>        "by_name": {
> >>            "index":"function(doc) { var ret=new Document(); ret.add(
> >> doc.name); return ret }"
> >>        },
> >>        "by_description": {
> >>            "index":"function(doc) { var ret=new Document();
> >> ret.add(doc.description); return ret }"
> >>        }
> >>    }
> >> }
> >>
> >>
> >>
> >> however when i tried to access
> >> http://localhost:5984/project_app/_fti/_design/foo/by_name?q=ultimatevia
> >> browser, it gave me response like this
> >>
> >> {"error":"not_found","reason":"missing"}
> >>
> >> even i accessed  http://localhost:5984/project_app/_fti, it gave me
> same
> >> error
> >>
> >> i also tried to ls couchdb-lucene/indexes directory and found nothing
> >>
> >> i'm not sure what the problem, seems couchdb won't connect to
> couchdb-lucene
> >> at all, so what should i do to solve this ?, any help would be
> appreciated
> >>
> >> regards
> >>
> >>
> >> Aditya
> >>
> >> --
> >> profile : http://about.me/aditya.agustyana
> >> ym / twitter : kirconboy
> >> skype : adit_skype
> >>
> >> Be Nice. Treat others with the same respect you'd want them to treat
> you.
> >> We're all here to learn together.  Be tolerant of others who may not
> know
> >> everything you know. BRING YOUR SENSE OF HUMOR (stackoverflow.com)
> >>
> >
> >
> >
> > --
> > Keith Gable
> > A+ Certified Professional
> > Network+ Certified Professional
> > Web Developer
> >
>



-- 
profile : http://about.me/aditya.agustyana
ym / twitter : kirconboy
skype : adit_skype

Be Nice. Treat others with the same respect you'd want them to treat you.
We're all here to learn together.  Be tolerant of others who may not know
everything you know. BRING YOUR SENSE OF HUMOR (stackoverflow.com)

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