Solr: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
Solr is a search platform built on Lucene
I have [https://store.docker.com/images/f4e3929d-d8bc-491e-860c-310d3f40fff2?tab=description official Solr] running in a Docker container.
I have [https://store.docker.com/images/f4e3929d-d8bc-491e-860c-310d3f40fff2?tab=description official Solr] running in a Docker container.



Revision as of 05:21, 13 March 2017

Solr is a search platform built on Lucene

I have official Solr running in a Docker container.

When I try to create a core in the web admin page, it just spits error messages at me. I was able to use the command line,

docker exec -it --user=solr my_solr solr create_core -c gettingstarted

When I restarted the docker instance the core is gone.

Docs

official Solr Docker repo

Solr Home Page

Solr Reference Guide, a PDF document; includes getting started instructions.

Where's the web server?

If I log into the Virtualbox instance then I can do "ifconfig eth1" to find the ip address and "netstat -an" to find the port. The port changes when you restart solr. Currently I see it on 32770.


How do I get shell access?

You go to Kitematic and click on "Exec" and it will open a Terminal window with a shell prompt. At least it does with Solr.

You can also go to the console in VirtualBox, but this gets you into the machine where Docker is running, not into the solr container. But you can run docker commands there.

This worked to create the "gettingstarted" core.

docker exec -it --user=solr solr bin/solr create_core -c gettingstarted