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"]))

       })

    }



Am Freitag, 29. Mai 2015 18:11:49 UTC+2 schrieb Jens Alfke:
>
>
> On May 29, 2015, at 6:57 AM, Philipp Hecht <[email protected] 
> <javascript:>> wrote:
>
> i also want to the full-text search. Is it correct that the api call only 
> works in Coachbase Lite 2 beta?
>
>
> 1.0 beta 2 or later. (Assuming you’re using the iOS version of Couchbase 
> Lite. It’s not on the other platforms.)
>
> I tried it with Coachbase Lite 1.0.4 it doesn' t work in combination with 
> phonegap. Or i do something wrong.
>
>
> What does your map function look like?
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/153d9ba0-5999-444f-bfbe-6213b1b57264%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to