fix: nil panics rendering last page of search results
1 files changed, 1 insertions(+), 1 deletions(-) M internal/index/search.go
M internal/index/search.go => internal/index/search.go +1 -1
@@ 109,7 109,7 @@ func (index *ReadIndex) search( return nil, errors.WithMessage(err, "failed to execute search query") } results := make([]DocumentMatch, min(ResultsPerPage, bleveResult.Total)) results := make([]DocumentMatch, bleveResult.Hits.Len()) var buf bytes.Buffer for i, result := range bleveResult.Hits { results[i].DocumentMatch = bleveResult.Hits[i]