Couchbase Questions: View

Have a Question? Get it answered by our community

rebbort's picture
Asked 3 months 3 weeks ago

Remove expired keys from view

I want to build view next way, for example:

                343:{'level':4, 'price':124, 'expire':
xuxj's picture
Asked 5 months 3 weeks ago
Latest activity 3 months 4 weeks ago

Using Java to Perform a Multi-Key Get on a Couchbase View


how to query find by name and can pass parameter,
such as
public List findByName(String name){


my english is very pool,i...

jasonfill's picture
Asked 5 months 4 weeks ago

Getting Most Updated/Reliable Data Back From A View

I am looking for best practices for getting updated and reliable data back from a view. I have read a bit about the stale parameter and I understand that sending stale=false will force a reindex prior to returning the results - however it is clear there is a performance hit for this. (...

bmhardy's picture
Asked 6 months 3 weeks ago

Views Maps Queries Javascript and Java


I have been examining the Android couchbase lite GrocerySync application and have some questions.

1. Creating views using Java: The code for the GrocerySync app creates views with Mappers directly in it's Java code. Is it good practice to do this or is it better to create a...

suneel.kumar's picture
Asked 7 months 2 days ago
Latest activity 6 months 4 weeks ago

Why do we need to use rereduce?

I have gone through the documentation available in website to understand the usage of rereduce functions, but I was not able to figure it out. Can somebody explain me the proper use of rereduce with exampled illustrations.

Thanks in advance,

Matzz's picture
Asked 9 months 1 week ago
Latest activity 9 months 1 week ago

When rereduce is triggered

I play with couchbbase beer-sample. I use views to get list of cities in state.
My map/reduce functions work quite well but I wonder when rereduce is triggered.
It looks like after adding new document to bucket whole view is processed again from the begining. Even if I remove...

jesuslg123i's picture
Asked 10 months 2 days ago
Latest activity 9 months 4 weeks ago

Group level on Node.js


I trying to make work the group_level in node.js but I always get this error:

{ [Error
sruthi's picture
Asked 11 months 4 days ago
Latest activity 11 months 3 days ago

how to give muliple composite keys in startkey and endkey to search in views

Hi, i create a view which emit composite keys

function (doc, meta) {
emit([,,doc.age], doc);

i want to get results for multiple composite keys. like [['name1','male','99],['name2','female','99']]

i have group of names along with sex but i...

mwkarl's picture
Asked 11 months 4 days ago
Latest activity 11 months 3 days ago

View Map to return Key/Value pairs as Value

Is it possible to return Key/Value pairs in emit() using cb.query() in a similar way to the return value of cb.get() ?

cb.get() returns the complete object, however a cb.query() returns an indexed array as per the array ([ doc.x, doc.y , doc.z]) format of the emit() return value.


bibhas's picture
Asked 11 months 1 week ago
Latest activity 11 months 5 days ago

How to do number range search?

I have documents like these:

#1 { "start": 99, "end": 110, "country": "US" }
#2 { "start": 112, "end": 126, "country": "CA" }

If a value falls between "start" and "end", inclusive, I...