I receive all the results of my view (the full text search does not work).
I use the plugin couchbase-lite for cordova 3.2 on ios
$ajax({
url: 'http://lite.coachbase./db/_design/design/view/_view/searchviewdoc?full_text=searchstring'
}).then(function(data){
var jsonstring = (JSON.stringify(data));
log(jsonstring);
}
});
On May 29, 2015, at 6:57 AM, Philipp Hecht <philip...@bmtg.ch> wrote:i also want to the full-text search. Is it correct that the api call only works in Coachbase Lite 2 beta?
I tried it with Coachbase Lite 1.0.4 it doesn' t work in combination with phonegap. Or i do something wrong.
function setupViews(db, cb) { var design = "_design/view" db.put(design, { views: { searchviewdoc: { map: function (doc) { if (doc.type == "ITM" && doc.item_descr) { emit(doc.id, doc.item_descr) } }.toString() }, } }, function () { cb(false, db([design, "_view"])) }) }
On May 31, 2015, at 5:59 AM, Philipp Hecht <philip...@bmtg.ch> wrote:i use the IOS version of Cochbase Lite. Here is my map function. the view works only when i add the parameter ?full_text=searchstring it doesn't work. I want to search in item_descr.
On Jun 1, 2015, at 12:21 AM, Philipp Hecht <philip...@bmtg.ch> wrote:Jens, Thank you for your really fast response:-) . When i write the native code with CBLTextkey, i can call the Index over the Api is that correct?
At the moment the coachbase Lite Full text Search function is only supported for IOS? Is that correct?
On Jun 1, 2015, at 1:41 AM, Philipp Hecht <philip...@bmtg.ch> wrote:Is it eventually planned to create the index over javascript?
or do you know a good solution how can i search full text offline (plattforms IOS, Android) over the coachbase lite database?
On Jun 2, 2015, at 11:30 AM, Philipp Hecht <philip...@bmtg.ch> wrote:thank you. Have you an example how can do this with CBLTextkey?