• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

blevesearch / bleve / 30386007559
52%

Build:
DEFAULT BRANCH: master
Ran 28 Jul 2026 06:08PM UTC
Jobs 1
Files 428
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2026 06:07PM UTC coverage: 52.439% (+0.1%) from 52.323%
30386007559

push

github

web-flow
MB-72489: top-N collector optimizations  (#2385)

Top-N collector optimizations:

**Changes:**
- Replace `container/heap` with an inline ternary heap in the top-N
collector — shallower siftDown, no interface dispatch. Collector
benchmarks: ~14% faster (a hand-rolled binary heap measures ~10%,
benchstat, n=10).
- `collectStoreHeap.Final()`: extract results via one in-place
`sort.Slice` + sequential copy instead of repeated heap pops.
- `DocumentMatch.Reset()`: zero only the fields not restored afterwards,
instead of wiping the whole struct.
- Early-stop for `score=none` + `Size`: stop scanning once `Size+From`
hits are collected, when nothing depends on unseen matches (no facets,
KNN, `SearchAfter`, nested, or field sort). Adds
`SearchResult.TotalRelation` (`"eq"`/`"gte"`) since `Total` becomes a
lower bound for such requests.
- Remove the unused `collectStoreList` type.

---------

Co-authored-by: Steve Yen <steve.yen@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

80 of 92 new or added lines in 5 files covered. (86.96%)

6 existing lines in 2 files now uncovered.

19917 of 37981 relevant lines covered (52.44%)

0.59 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
52.95
-0.84% search/collector/topn.go
2
52.26
-0.11% search.go
2
93.42
11.28% search/collector/heap.go

Coverage Regressions

Lines Coverage ∆ File
4
79.89
-0.77% index/scorch/merge.go
2
93.42
11.28% search/collector/heap.go
Jobs
ID Job ID Ran Files Coverage
1 30386007559.1 28 Jul 2026 06:08PM UTC 428
52.44
GitHub Action Run
Source Files on build 30386007559
  • Tree
  • List 428
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9d24b6bc on github
  • Prev Build on master (#30118928861)
  • Next Build on master (#31163377552)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc