related: Add config option cardinalityThreshold

Fixes #10744
This commit is contained in:
Bjørn Erik Pedersen
2023-02-23 15:20:31 +01:00
parent d5601e8391
commit e442a63bb7
4 changed files with 106 additions and 2 deletions

View File

@@ -236,5 +236,9 @@ func (s *RelatedDocsHandler) getOrCreateIndex(ctx context.Context, p Pages) (*re
s.postingLists = append(s.postingLists, &cachedPostingList{p: p, postingList: searchIndex})
if err := searchIndex.Finalize(ctx); err != nil {
return nil, err
}
return searchIndex, nil
}