Debugging a Solr search

Sometimes when using this module, you might come across a search that doesn't return the expected result (or facet, highlighting, etc.). When you've looked at the other sections in this handbook (especially Special server features and pitfalls) and not found anything, looking at the Solr request directly to see where the problem is might be the best next step. (It is also often a great help when you create support requests in the issue queue.) This is usually (depending on your server setup) not particularly complicated.

Installing Apache Solr Search with free Opensolr server on Drupal 7

Download and install the Apache Solr Module - https://drupal.org/project/apachesolr

Opensolr Setup

Setup a free Solr hosting account with Opensolr - https://opensolr.com

In your Opensolr Control Panel > Add New Collection:

Server Location: Any
Collection Name: mysitesolrtest
Type of collection: Drupal 7 Collection Template

Your Collections Manager should now display your collection - click on it's Cog wheel icon to enter the settings

Customizing the Solr configuration

The Solr configuration files packaged with this module are provided in a way to make customizing as easy as possible. The “core files” with the base configuration for the Solr server are schema.xml and solrconfig.xml. These should never be edited directly as they will have to be updated if future versions of the Search API Solr search module changes these files (though this shouldn't be the case too often).

The other files, however, only contain some default settings or only documentation, to help you customize your Solr server. These files will only rarely change, and when they do it should either be unnecessary to update your copies, or trivial to do so. Therefore, you can fill and edit them with custom settings specific to your site's needs. For the format of these files and what you can do with them, see the documentation comments included in them, or the official Solr wiki. The three *_extra*.xml files are included into schema.xml and solrconfig.xml when they are read, thus allowing you to easily add settings to them.

Remember: After changing any configuration, you will always have to restart your Solr server for the changes to take effect!

Developer documentation

This page contains some documentations for developers who want to work with the Search API Solr Search module, either to build on it, use it in custom ways or to write patches for it.

Configuring the Search API server

This section documents all settings that are available when creating/editing a Search API server with the "Solr search" service class.

Pages

Subscribe with RSS Subscribe to RSS - Apache Solr