PHPackages                             clarkwinkelmann/flarum-ext-advanced-search-highlight - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. clarkwinkelmann/flarum-ext-advanced-search-highlight

ActiveFlarum-extension[Search &amp; Filtering](/categories/search)

clarkwinkelmann/flarum-ext-advanced-search-highlight
====================================================

Highlight search results in HTML post content and partial Meilisearch hits.

1.0.3(1y ago)21.9k—8.3%MITPHPPHP &gt;=7.4

Since May 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/clarkwinkelmann/flarum-ext-advanced-search-highlight)[ Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-advanced-search-highlight)[ RSS](/packages/clarkwinkelmann-flarum-ext-advanced-search-highlight/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Advanced Search Highlight
=========================

[](#advanced-search-highlight)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/clarkwinkelmann/flarum-ext-advanced-search-highlight/blob/master/LICENSE.txt) [![Latest Stable Version](https://camo.githubusercontent.com/62668a7d29180e5ca840e89d8b9de37125af0ad781d47c0902f6cb6d58324d77/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6578742d616476616e6365642d7365617263682d686967686c696768742e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-advanced-search-highlight) [![Total Downloads](https://camo.githubusercontent.com/73b8896c407b7b1a71f2ee4b6735ae78c1e9c7170b8f091670bfbcb5e0630ae0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6578742d616476616e6365642d7365617263682d686967686c696768742e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-advanced-search-highlight) [![Donate](https://camo.githubusercontent.com/0d6e4d8b50b5983a58205941b1a581b1305903393b7a39da574e3f60af3c7f5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e737667)](https://www.paypal.me/clarkwinkelmann)

Highlights search results in HTML post content and partial Meilisearch hits.

If you are using neither [Post Stream Search](https://github.com/clarkwinkelmann/flarum-ext-post-stream-search) nor [Scout Search](https://github.com/clarkwinkelmann/flarum-ext-scout), this extension will barely make any difference.

When using **Post Stream Search**, the filtered post stream will show highlights directly inside of the posts.

When using **Scout Search** with the **Meilisearch** driver, typos and synonyms matches will be highlighted in discussion titles and top post excerpts. The code specific to Meilisearch is part of the Scout extension.

In all situations, the top post excerpt in the search dropdown and on the discussion search results page will have some of its formatting preserved (bold, italics, and a few other) but will still be mostly collapsed to one or a few lines.

This extension moves search result highlighting to the server-side and provides ways for other extensions to modify the highlight rules.

The post content highlight relies on a few complex regular expressions that might cause some issues with some third-party extensions. Please report any issue on GitHub.

There are no settings.

Installation
------------

[](#installation)

Requires PHP 7.4+

```
composer require clarkwinkelmann/flarum-ext-advanced-search-highlight

```

Support
-------

[](#support)

This extension is under **minimal maintenance**.

It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.

You can [contact me](https://clarkwinkelmann.com/flarum) to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

**Sponsors:** *anonymous backer*

Links
-----

[](#links)

- [GitHub](https://github.com/clarkwinkelmann/flarum-ext-advanced-search-highlight)
- [Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-advanced-search-highlight)
- [Discuss](https://discuss.flarum.org/d/32870)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance42

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~208 days

Total

4

Last Release

474d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

---

Top Contributors

[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (7 commits)")

---

Tags

searchhighlightflarum

### Embed Badge

![Health badge](/badges/clarkwinkelmann-flarum-ext-advanced-search-highlight/health.svg)

```
[![Health](https://phpackages.com/badges/clarkwinkelmann-flarum-ext-advanced-search-highlight/health.svg)](https://phpackages.com/packages/clarkwinkelmann-flarum-ext-advanced-search-highlight)
```

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k178.3M943](/packages/elasticsearch-elasticsearch)[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[solarium/solarium

PHP Solr client

93532.7M98](/packages/solarium-solarium)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[ganuonglachanh/sonic

Allows to search by sonic

201.9k](/packages/ganuonglachanh-sonic)[blomstra/search

Replaces Flarum search with one powered by an elastic search server.

114.9k](/packages/blomstra-search)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
