How To Setup Solr?
- Download Solr from https://archive.apache.org/dist/lucene/solr/7.5.0/
- Start the Solr server using following command
bin/solr start
- Create Solr core for axonator
bin/solr create -c axo_default_config
- Open Python Shell
from axonator.solr_schema import *
create_schema()
- Go to SOLR_DIRECTORY/server/solr/axo_default_config/conf
- Open solrconfig.xml with text editor.
- Search name=”add-schema-fields” in editor.
- Remove everything inside updateProcessor key & Add below provided code.
<str name="defaultFieldType">StringField</str>
- Reload the core using following command
curl "http://localhost:8983/solr/admin/cores?action=RELOAD&core=axo_default_config"
0 Comments