Re: String expressions in query keys

2015-02-03 Thread Jens Alfke
> On Feb 3, 2015, at 12:51 PM, Kevin Lord wrote: > > Sorry, one more question. If I understand correctly, the postFilter step is > done after any reduce, correct? So it can't be used to filter rows before > counting them in a reduce? I would simply have to specify mapOnly = true and > count t

Re: String expressions in query keys

2015-02-03 Thread Kevin Lord
I think we can get away with a postFilter, as the key will be an array, and the first item must be an exact match which should greatly limit the results. Sorry, one more question. If I understand correctly, the postFilter step is done after any reduce, correct? So it can't be used to filter row

Re: String expressions in query keys

2015-02-03 Thread Jens Alfke
> On Feb 3, 2015, at 5:56 AM, Kevin Lord wrote: > > Thanks Jens, that makes sense. > > what if I wanted to match on a partial first name or last name? Say I've > broken the name up as much as I can beforehand, and emitted the multiple > keys, but I'd like to get all results that start with "J

Re: String expressions in query keys

2015-02-03 Thread Kevin Lord
Also, does the postFilter happen before or after reducing? P.S. - Just a heads up. It seems the main documentation on the Couchbase Mobile site is a bit out of date. Had to check the docs on Github to find postFilter. On Tuesday, February 3, 2015 at 9:56:29 AM UTC-4, Kevin Lord wrote: > > Thank

Re: String expressions in query keys

2015-02-03 Thread Kevin Lord
Thanks Jens, that makes sense. As for your last example, that would allow me to do whole matches on the individual parts of the string. However, and this is stretching this particular example a bit, what if I wanted to match on a partial first name or last name? Say I've broken the name up as m

Re: String expressions in query keys

2015-02-02 Thread Jens Alfke
> On Feb 2, 2015, at 5:36 PM, Kevin Lord wrote: > > Is it possible to use any kind of regular expressions or wildcards in string > keys when querying a view? I would really like to match on portions of a > string aside from the beginning. In general, you can do this by querying the entire vie