Previous General Totara Learn discussions (read only)

Issue with setting up Solr - The search engine is not available

 
Nathan Hunt
Issue with setting up Solr - The search engine is not available
על ידי Nathan Hunt בתאריך 24/01/2018, 07:52
 

Hello,

I've started looking into getting global search set up on my Totara site. I'm using Homestead Vagrant box on OSX. However, I'm getting an error on the "Manage global search" settings page that reads:
"The search engine is not available. Please contact your administrator."

I've been following the Moodle instructions on https://docs.moodle.org/31/en/Global_search#How_to_install_Solr

I installed solr by doing "brew install solr"

That worked fine, and I run the service by doing "solr start"


solr service screenshot

It's running fine as you can see.

I ran the command "solr create -c totara" to create the index

solr core

That was created fine.

So I went back into my Totara site, Site Admin > Search > Solr and input the host, index name and port number

totara solr settings

And then when I go to the Site Admin > Search > Manage global search page

manage global search

I tried running the indexer through the cli (sudo php search/cli/indexer.php --force) but it just prints out the original error that I've been getting.

Summary of versions:

Hosted locally on my Mac OSX 10.13
Totara: 10.1
Solr: 6.6.2 (latest 6.x release, read there were issues with field types in v7 so avoided that)
PHP: 7.1

And solr support is set up on the php.ini

php.ini solr support

Had a frustrating afternoon searching around but can't find anything. The only issue I did find relating to this was to do with solr v7 as mentioned above, which is why I used v6 instead.