Moodle Global Search

Moodle Global Search

by Mahinwal Surya -
Number of replies: 8

Hi,


I want to implement Moodle global search on our site, but find difficulty to configuration Solr in it. I have done several steps to complete this configuration. They are listed below: 

  • I have set up in Site administration > Plugins > Search > Manage global search by selecting Solr as the search engine.
  • I have set up in  Site administration > Plugins > Search > Solr, set Host name to localhost, Port to 8983 and Index name to 'moodle' 

Error: " The search engine is not available. Please contact your administrator." 

Please see the screenshot and provide some valuable solution to help me out of this.  



Thanks to all in advanced. 

Average of ratings: -
In reply to Mahinwal Surya

Re: Moodle Global Search

by Mahinwal Surya -

FYI - I have used Linux Centos.

In reply to Mahinwal Surya

Re: Moodle Global Search

by Ken Task -
Picture of Particularly helpful Moodlers

See:

https://docs.moodle.org/31/en/Global_search

There are pars of above that pertain to CentOS ... make sure you are not reading/executing items for other platforms.

Attention to:  Command for insalling Solr Server on CentOS 7 (assuming you are using CentOS 7)

'spirit of sharing', Ken

In reply to Ken Task

Re: Moodle Global Search

by Mahinwal Surya -

Thanks @Ken, 

I following these steps are providing in this doc https://docs.moodle.org/31/en/Global_search,  but still can not find any solution.

FYI- I have installed Solr 7.1.0 and i have successfully run solr http://localhost:8983/solr 



But In moodle site Global search, "The search engine is not available. Please contact your administrator" this error is occured. Please provide any solution to help me out of this. 


Thanks in advanced . 

In reply to Mahinwal Surya

Re: Moodle Global Search

by Ken Task -
Picture of Particularly helpful Moodlers

You've installed it ok but it appears you've not created a solr index for Moodle.  Now a warning ... it's been a while for me so this from memory ... which sometimes not too good now-a-days! :\

If solr installed in /opt/solr/ as root:

cd /opt/solr/

bin/solr create -c moodle

This last command creates the index for Moodle you've installed.

Then check the solr interface again to see if there is a 'moodle' listed there.

Also, there has been some postings recently about changes to solr.

See: https://moodle.org/mod/forum/discuss.php?d=361242#p1456949

Dunno if that will affect your install or not.

'spirit of sharing', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Moodle Global Search

by Mahinwal Surya -

Hey, 

ken thanks for the help. I have installed Solr and configure global search in Moodle. 

According to the next requirement:

How to implement "DisMax" or "Extended DisMax" parser in moodle? 

Please provide any possible help.


In reply to Mahinwal Surya

Re: Moodle Global Search

by Ken Task -
Picture of Particularly helpful Moodlers

Suggest you provide info and links for 'DisMax' including your 'plan' for it's use in Moodle. ;)

Might consider starting a new forum posting under an appropriate forum ... which ever forum is related.

'spirit of sharing', Ken