Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Pattern matching while querying

3 replies [Last post]
  • Login or register to post comments
Wed, 03/28/2012 - 00:04
divyapt
Offline
Joined: 03/06/2012
Groups: None

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

Top
  • Login or register to post comments
Wed, 03/28/2012 - 04:51
biswajit
Offline
Joined: 03/28/2012
Groups: None

You might want to check this [http://guide.couchdb.org/editions/1/en/cookbook.html] for Pattern matching view Creation!

Top
  • Login or register to post comments
Wed, 03/28/2012 - 11:27
divyapt
Offline
Joined: 03/06/2012
Groups: None

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

Top
  • Login or register to post comments
Wed, 03/28/2012 - 23:58
biswajit
Offline
Joined: 03/28/2012
Groups: None

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker