openvibers/openvibe.report Commits

The Search body leaves out the title and summary it repeated (#71)

OP OpenVibers committed 12 days ago · 1434854e5d · 1 file, +2 −1

Search's snippet reads the summary and body together; the body restated the title and summary, so
results repeated themselves. It keeps what neither says.

Changes

ddiff --git a/server/search-index.js b/server/search-index.js
iindex cd0c203..a9ff279 100644
---- a/server/search-index.js
++++ b/server/search-index.js
@@@ -44,7 +44,8 @@ function describeTopic(t) {
noindex: !takes,
title: `${t.title}: The Rundown`,
summary: [head, count ? `${count} on OpenVibe.Live.` : ''].filter(Boolean).join(' '),
-- body: [t.title, t.headline, t.summary, kind ? `${kind} topic on The Rundown.` : '', count].filter(Boolean).join('\n'),
++ // The snippet reads the summary and body together: the body is what streamers said, not the headline again.
++ body: [t.summary, kind ? `${kind} topic on The Rundown.` : ''].filter(Boolean).join('\n'),
facets: { ...(t.kind ? { kind: t.kind } : {}), takes, streamers },
authorship: { mode: 'ai' },
publishedAt: iso(t.first_seen_at),