Before you read further
If you are starting a new project, please read the "alternatives" section.
Introduction
This module provides a Views integration to the Apache Solr Search Integration project. It provides the views plugins and handlers needed to be able to create a view that fetches its results from Apachesolr index, without hitting the database.
Requirements
Requires Apache Solr Search. Requires the use of an Apachesolr search index.
Installation
Download and install the module as normal.
Configuration
First make sure that Apachesolr module is configured correctly. If in the page "admin/config/search/apachesolr/settings" the Apachesolr environment is green and working, you can test this by using the site search page. Create a view from admin/structure/views/add and choose Apachesolr search. All of the fields indexed in solr should be available as views fields/filters/sort. Configure the view as needed and save it.
Troubleshooting
Solr Devel can diagnose problems with solr entity indexing.
Solr admin adds even more options, and is usually available at:
http://[host]:8983/solr/admin/
Advantages
- It is impossible to have duplicate results, unlike database views.
- Queries do not hit the database, and so they offload the database server.
- Views are very easy to customize, unlike search pages.
Limitations
- Exposed filters are only textfields. See #1807028: exposed filters are only text fields.
- Search facets are supported, but may not work reliably in combination with views filters.
- Search sort block is not supported. See #443410: Apachesolr Sort block doesn't integrate with this module.
- Multiple Apachesolr views on the same page do not work See #1766254: Problem with multiple views (or displays) in same page.
- Most entity field types are not sent to Solr, and will not be available as views handlers. Apachesolr views doesn't index the fields itself. This is done from other modules by implementing hook_apachesolr_field_mappings().
Alternatives
Search API and Search API Solr Search modules can be used to create views with Apache Solr backend. This provides a more powerful, and better maintained views integration. If you are stuck with Apache Solr Search, then you probably want to install this module.
Maintainers
The 7.x branch is maintained by Miroslav Vladimirov Banov.
https://www.drupal.org/user/1509224
The 6.x branch is unmaintained.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Site Search
- 1,099 sites report using this module
- Created by Scott Reynolds on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 7.x-1.x-dev updated 7 Apr 2021 at 15:32 UTC