Before Starting anything into the Solr We have to create the Core. A Core is a running instance or the process of a Lucene index that contains all the Solr configuration files. We need to create a Core to perform operations like indexing and analyzing. It is mentioned that the Solr application may contain one core or more and can communicate with multiple cores.
Its similar to Creating the Endeca App. The Core can be created in two ways.
It will create the core for the Solr.
WARNING: Using _default configset with data have driven schema functionality. NOT RECOMMENDED for production use.
To turn off: bin\solr config -c example -p 8983 -action set-user-property -property update.autoCreateFields -value false
INFO - 2018-12-25 12:03:30.613; org.apache.solr.util.configuration.SSLCredentialProviderFactory; Processing SSL Credential Provider chain: env;sysprop
Created a new core 'example'
Fill the following popup
name:<name of the solr>
instanceDir:<Directory where the solr-Config.xml is avalible> In case if the solr-Config.xml is not created the We can use it from the default config set that comes up with Solr.
C:\Dev\solr-7.5.0\server\solr\example
Copy the directory conf from the
C:\Dev\solr-7.5.0\server\solr\configsets\_default
to
C:\Dev\solr-7.5.0\server\solr\example\conf
Give the Instance Directory as C:\Dev\solr-7.5.0\server\solr\example
dataDir:<Directory Where the Indexing Files stored>
C:\Dev\solr-7.5.0\server\solr\example\data
Remaining config and schema leave it as it.
Here understanding two folder structure is important.
conf> Where the solr configurations are stored.
data>Where the indexed data files are stored in the non readable format.
Happy Coring !!!!
Its similar to Creating the Endeca App. The Core can be created in two ways.
Creating through Command
Navigate to C:\Dev\solr-7.5.0\bin>solr.cmd create -c example
It will create the core for the Solr.
WARNING: Using _default configset with data have driven schema functionality. NOT RECOMMENDED for production use.
To turn off: bin\solr config -c example -p 8983 -action set-user-property -property update.autoCreateFields -value false
INFO - 2018-12-25 12:03:30.613; org.apache.solr.util.configuration.SSLCredentialProviderFactory; Processing SSL Credential Provider chain: env;sysprop
Created a new core 'example'
Creating through Solr Admin UI
Navigate to AdminUI>core Admin>Add CoreFill the following popup
name:<name of the solr>
instanceDir:<Directory where the solr-Config.xml is avalible> In case if the solr-Config.xml is not created the We can use it from the default config set that comes up with Solr.
C:\Dev\solr-7.5.0\server\solr\example
Copy the directory conf from the
C:\Dev\solr-7.5.0\server\solr\configsets\_default
to
C:\Dev\solr-7.5.0\server\solr\example\conf
Give the Instance Directory as C:\Dev\solr-7.5.0\server\solr\example
dataDir:<Directory Where the Indexing Files stored>
C:\Dev\solr-7.5.0\server\solr\example\data
Remaining config and schema leave it as it.
Here understanding two folder structure is important.
conf> Where the solr configurations are stored.
data>Where the indexed data files are stored in the non readable format.
Happy Coring !!!!
Syed, I can see that you have transformed yourself from Endeca to Solr. The way you get into details and articulate things is appreciated. Solr being an emerging technology it's going to help out lot of people out here. Keep blogging!!!
ReplyDelete