PHPackages                             venveo/craft3-weightedsearch - 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. venveo/craft3-weightedsearch

Abandoned → [venveo/craft3-weightedsearch](/?search=venveo%2Fcraft3-weightedsearch)ArchivedCraft-plugin[Search &amp; Filtering](/categories/search)

venveo/craft3-weightedsearch
============================

A remake of the weighted search plugin for Craft 2

1.0.0(8y ago)6423[1 issues](https://github.com/venveo/craft3-weightedsearch/issues)[1 PRs](https://github.com/venveo/craft3-weightedsearch/pulls)MITPHP

Since Sep 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/venveo/craft3-weightedsearch)[ Packagist](https://packagist.org/packages/venveo/craft3-weightedsearch)[ RSS](/packages/venveo-craft3-weightedsearch/feed)WikiDiscussions develop Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Weighted Search plugin for Craft CMS 3.x
========================================

[](#weighted-search-plugin-for-craft-cms-3x)

A remake of the [weighted search plugin](https://github.com/wja-no/craft-weighted-search) for Craft 2 by [wja-no](https://github.com/wja-no)

Usage
-----

[](#usage)

This plugin exposes the template variable/function: `craft.weightedSearch.substringSearch(query, [sections])`

For more complete documentation, take a look at that repository.

This works exactly like the Craft 2 version of this plugin, where search results are weighted based on exact match and number of matches.

The return results of the search differs from the traditional Craft search query in that it returns some extra meta information about the search results.

Each result has these fields: `entry`, `excerpt` and `score`. The excerpt is in HTML format, where each instance of the search string has been marked up with the mark element.

You can leverage entry as you would any other ElementCriteriaModel (eg. `{{searchresult.entry.title}}`).

### Editorially prioritizing an entry for a search term

[](#editorially-prioritizing-an-entry-for-a-search-term)

To enable manual prioritization of entries, create a field of type Tags, give it the handle prioritizedSearchTerms and add it to the relevant entry types.

To give an entry prioritization in the search results for a given term, add that term as a tag in the entry's prioritizedSearchTerms field. The entry will receive a significant boost to its score, which will most likely be enough to "win" over any other entry (that doesn't also have the same tag).

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

1. Then tell Composer to load the plugin:

    ```
     composer require venveo/craft3-weightedsearch

    ```
2. In the Control Panel, go to Settings → Plugins and click the “Install” button for Better Search.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

3209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c06cc90c1a7f274f31233258cedf58df05f581a0c1a79f44b40764a60b96f377?d=identicon)[ransom](/maintainers/ransom)

---

Top Contributors

[![Mosnar](https://avatars.githubusercontent.com/u/3810939?v=4)](https://github.com/Mosnar "Mosnar (3 commits)")[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (1 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincraft3weighted search

### Embed Badge

![Health badge](/badges/venveo-craft3-weightedsearch/health.svg)

```
[![Health](https://phpackages.com/badges/venveo-craft3-weightedsearch/health.svg)](https://phpackages.com/packages/venveo-craft3-weightedsearch)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k59](/packages/verbb-formie)[studioespresso/craft-scout

Craft Scout provides a simple solution for adding full-text search to your entries. Scout will automatically keep your search indexes in sync with your entries.

80141.4k](/packages/studioespresso-craft-scout)[verbb/vizy

A flexible visual editor field for Craft.

4249.7k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24142.6k12](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16168.8k6](/packages/verbb-icon-picker)

PHPackages © 2026

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