Solr Search module


#1

Hello everyone,

I’m new on Omeka S, so I’m sorry if my questions sound silly.

I have to install a full-text search in PDFs files and I thought using the Solr and Search modules would be a good idea. I installed them but I don’t really understand how to configure Solr.

Do you know what I should write in “site fields” :

Nom : default
Nom d’hôte : localhost
Port : 8983
Chemin : solr/default
Champ ‘nom de la ressource’ : resource_name_s
Sites field : ?

Also, there is an error is the status of the node :

Nom : default
URL : localhost:8983/solr/default
Statut : Solr HTTP Error 7: ‘Couldn’t connect to server’

… I don’t know how to work this out.

Thank you for your help :slight_smile:


#2

Hi,

To use the Omeka-s Solr module, you need to launch a Solr instant on your server (or anywhere) witch will be exposed on the port 8983 by default. The Solr module is just a connector to the Solr instance.

-Fred-


#3

Hi @Fred,

Thank you for your reply.

The thing is : I don’t have access to my server, it is managed by huma-num (a shared server). You say I can run a solr instant anywhere, but how can I do that ?

My main issue is I don’t know how to create a Solr index, I simply don’t know where to write this command :
sudo su - solr -c “/opt/solr/bin/solr create -c omeka -n data_driven_schema_configs”

Could you help me ?


#4

Hi,

The Solr instance can be launch anywhere, on the same server (localhost) or where you want. In this case the only condition is that the server who run this instance should be accessible on the tcp port 8983.

I don’t explicitly said it but you have to install Solr to be able to run the instance. The more simple way is to install Solr directly on the same server. You could try to contact directly huma-num to expose your problem.

When Solr is installed and launched, you have to create the node in Solr. When it’s done, your node is usable with other applications (like omeka-s or other). The command line you wrote help you to do this. This command have to be launch on the server where Solr is installed.

If all is OK, the status of your node in the Solr Omeka-s module will be OK too. The next step is to configure the search module in Omeka-s.

-Fred-