Get the App
SLTechnology News&Howtos  ›  Database  › 

Solr Learning Notes 1

Shulou Source: shulou.com Published: 2022-06-01 22:40:21 11月07日 Update

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

Tags: Files copies folders locations examples data core query configuration content just name student number student effects spaces software people help notes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn OPPO Reno NVidia Redmi