Wordpress plugins
Solr Search for WordPress

Solr Search for WordPress

Version : 1.4.0
Tested up to : 4.8.2
Number of download : 4200
Author : Pantheon
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

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

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 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 library Development This plugin is under active development on GitHub: https://github.com/pantheon-systems/solr-power Please feel free to file issues there. Pull requests are also welcome! For further documentation, such as available filters and working with the SolrPower_Api class directly, please see the project wiki: https://github.com/pantheon-systems/solr-power/wiki You may notice there are two sets of tests running, on two different services: Travis CI runs the PHPUnit test suite against a Solr instance. Circle CI runs the Behat test suite against a Pantheon site, to ensure the plugin’s compatibility with the Pantheon platform. Both of these test suites can be run locally, with a varying amount of setup. PHPUnit requires the WordPress PHPUnit test suite, and access to a database with name wordpress_test. If you haven’t already configured the test suite locally, you can run bash bin/install-wp-tests.sh wordpress_test root '' localhost. You’ll also need access to a running Solr instance, in order to run the unit tests against Solr. Behat requires a Pantheon site with Solr enabled. Once you’ve created the site, you’ll need install Terminus, and set the TERMINUS_TOKEN, TERMINUS_SITE, and TERMINUS_ENV environment variables. Then, you can run ./bin/behat-prepare.sh to prepare the site for the test suite. Note that dependencies are installed via Composer and the vendor directory is not committed to the repository. You will need to run composer install locally for the plugin to function. You can read more about Composer here WP-CLI Support This plugin has WP-CLI support. All Solr Power related commands are grouped into the wp solr command, see an example: $ wp solr usage: wp solr check-server-settings or: wp solr delete [<id>...] [--all] or: wp solr index [--page] [--post_type] or: wp solr info [--field=<field>] [--format=<format>] or: wp solr optimize-index or: wp solr repost-schema or: wp solr stats [--field=<field>] [--format=<format>] See 'wp help solr <command>' for more information on a specific command. You can see more details about the commands using wp help solr: **NAME** wp solr **DESCRIPTION** Perform a variety of actions against your Solr instance. **SYNOPSIS** wp solr <command> **SUBCOMMANDS** check-server-settings Check server settings. delete Remove one or more posts from the index. index Index all posts for a site. info Report information about Solr Power configuration. optimize-index Optimize the Solr index. repost-schema Repost schema.xml to Solr. stats Report stats about indexed content.<h3>WP_Query Integration</h3> Use Solr in a custom WP_Query instead of querying a database. Add 'solr_integrate' => true to the query arguments. NOTE: Currently, only basic queries, tax_query, meta_query and date_query are supported. See examples/example.custom_WP_Query.php for an example. A meta_query can use the following compare operators: '=' '!=' '>' '>=' '<' '<=' 'LIKE' 'NOT LIKE' 'IN' 'NOT IN' 'BETWEEN' 'NOT BETWEEN' 'EXISTS' 'NOT EXISTS' ('REGEXP', 'NOT REGEXP', and 'RLIKE' are not supported.) Configuration Tips Searching by author name To support searching by author name (e.g. where “Pantheon” would return posts authored by the “Pantheon” user), add the following to your custom schema.xml: ` `

Download now