Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Global Search #69

Closed
rlorenzo opened this issue Nov 2, 2017 · 4 comments
Closed

Add support for Global Search #69

rlorenzo opened this issue Nov 2, 2017 · 4 comments

Comments

@rlorenzo
Copy link
Contributor

rlorenzo commented Nov 2, 2017

Correct me if I am wrong, but I do not see Global Search support in these docker containers. Would be nice to add them in the container builds.

@danpoltawski
Copy link
Contributor

+1

@stronk7
Copy link
Member

stronk7 commented Sep 11, 2020

Sorry @rlorenzo , I'm a little bit confused. With MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES enabled... an instance of solr is launched (for later use by tests).

Isn't that enough? What else would you want, getting it configured for normal use, maybe? (I mean, no phpunit/behat tests)

Ciao :-)

@rlorenzo
Copy link
Contributor Author

@rlorenzo Maybe something got added since the 3 years this request was added. What configure do I add if I launch with the added services?

@stronk7
Copy link
Member

stronk7 commented Sep 12, 2020

For tests (phpunit and behat), all you need to do is to set:

export MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES=yes

and, automatically, a solr instance will be started and used by tests.

If you want to use that instance for normal use (apart from tests), its information is:

  • hostname: solr
  • port: 8983
  • indexname: test

All you have to do is to setup the config values above via UI, or using CLI:

php admin/cli/cfg.php --component=search_solr --name=server_hostname --set=solr
php admin/cli/cfg.php --component=search_solr --name=server_port --set=8983
php admin/cli/cfg.php --component=search_solr --name=indexname --set=test

And then, the moodle instance will have solr at hand.

Ciao :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants