Trying to install Solr to work with advanced course search plugin

Trying to install Solr to work with advanced course search plugin

by Sebastian Gendry -
Number of replies: 3

Am stuck and not sure who/where to ask for help.

Am running moodle 2.8.+ and my server admin successfully installed Solr on our apache server in the hope to get it to work with moodle's advanced course search plugin.

I successfully pinged on "Check Solr instance settings" and "Index courses" on on /admin/tool/coursesearch/index.php  but failed the ping on "Optimize index."

So we restarted Tomcat.

The problem: now it's the exact opposite. "Check Solr instance setttings" and "index courses" fail to ping, but "optimize index" and "delete all" do ping successfully.

What to do / where to look?

I read the Solr litterature.

In my limited understanding I found two discrepancies between what shows in their manual and what appears in my Solr control panel: http://prntscr.com/61acoh and http://prntscr.com/61ae7x 

Any idea, anybody?

Average of ratings: -
In reply to Sebastian Gendry

Re: Trying to install Solr to work with advanced course search plugin

by Shashikant Vaishnav -

Hello Sebastien,

Thanks for using the plugin. Please double check with those things -

  • "Check Solr instance settings" comes up with a success message and then save setttings, once settings are saved you can index courses and then optimize the indexes.
  • You copied the solr config files ( can be found in module root directory ) to solr config directory.
  • Solr is working fine (not throwing any exception)
  • Keep in mind this plugin works out of box with coursesearch theme only, for others which supports renderers you would need to follow readme ( check https://github.com/shashirepo/moodle-tool_coursesearch/)

    If you're still having issue, Feel free to ask here.

    Good luck!


In reply to Shashikant Vaishnav

Re: Trying to install Solr to work with advanced course search plugin

by Sebastian Gendry -
Hello Shashikant,

No luck.

I have checked everything and followed your instructions on https://github.com/shashirepo/moodle-tool_coursesearch/wiki/installtion-instruction step by step.

Difference: I don't have apache-solr-4.4.0/example/solr/collection1/conf/ but /solr-4.10.3/example/solr/collection1/conf 

I copied the 3 necessary files there anyway as well as in /home/solr/solr/collection1/conf

The solr server is running smoothly as far as I can tell.

/course/search.php works but only shows results for words that display on the public home page (the courses are not indexed.)

Am still faced with the exact same symptoms on /admin/tool/coursesearch as described in my first post. "Check Solr instance settings" is spinning into eternity.

I use port 8080. My Solr path is solr (it pinged once that way). The Solr username and password are correct. I am using the theme_coursesearch.

Your thoughts?

In reply to Sebastian Gendry

Re: Trying to install Solr to work with advanced course search plugin

by Shashikant Vaishnav -

Hi,

I would recommand you using jetty with solr, Other than this if you can't ping solr this indicates there is something worng with configuration.

If moodle can't reach solr and moodle developer debug is turned on, it will display you a warning over course search page. If everything is fine it will display advance course search form.


You can skype me and I can have a look for you.

My skype handle is - shashitechno

See you!