Skip to content

Commit

Permalink
Merge branch 'main' of github.com:svera/coreander
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Jan 13, 2025
2 parents c259e07 + ac7df70 commit ed5c595
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
Binary file added doc-detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions internal/index/bleve_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (b *BleveIndexer) SameSubjects(slugID string, quantity int) ([]Document, er
typeQuery.SetField("Type")
bq.AddMust(typeQuery)

res := make([]Document, quantity)
res := make([]Document, 0, quantity)
for i := 0; i < quantity; i++ {
doc, err := b.runQuery(bq, 1)
if err != nil {
Expand All @@ -278,7 +278,7 @@ func (b *BleveIndexer) SameSubjects(slugID string, quantity int) ([]Document, er
if len(doc) == 0 {
return res, nil
}
res[i] = doc[0]
res = append(res, doc[0])
for _, slug := range doc[0].AuthorsSlugs {
qa := bleve.NewTermQuery(slug)
qa.SetField("AuthorsSlugs")
Expand Down
Binary file added reading-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added reading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot.png
Binary file not shown.
Binary file added search-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ed5c595

Please sign in to comment.