I wrote an article before.
SOLR Document Learning –getting Started
Continue today chapter II, management Console, first conceptually understand SOLR startup
Start SOLR (Windows edition) into SOLR's unzip directory first
Solr.cmd start
Next we go into the admin console
http://localhost:8983/solr/
On the left is a navigation, including control Panel, logging, Core admin/collections, Java properties, process, etc., and if the core admin/collections is configured you can also see a core admin/collections tool.
If you open it in Solrcloud mode, the navigation bar on the left will be cloud and collections
Start SOLR in Solrcloud mode command
Solr.cmd start-c
This article is in the click Mode, so the discussion is all about Core admin, actually and collections is a concept collections/core admin
Dashboard and logging do not explain too much, one is the control Panel, and the other is the information about the log.
Let's open the most important collections/core Admin, in fact this I personally think can be understood as a database of tables (collections), and this name and MongoDB collections feeling is a concept. Below I will have assembled this concept to describe Collections/core Admin
There is no collection at first.
We can create collections in the console, or we can create collections at the command line.
Before the console creates the collection, you need to first create the related directories required by the collection.
command line Create collection
Ensure SOLR is activated
Solr.cmd create-c mycollections
Create a collection of mycollections
You can see the collection you just created in the console.
Console Create collection
First create the directory where the collection instance resides, and I'll create a mycollection2 directory here
Under the SERVER/SOLR of SOLR decompression directory
To create a directory where the collection data is stored, I created a data directory under Mycollection2
Then enter the console to create the collection
But this time there will be an error.
Error createing solrcore ' mycollection2 ': Unable to create core [Mycollection2] caused By:can ' t find resource ' solrconfig . xml ' in Classpath or ' D:\solr-6.1.0\server\solr\mycollection2 '
Said Mycollection2 lacked solrconfig.xml.
Copy Solrconfig.xml from the example directory files\conf in the SOLR directory to Mycollection2\data
This time it will be an error.
Error createing solrcore ' mycollection2 ': Unable to create core [Mycollection2] caused By:can ' t find resource ' Schema.xml ' In Classpath or ' D:\solr-6.1.0\server\solr\mycollection2 '
Missing Schema.xml, this new version actually does not need this file, it is replaced by a new file called Managed-schema, but in the console to create or to Schema.xml, copy one, or from SOLR example\files\ conf copy, copy it to Mycollection2, and rename it to Schema.xml
Re-create will also error,
Org.apache.solr.common.SolrException:Error createing solrcore ' mycollection2 ': Unable to create core [Mycollection2] caused By:can ' t find resource ' lang/contractions_it.txt ' in classpath or ' D:\solr-6.1.0\server\solr\mycollection2 '
This is because the renamed Schema.xml has some dependencies such as stop words, all under the Lang folder.
We're still copying from the Conf directory under SOLR's example\files\ to Mycolletion2.
Final directory structure of the MYCOLLECTIONS2
Create again
Created successfully, this console is still more troublesome, it is recommended to create a collection with the command line
To be Continued ... Reference Documents
SOLR Official Documentation Version 6.1
If you feel that my article is useful to you, please feel free to reward