-
Notifications
You must be signed in to change notification settings - Fork 145
_fti url for CouchDB 2.0 #239
Comments
I'm not convinced that using it via |
ah, true, the hook into couchdb's url space is broken. You can hit :5985 of course and it'll happily pull from couchdb 5984 and index the databases there. Extending the namespace in couchdb 2.0 requires erlang code rather than config right now. |
Hi! |
couchdb's port 5986 is a legacy artifact of the merge, it is not cluster aware. the databases you make on 5984 are not usable on 5986 and vice versa. |
Ah oh thanks! Maybe just a little advice/directions for me: I currently used couchdb 1.7 with couchdb-lucene until the high sierra update. Now I have to switch to couchdb2. To have the same functionality as before, should i build the couchdb with the built in search functionality or is there a way to achieve this via the same couchdb-lucene? As far as I understood the "only thing" is the _fti hook. |
couchdb does not have built-in search functionality but I assume you're referring to IBM Cloudant's recently open-sourced search solution (dreyfus/clouseau). That's a fine alternative to couchdb-lucene and designed for the clustering that CouchDB 2.x introduced (I am the author of that solution also). couchdb-lucene is compatible with CouchDB 2.0 (because of BigCouch, it was compatible before CouchDB 2.0 was released), you just can't extend CouchDB's http api like you could in 1.7. |
Thank you for the quick reply. Sorry for the vague description, yes I was thinking of the dreyfus/clouseau solution. I'll give it a try. Thanks! |
As part of the upgrade from 1.6 to 2.0 a bunch of URLs that relate to node-specific things have moved.
For example,
/_config
is now/_node/couchdb@localhost/_config
.The
_fti
URL seems to be similarly affected. But, it is not accessible under the single node, i.e./_node/couchdb@localhost/_fti
does not work.However, accessing CouchDB via the single-node port does work:
I think this means that the README documentation should be updated to say that either:
_fti
endpoint will be under port 5896_fti
endpoint to the CouchDB config so it appears on port 5984.But I'm not sure which. I don't think there is any harm in accessing it via 5896, except that it's annoying it's a different port.
The text was updated successfully, but these errors were encountered: