PHPackages                             pantheon-systems/solr-power - 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. pantheon-systems/solr-power

ActiveWordpress-plugin

pantheon-systems/solr-power
===========================

An open source plugin to connect to Pantheon's Apache Solr search infrastructure, or your own!

2.6.0(1y ago)13219060[43 issues](https://github.com/pantheon-systems/solr-power/issues)[5 PRs](https://github.com/pantheon-systems/solr-power/pulls)GPL-2.0-or-laterPHPCI passing

Since Apr 22Pushed 1mo ago40 watchersCompare

[ Source](https://github.com/pantheon-systems/solr-power)[ Packagist](https://packagist.org/packages/pantheon-systems/solr-power)[ RSS](/packages/pantheon-systems-solr-power/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (57)Used By (0)

Solr Search for WordPress
=========================

[](#solr-search-for-wordpress)

**Contributors:** [getpantheon](https://profiles.wordpress.org/getpantheon), [Outlandish Josh](https://profiles.wordpress.org/outlandish-josh), [10up](https://profiles.wordpress.org/10up), [collinsinternet](https://profiles.wordpress.org/collinsinternet), [andrew.taylor](https://profiles.wordpress.org/andrew.taylor), [danielbachhuber](https://profiles.wordpress.org/danielbachhuber), [mattleff](https://profiles.wordpress.org/mattleff), [mikengarrett](https://profiles.wordpress.org/mikengarrett), [jazzsequence](https://profiles.wordpress.org/jazzs3quence), [jspellman](https://profiles.wordpress.org/jspellman/), [pwtyler](https://profiles.wordpress.org/pwtyler/)
**Tags:** search
**Requires at least:** 4.6
**Requires PHP:** 7.1
**Tested up to:** 6.7.1
**Stable tag:** 2.6.0
**License:** GPLv2 or later
**License URI:**

Improve your user experience with the Apache Solr search engine for your WordPress website.

Description
-----------

[](#description)

[![Actively Maintained](https://camo.githubusercontent.com/2ae5ff81f271fb028d720adee6b3595770166f3707a4705a4a2a3b71c332b249/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50616e7468656f6e2d4163746976656c795f4d61696e7461696e65642d79656c6c6f773f6c6f676f3d70616e7468656f6e26636f6c6f723d464644433238)](https://pantheon.io/docs/oss-support-levels#actively-maintained-support)[![Lint and Test](https://github.com/pantheon-systems/solr-power/actions/workflows/lint-test.yml/badge.svg)](https://github.com/pantheon-systems/solr-power/actions/workflows/lint-test.yml)

Search is critical for your site, but the default search for WordPress leaves a lot to be desired. Improve your user experience with the Apache Solr search engine for your WordPress website.

- Fast results, with better accuracy.
- Enables faceting on fields such as tags, categories, author, and page type.
- Indexing and faceting on custom fields.
- Drop-in support for [WP\_Query](https://codex.wordpress.org/Class_Reference/WP_Query) with the `solr_integrate` parameter set to true.
- Completely replaces default WordPress search, just install and configure.
- Completely integrated into default WordPress theme and search widget.
- Very developer-friendly: uses the modern [Solarium](http://www.solarium-project.org/) library

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

[](#installation)

The Solr Power plugin can be installed just like you'd install any other WordPress plugin.

Because Solr Power is intended to be a bridge between WordPress and the Apache Solr search engine, you'll need access to a functioning Solr 3.6 instance for the plugin to work as expected. This plugin does not support other versions of Solr. The plugin also requires PHP 7.1 or higher.

If you're using the Solr Power plugin on Pantheon, setting up Apache Solr is as easy as enabling the Apache Solr add-on in your Pantheon dashboard. Once you've done so:

1. Configure which post types, taxonomies and custom fields to index by going to the **Indexing** tab of the Solr Power settings page.
2. Index your existing content by going to the plugin options screen and selecting the applicable **Actions**:
    - - **Index Searchable Post Types**
3. Search on!
4. See the examples/templates directories for more rich implementation guidelines.

If you're using the Solr Power plugin elsewhere, you'll need to install and configure Apache Solr. On a Linux environment, this involves four steps:

1. Install the Java Runtime Environment.
2. Run `./bin/install-solr.sh` to install and run Apache Solr on port 8983.
3. Configuring Solr Power to use this particular Solr instance by setting the `PANTHEON_INDEX_HOST` and `PANTHEON_INDEX_PORT` environment variables.
4. Copying `schema.xml` to the Solr configuration directory (a path similar to `solr/conf/schema.xml`).

Alternatively, there are a couple of community-maintained Docker containers you may be able to use: [kalabox/pantheon-solr](https://hub.docker.com/r/kalabox/pantheon-solr/), [kshaner/solr](https://hub.docker.com/r/kshaner/solr/).

In a local development environment, you can point Solr Power to a custom Solr instance by creating a MU plugin with:

```
