Getting the "missing primary name in the path" when trying to access the Solr administrator installed on Glassfish

I installed Solr 3.1 on Glassfish, and this part went smoothly, since when I visit <host >: <port > / solr, I get this "Welcome to Solr!". page, as well as the link "Solr Admin".

The problems begin when I try to create an opet control panel, I get "HTTP Status 404 - missing kernel name in the path." I do not know why this is happening. I used to test this default Solr example (single-core) on the local host, but with Jetty, it came with the Solr release in the form of this start.jar.

I set the system property solr.solr.home to indicate the folder where the folder solr.xml and conf are located and here is the contents of the mentioned solr.xml:

 <solr persistent="false" <cores adminPath="/admin/cores" defaultCoreName="collection1"> <core name="collection1" instanceDir="." /> </cores> </solr> 

As you can see, just a simple single-core setup.

Any idea?

Thanks in advance

+6
source share
1 answer

<solr persistent="false" <cores adminPath="/admin/cores" defaultCoreName="collection1"> <core name="collection1" instanceDir="collection1" /> </cores> </solr>

and directory structure:

collection1 (containing dirs, conf and data)
solr.xml

is the right way to do this.

+2
source

Source: https://habr.com/ru/post/888634/


All Articles