You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.
I've been using pouchdb with a plugin to allow couchdb-lucene to be used locally and cloudant in production - I presume this could be done by extending nano.
However as both extensions are very popular would you consider adding dedicated support for couchdb-lucene also? It would be nice to have a clean, maintained implementation.
Thanks
The text was updated successfully, but these errors were encountered:
// usagevarnano=require('nano');vardb=nano({url: 'http://localhost:5984/foo',searchVendor: nano.CLOUDANT_SEARCH||nano.LUCENE_SEARCH);// in nano.js// declare constants (after line 12)nano.CLOUDANT_SEARCH='cloudant';nano.LUCENE_SEARCH='lucene';// choose viewPath style (around 474)varviewPath;if(meta.type==='search'&&cfg.searchVendor===nano.LUCENE_SEARCH){viewPath='/_fti/local/'+dbName+'/_design/'+ddoc+'/'+viewName;}else{viewPath='_design/'+ddoc+'/_'+meta.type+'/'+viewName;}
The trouble is that couchdb-lucene uses a different path - normally the database name is at the start but instead it comes after the /_fti/local/ prefix. So this would require some further modification in the relax() function I think.
I know this is kinda latte now, but this repository has been merged into apache/couchdb-nano. Could you move your pull request there? I will create an issue there referencing this one. Here is the new issue for tracking.
Hi,
I've been using pouchdb with a plugin to allow couchdb-lucene to be used locally and cloudant in production - I presume this could be done by extending nano.
However as both extensions are very popular would you consider adding dedicated support for couchdb-lucene also? It would be nice to have a clean, maintained implementation.
Thanks
The text was updated successfully, but these errors were encountered: