couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Norris" <>
Subject Re[2]: couchdb data structure
Date Sat, 23 Nov 2013 08:17:11 GMT
  Hi Jens,
thank you for your answers and your patience.
You said
"Sure. In your example, the map function just has to do
>  emit(doc.fname, null);
>  emit(doc.lname, null);
>So now both the first and last names are in the index, so view queries 
>will find both first and last names matching your key."
Do you mean using the keys parameter or the key parameter? As the key 
parameter would consist of a single value eg "fred" so it would find all 
of the users with a first name of "fred" but not just the single 
document of "fred smith".

View raw message