Skip to content

Commit

Permalink
Remove per-version descriptions from search index
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jul 24, 2011
1 parent 946dd81 commit 5a2161e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions registry/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,6 @@ ddoc.lists.index = function (head, req) {
if (doc.versions[i].repository && !doc.repository) {
p.repository = doc.versions[i].repository
}
var md = p.description
, vd = doc.versions[i].description
md = md && md.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim()
vd = vd && vd.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim()
if (vd && vd !== md) {
p.descriptions = p.descriptions || {}
p.descriptions[i] = doc.versions[i].description
if (!p.description) {
p.description = doc.versions[i].description
}
}
if (doc.versions[i].keywords) p.keywords = doc.versions[i].keywords

p.versions[i] = "http://"+req.headers.Host+"/"+
Expand Down

0 comments on commit 5a2161e

Please sign in to comment.