Re: iOS Swift: Questions

2017-12-12 Thread Jens Alfke
> On Dec 7, 2017, at 9:48 AM, Parvez Qureshi > wrote: > > Currently I am using pods for Couchbase lite iOS SDK framework. If one want > to include couchbase lite iOS SDK source code for version 1.4.1 then how we > can include it in a swift iOS project? Please

Re: iOS Swift: Questions

2017-12-07 Thread Parvez Qureshi
_ From: mobile-couchbase@googlegroups.com <mobile-couchbase@googlegroups.com> on behalf of parvez.qure...@decurtis.com <parvez.qure...@decurtis.com> Sent: Thursday, December 7, 2017 6:33:30 PM To: Couchbase Mobile Subject: Re: iOS Swift: Questions I have filed an issue over GitHub&

Re: iOS Swift: Questions

2017-12-07 Thread parvez . qureshi
I have filed an issue over GitHub . On Tuesday, November 14, 2017 at 11:11:12 PM UTC+5:30, Jens Alfke wrote: > > > > > On Nov 10, 2017, at 5:19 AM, parvez@decurtis.com > wrote: > > > > Even after specifying groupLevel as 3, I

Re: iOS Swift: Questions

2017-11-14 Thread Jens Alfke
> On Nov 10, 2017, at 5:19 AM, parvez.qure...@decurtis.com wrote: > > Even after specifying groupLevel as 3, I always receive four elements in each > row of keys array of reduce block. Also If I specify startKey / endKey then > query do not return any result (reduce block is not executed) but

Re: iOS Swift: Questions

2017-11-10 Thread parvez . qureshi
Even after specifying groupLevel as 3, I always receive four elements in each row of keys array of reduce block. Also If I specify startKey / endKey then query do not return any result (reduce block is not executed) but if I omit startKey / endKey then I am able to get results in reduce

Re: iOS Swift: Questions

2017-11-08 Thread Jens Alfke
> On Nov 8, 2017, at 9:49 AM, Parvez Qureshi > wrote: > > For an emit with key as an array of say 4 fields, if we specify group level > as 3 then will the keys parameter of reduce function will also be an array > with element count as 3? I mean to say does group

Re: iOS Swift: Questions

2017-11-08 Thread Parvez Qureshi
i36> From: mobile-couchbase@googlegroups.com <mobile-couchbase@googlegroups.com> on behalf of Jens Alfke <j...@couchbase.com> Sent: Thursday, November 2, 2017 2:08:08 AM To: Couchbase Mobile Subject: Re: iOS Swift: Questions On Oct 30, 2017, at 8:02 AM, parvez.qu

Re: iOS Swift: Questions

2017-11-08 Thread Parvez Qureshi
Outlook for Android<https://aka.ms/ghei36> From: mobile-couchbase@googlegroups.com <mobile-couchbase@googlegroups.com> on behalf of Jens Alfke <j...@couchbase.com> Sent: Thursday, November 2, 2017 2:08:08 AM To: Couchbase Mobile Subject: Re: iO

Re: iOS Swift: Questions

2017-11-01 Thread Jens Alfke
> On Oct 30, 2017, at 8:02 AM, parvez.qure...@decurtis.com wrote: > > 1.Is it possible to create a CBLView with multiple emit statements like > emit([key1,key2,key3],doc) > emit([key4,key5,key6],doc) Sure, it’s a common technique. (As for emitting ‘doc’ as the value — it’s not advisable, but

Re: iOS Swift: Questions

2017-11-01 Thread Traun Leyden
It sounds like you are asking about querying. Check out: https://developer.couchbase.com/documentation/mobile/1.4/guides/couchbase-lite/native-api/query/index.html in particular the section: Unfortunately this has obvious problems. The correct stop value to use > turns out to be an empty

Re: iOS Swift: Questions

2017-11-01 Thread parvez . qureshi
Consider emit as below: emit([key1,key2,key3,key4],doc) emit([key3,key2,key1,key4],doc) In android we require to specify a hash map at the end in endKey so I want to know if we need to specify any such information in iOS swift as well? Also can we specify same key values in both startKey &

Re: iOS Swift: Questions

2017-10-30 Thread Traun Leyden
That should work as far as I know, but if you emit the entire doc (multiple times) it's really going to bloat your index. More discussion here and here

iOS Swift: Questions

2017-10-30 Thread parvez . qureshi
For a Couchbase lite iOS application, 1.Is it possible to create a CBLView with multiple emit statements like emit([key1,key2,key3],doc) emit([key4,key5,key6],doc) 2. Do we need to add some kind of hash value when we specify an endKey for a CBLLiveQuery? Thanks -- You received this message