Pattern matching while querying
Wed, 03/28/2012 - 00:04
Hi ,
Is there a way with the new java client for views , where we can query one field in the document which matches a specific pattern?
Thanks & Regards,
Divya
Wed, 03/28/2012 - 11:27
Hi ,
As far as i understood from that site is that views have to be created for each pattern to be matched in this case .
please correct me if i am wrong . But after creating a view , can i query for subset of data ,
currently in the new java client we can set range while querying (query.setRange(startRange,endRange)) , Similarly can we pass a pattern while querying.
Thanks & Regards,
Divya
Wed, 03/28/2012 - 23:58
Hey, Even I believed the Same. The Only pattern you can match is starting with any key. And for other's we might have to wait for UnQL. :P
You might want to check this [http://guide.couchdb.org/editions/1/en/cookbook.html] for Pattern matching view Creation!