Solr Learning Notes 1
Create a core (help: solr create_core-help)
Example: solr create_core-c mjj_core-d / var/solr/mjj_config (- c is the core name-d is the copy source location of the configuration folder and will be copied to the mjj_core folder in solr_home
Here I just copied the contents under the / opt/solr-8.0.0/server/solr/configsets/_default folder to / var/solr/mjj_config, which is the same as the default configuration.
/ opt/solr-8.0.0 is the location where solr software is installed)
two。 Import data
Example: post-c mjj_core / var/solr/mysolr_test_data/students.csv (the csv file can be a file exported by pl sql, the first line is the list of people, and the other lines are values)
3. Query data
Http://192.168.6.129:8983/solr/mjj_core/select?q=sno%3A17-search for students with student number 17.
4. Transcoding
Transcoding:% 2B is + transcoding% 20 is space transcoding-number does not need transcoding% 3A is: transcoding