Skip to main content

Setting up synonyms on your Drupal site with a few errors you might experience along the way

Having Drupal Solr Search APi running, I thought adding synonyms to the mix would be a smooth process.

 

Install synonym module

I cam across a synonym module created by Jens Beltofte - Search API Synonym.  Working on a Drupal 9.3.x installation, this module needs to be accessed via Git Search API Synonym,

How to set Apache Solr admin password

Setting up the admin password.

 

Process:

1. Edit jetty.xml

To begin you are going to edit the file “server/etc/jetty.xml”.  However, if you aren't sure of the location of jetty.xml, run the command

find / -name jetty.xml -type f

For me, the output was

How To Install Apache Solr 8.11 on CentOS/RHEL 7

Looking to install Solr on your server?  Not sure if it worth the effort?  Well, Apache Solr is the open-source, popular, super fast open source enterprise search platform from the Apache Lucene project.  Written in Java, Solr is highly scalable, providing fault-tolerant distributed search and indexing.

Let's walk through the steps I went through to install Solr on Centos 7.

 

Step 1: Java

Check if Java is installed on your server:

Apache finding log4j2 version

Like many devs at the moment, looking for log4j2 on your server... how to do?

First I used the command

find / -name log4j2.xml -type f

Which in turn produced the following results

/opt/solr-8.5.2/server/resources/log4j2.xml

/var/solr/log4j2.xml

 

Version

Ok, so log4j2 exists on the server the client is using... in Solr.  How about determining the version number?

How to create a date range widget?

Steps to get the Solr date range widget working.

 

Steps

Enable the Facets Range Widget sub-module.

Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder.  After playing with this for sometime to get it working, I found the best way to install is via composer.

How to Install Tika to be used for Solr Search API Attachments

Following is a series of steps to install Tika and have it running for your Solr Search API Attachments.

Java is it running on your server

To begin you must have Java installed on your server/machine.  To check if Java is installed use the command

java -version

Performing the above command will output something similar to:

How to create SOLR cores on Azure hosted SOLR service?

We are going to work through two methods of creating the SOLR cores.

Variables for reference used in this article:

{ip_address} - your server IP Address

{name} - name of the instance you are creating

{dir} - name of the instance directory you are creating

 

Adding Solr config zip to your remote server

Adding Solr config zip (ie. solr_8.x_config.zip) to your remote server.  In this instance I'll be adding Solr config to a AWS EC2 server.

 

Log in to your remote server, then as you need to work as root type:

sudo su

Go to your solr directory:

cd /var/solr/

If you don't know the location of your solr directory run:

Subscribe to Solr