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

heimrichhannot / contao-utils-bundle / 38693780554
84%

Build:
DEFAULT BRANCH: v3
Ran 15 Oct 2026 06:40AM UTC
Jobs 1
Files 71
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

15 Oct 2026 06:40AM UTC coverage: 84.372% (+0.3%) from 84.091%
38693780554

push

github

web-flow
Sort search vector matches by relevance (#111)

* sort search vector matches by relevance

The words of an alternative may be found anywhere in a record, so a search
for "Dresdner Stollen" also matched a record mentioning both words in
unrelated sentences. Sorted alphabetically with a limit, such matches pushed
out the relevant ones.

orderByRelevance() and createRelevance() score a word at the start of a
word, a whole word and all words of an alternative in a row, using only LIKE
patterns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* add pull request link to changelog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* score the words of quoted phrases and repeated words in the relevance

The relevance was built from the filter terms, which are deduplicated and
keep a quoted phrase as a single term. So "haus an haus am see" rewarded
the shortened sequence "haus an am see", and a quoted phrase scored like a
single word without its bonus for the words in a row.

Tokenizer::parseQueryWords() returns the words of each alternative in the
order of the query, with repetitions and quoted phrases split into words.
The relevance scores each distinct word and the full sequence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* parse only the representation of the search each method needs

Filter methods only need the filter terms and relevance methods only the
words, so the search is no longer tokenized and stemmed twice per call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

55 of 55 new or added lines in 2 files covered. (100.0%)

1625 of 1926 relevant lines covered (84.37%)

10.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38693780554.1 15 Oct 2026 06:40AM UTC 71
84.37
GitHub Action Run
Source Files on build 38693780554
  • Tree
  • List 71
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1f6fd2f8 on github
  • Prev Build on 3.12.1 (#38590944140)
  • Next Build on v3 (#38733246611)
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