I've written a map function that has
emit([doc.university,doc.degree,doc.studentName],1)
Now, I'd like to query the exact rows (not a key range) as following
query.keys = [[university1,degree1,{}],[university2,degree2,{}]]
I'm fetching all the students (sorted based on their name) that belong to specific degrees and universities. I received 0 results when I tried.
If you want all the rows for a specific university, you do need to use a key range:
startKey = [university]
endKey = [university, {}]
emit([doc.university,doc.degree,doc.studentName],1)
On Sep 22, 2015, at 10:26 AM, Aj <ajith...@icloud.com> wrote:
And, If I want more than one specific university rows ? for example, get all the rows for university names, "MIT" & "VTU”.
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?