> If you want all the rows for a specific university, you do need to use a 
> key range: 
>         startKey = [university] 
>         endKey = [university, {}] 
>

And, If I want more than one specific university rows ? for example,  get 
all the rows for university names, "MIT" & "VTU".

Let me explain again.

emit([doc.university,doc.degree,doc.studentName],1)

 
I want all the rows sorted based on 'studentName' where university is "MIT" 
and degrees are "Bachelor" & "Master". 

I know that query.keys = [ ["MIT","Bachelor","Aj"], ["MIT", "Master", "AJ"] 
] would gimme matching results.  But, I don't know student names. So, I 
tried putting an empty dictionary to indicate that I want all the 
studentName to be included. 

That doesn't seems to be working. Can't this be made to work? 

I know that I can write a new view as 
emit([doc.university,doc.degree],studentName) 
 and perform sorting in-memory or using sortDescriptors.  But I'm trying to 
find a solution by avoiding this. 

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/c7ad90c3-f781-45d6-a769-5d4bd2558d12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to