Installing Solr on Apple - Mac OS X

Snow Leopard already has Java installed on it, so it's pretty straightforward installing Apache Solr on Mac OS X versions 10.6 and above.

For Solr 3.5.0 on drupal 7

Download Solr-3.5 from the Apache Archive here
Download the apachesolr module from https://drupal.org/project/apachesolr

Assuming the above folders are in the Downloads folder:

Filter search results by site when using the same Apache Solr Index for multiple sites

When you are using one Apache Solr instance to index multiple sites, you will have contents from all sites in the same index.

To ensure that the search results shows only contents from the current site, you can filter the Apache Solr index based on an attribute called 'Site Hash'.
This attribute is passed by the Apache Solr module every time the site is indexed and is stored together with the related pages.

For those who are familiar with GSA (Google Search Appliance), if you are looking for a "collection" behavior, this filter may be the answer.

Note: the site hash is generated based on the base_url by a function called "apachesolr_site_hash()" once and then it's stored in a variable in your database. So if your sites are sharing the base_url or the database, they will share the Site Hash.
In this case, you may need to add another filter (e.g.: Domain ID if using the Domain Access module).

Installing Solr 7.x/8.x on CentOS 7/Debian 11

Preparing for Installation

Install Java 8

sudo yum install java-1.8.0-openjdk.x86_64

Check Java version and that is running.

java -version

Java -version

yum list installed | grep "java-1.8*"

Java installed

Pages

Subscribe with RSS Subscribe to RSS - Apache Solr