PHPackages                             nobrainer-web/solr-search - 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. nobrainer-web/solr-search

ActiveSilverstripe-vendormodule[Search &amp; Filtering](/categories/search)

nobrainer-web/solr-search
=========================

Simple opinionated setup for using Solr search in a basic ss4 project

v1.1(6y ago)01141BSD-3-ClausePHP

Since Jun 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nobrainer-web/silverstripe-solr-search)[ Packagist](https://packagist.org/packages/nobrainer-web/solr-search)[ RSS](/packages/nobrainer-web-solr-search/feed)WikiDiscussions master Synced 2mo ago

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

silverstripe-solr-search
========================

[](#silverstripe-solr-search)

Simple opinionated setup for using Solr search in a basic ss4 setup.

This package simply provides some out of the box functionality to get Solr search on your SilverStripe site. For now, it uses Solr 4, as supported by the silverstripe/fulltextsearch module.

This also includes some cosmetic changes to `SearchForm`

```
composer require nobrainer-web/solr-search

```

### Usage

[](#usage)

##### Adding fields to the index

[](#adding-fields-to-the-index)

You can add fulltext fields to be indexed by defining the `custom_fields` config setting on `SolrIndex`.

For example:

```
NobrainerWeb\Solr\Index\SolrIndex:
  custom_fields:
    - HeroTitle
    - HeroText
```

##### Adding classes to the index

[](#adding-classes-to-the-index)

Classes to be added are defined in the `classesToIndex` config setting. `SiteTree` is included by default. example:

```
NobrainerWeb\Solr\Index\SolrIndex:
  classesToIndex:
    - MyDataObject
```

### Defaults

[](#defaults)

By default the fields Title, MenuTitle and Summary are added to the index. You can disable this by setting the `add_default_fields` config setting to false.

### Setting environment options

[](#setting-environment-options)

There are various `.env` settings you can define. You can see some of them in `_config.php`, but most of the time the default options are fine.

If multiple sites on the server are sharing the same Solr instance, you might want to define `SS_SOLR_INDEX_PREFIX` or `SS_SOLR_INDEX_SUFFIX`, to make your Solr index's name unique.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~72 days

Total

4

Last Release

2294d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/def5e7646226b2caed7a8b33f1ec432d631b4eec51ae0d6947fc317ec4e82380?d=identicon)[Nobrainer Web](/maintainers/Nobrainer%20Web)

---

Top Contributors

[![sanderha](https://avatars.githubusercontent.com/u/6941043?v=4)](https://github.com/sanderha "sanderha (17 commits)")[![rasmniel](https://avatars.githubusercontent.com/u/11680653?v=4)](https://github.com/rasmniel "rasmniel (2 commits)")

---

Tags

searchsilverstripesolr

### Embed Badge

![Health badge](/badges/nobrainer-web-solr-search/health.svg)

```
[![Health](https://phpackages.com/badges/nobrainer-web-solr-search/health.svg)](https://phpackages.com/packages/nobrainer-web-solr-search)
```

###  Alternatives

[silverstripe/solr

Solr integration for SilverStripe. Note that this is NOT related to the silverstripe/fulltext package.

1914.0k](/packages/silverstripe-solr)[quinninteractive/silverstripe-seo

An all-in-one SEO module for SilverStripe

3328.2k](/packages/quinninteractive-silverstripe-seo)[g4b0/searchable-dataobjects

This module adds DataObjects to frontend search

254.9k](/packages/g4b0-searchable-dataobjects)

PHPackages © 2026

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