couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steffen Mutter <>
Subject Howto (example) needed for reduce function
Date Sun, 30 Jan 2011 07:00:12 GMT

I have a view like this:
function(doc) {
reduced like this:
function(keys, values) {
  return true;

Giving me results like this:

"SG Stutensee"	true
"SG Stutensee 2" true
"SG Stutensee 3" true
"SG Stutensee 4" true

What I want is:
reduce the results and cut off the last numbers at the end of the club
name (if any) when single and have a space before the number to get a
single result for a handball club (which actually shows all the teams
for a club)

Is there any way to get it done?

Kind regards,

View raw message