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".
Regards,
John