Hi SOLR community,

I had a few projects with solr on windows but this is the very first time
to work with Solr on Ubuntu. I followed every step of the
https://solr.apache.org/guide/solr/latest/deployment-guide/taking-solr-to-production.html.
When My non-root user executed that install script.

The solr user and group was created by the installation script, I left
everything on default. I could access the admin page of Solr on localhost.
Then I tried to create a core from the terminal in single node mode which
is automatically recognized anyway, and got the following error:

WARNING: Using _default configset with data driven schema functionality.
NOT RECOMMENDED for production use.
         To turn off: bin/solr config -c books -p 8983 -action
set-user-property -property update.autoCreateFields -value false

ERROR: Failed to create new core instance directory: /var/solr/data/books

Then following the instruction I ran: /opt/solr//op/bin/bin/solr config -c
books -p 8983 -action set-user-property -property update.autoCreateFields
-value false. I git the next error:

POSTing request to Config API: http://localhost:8983/solr/books/config
{"set-user-property":{"update.autoCreateFields":"false"}}

ERROR: Error from server at http://localhost:8983/solr: Expected mime type
in [application/octet-stream, application/vnd.apache.solr.javabin] but got
text/html. <p>
  Searching for Solr?<br/>
  You must type the correct path.<br/>
  Solr will respond.
</p>

It is understandable because even books core was not created so I guess the
referred endpoint does not exist.

So my question is, how can I set up a core based on the default configset
which I can later customize before start indexing?

Thanks for your help in advance!

Roland

Reply via email to