Cannot get couch to recognize _fti #166

Closed
mark-hahn opened this Issue Jul 19, 2012 · 6 comments

Comments

Projects
None yet
3 participants

I've got this in my couchdb local.ini. I know it's in ok because I see it in httpd_global_handlers config in futon.

_fti = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5985">>}

Lucene is running ok.

 curl http://127.0.0.1:5985
{"couchdb-lucene":"Welcome","version":"0.9.0-SNAPSHOT"}

Yet when I try to access _fti through couch i'm getting this ...

 curl http://localhost:5984/myDbName/_fti
{"error":"not_found","reason":"missing"}

What could I be doing wrong? Versions are 0.9.0-SNAPSHOT (today, Wed 7/18) and CouchDB 1.2.0.

--- edit ---
I found something interesting. If I leave out the database name I get a proxied response from couch.

 curl http://root:tbgcomps2@localhost:5984/_fti
{"couchdb-lucene":"Welcome","version":"0.9.0-SNAPSHOT"}

I'm confused about the query format in general. Why would myDbName be before _fti in this request?

curl http://localhost:5984/myDbName/_fti
Owner

rnewson commented Jul 19, 2012

Read the README more carefully. Looks like you're missing some config
and/or using the wrong URL.

Sent from my iPhone

On 19 Jul 2012, at 06:25, mark-hahn
reply@reply.github.com
wrote:

I've got this in my couchdb local.ini. I know it's in ok because I see it in httpd_global_handlers config in futon.

_fti = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5985">>}

Lucene is running ok.

curl http://127.0.0.1:5985

{"couchdb-lucene":"Welcome","version":"0.9.0-SNAPSHOT"}

Yet when I try to access _fti through couch i'm getting this ...

curl http://localhost:5984/ri/_fti

{"error":"not_found","reason":"missing"}

What could I be doing wrong? Versions are 0.9.0-SNAPSHOT (today, Wed 7/18) and CouchDB 1.2.0.


Reply to this email directly or view it on GitHub:
#166

Thanks for the quick response.

Read the README more carefully.

I have and I'm confused about how URLs should be structured. Should I ask for help on the couchdb forum?

Which of these is correct? They are contradictory.

http://127.0.0.1:5984/_fti/local/db1/_design/cl-test/idx?q=hello

or

http://localhost:5984/database/_fti/_design/foo/by_subject?q=hello

I am 99% sure my config is correct (see the curl results in OP) yet both of the forms above don't work. They always give

{"error":"not_found","reason":"missing"}

I'm moving this to couchdb-user@apache.org. Thanks for you trouble.

mark-hahn closed this Jul 19, 2012

Owner

rnewson commented Jul 19, 2012

Thanks. Currently on vacation hence intermittent responses.

Sent from my iPhone

On 19 Jul 2012, at 18:58, mark-hahn
reply@reply.github.com
wrote:

I'm moving this to couchdb-user@apache.org. Thanks for you trouble.


Reply to this email directly or view it on GitHub:
#166 (comment)

When it is convenient could you take a look at my post in the couchdb mailing list? I've clarified things there a bit better than I did here. There is no rush.

For those who have found this issue while searching for help with this same problem, the mailing list thread that contains the eventual resolution can be found at: http://mail-archives.apache.org/mod_mbox/couchdb-user/201207.mbox/%3CCACrj35H5y-f_2JAxE7s%2BdZQfZ%3D12orSPi947tuznWAwmXF-j3A%40mail.gmail.com%3E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment