Fixing non working search results in conferences

This commit is contained in:
Julio Ruiz 2026-05-21 08:27:09 -05:00
parent efd752e410
commit 97cf386f96
1 changed files with 4 additions and 2 deletions

View File

@ -254,9 +254,11 @@ async function runSearch(q: string, page = 1, append = false) {
if (seq !== searchSeq) return
const res = (multi?.results?.[0] ?? {}) as TypesenseSearchResponse
const rawGroups = res?.grouped_hits ?? []
const rawGroups = res?.groupedHits ?? []
console.log('Raw groups', rawGroups)
const newGroups: SearchGroup[] = rawGroups.map(g => ({
docId: g.group_key[0]!,
docId: g.groupKey[0]!,
firstHit: g.hits[0]!,
allHits: g.hits
}))