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

rero / sonar / 32015241076
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: fix/ris-bibtex-export-context-priority
DEFAULT BRANCH: master
Ran 17 Aug 2026 09:39AM UTC
Jobs 1
Files 288
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

17 Aug 2026 09:26AM UTC coverage: 94.78% (+0.08%) from 94.697%
32015241076

push

github

PascalRepond
fix(suggestions): suggest values, not records

The completion endpoint matched *records*, so a hit carried every value of
its field and Python had to re-extract and re-filter them. Worse, it only
looked at the first 50 scored documents.

A value can only be matched on its own if it is indexed on its own, which
only a dumper can do — `copy_to` copies values, not structure.

* Add `SuggestionsDumperExt`, which denormalizes the suggestable values
  into a `nested` field, one sub-document per value. It takes the field
  paths as argument, so any resource can reuse it: documents wire it into
  `IndexerDumper`, projects into their `SearchDumper` extensions.
* Read the values from a nested aggregation: no document cap, ordering by
  frequency, one request for all the requested fields, and `operator: and`
  applied per value.
* Align the analyzers on rero-ils: `autocomplete` / `search_autocomplete`
  pair, `edge_ngram` up to 30. The remaining `.suggest`
  sub-fields follow, which also lets the `$ref` pickers find `Zürich` with
  `zurich`.
* Query the real field paths again and drop the orphan `.suggest`
  sub-fields.

:warning: v1.13.0 migration will require a full `documents`, `projects`, `collections`,
`subdivisions` and `users` (6dfd183c) reindex!

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
Co-Authored-by: Johnny Mariéthoz <johnny.mariethoz@rero.ch>

39 of 39 new or added lines in 6 files covered. (100.0%)

7626 of 8046 relevant lines covered (94.78%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32015241076.1 17 Aug 2026 09:39AM UTC 288
94.78
GitHub Action Run
Source Files on build 32015241076
  • Tree
  • List 288
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32015241076
  • f5b9f733 on github
  • Prev Build on staging (#32007055265)
  • Next Build on staging (#32108888658)
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