Fixing non working search results in conferences
This commit is contained in:
parent
efd752e410
commit
97cf386f96
|
|
@ -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
|
||||
}))
|
||||
|
|
|
|||
Loading…
Reference in New Issue