On Jul 7, 2017, at 3:27 PM, विश्वासो वासुकिजः (Vishvas Vasuki) <[email protected]> wrote: > > I've got a couchbase lite db, which I pull-replicate (using Java/ scala > couchbase lite code) with a couchdb database. The couchdb database has some > views (named _design/chapter_index ). But, from some tests > (booksDb.getExistingView("chapter_index") returns null), I suspect that such > views don't appear in the couchbaselite db even after syncing.
Couchbase Lite doesn’t support JavaScript map functions by default; there’s an extra library you’ll need to add, which should come with it. (I’m not sure about Java, but this is true for iOS/Mac.) Once you’ve got that set up, you need to use the right view name. Since design docs can contain multiple views, you have to use a view name that’s the design doc's ID plus a slash plus the view name. E.g. “chapter_index/someview”. —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/ADE0DED3-041B-4B55-B71C-5527BDC71C9D%40mooseyard.com. For more options, visit https://groups.google.com/d/optout.
