Solr's powerful search engine

*. I read solr myself, and found a blog that translated the introductory part. Here I simply write down my understanding, haha, if there is a pit to jump, haha, it is best to give me a hand. \(^o^)/~

download:
https://mirrors.tuna.tsinghua.edu.cn/apache/lucene/solr/5.5.5/

 

*, build core or collection --- if it is a database, that is, a tablespace

solr create -c core name -d directory name (if there are requirements, the details are unknown, use basic_configs first~)

 

*, create an index --- if it is a database, create a table

\server\solr\jcg\conf\server\solr\corename\conf\schema.xml
The field part in schema.xml is equivalent to the table field
ps: schema.xml cannot be found above solr5.5 because it has been renamed managed-schema, huh

 

*, index data operation --- if it is a database, that is, the data is stored in the database

java -Dtype=text/csv(filetype) -Durl=http://localhost:8983/solr/corename/update -jar post.jar books.csv(filename, datasource)
Support various databases, pdf, xml files, csv files, etc., etc. representative? unknown

 

*, Access data through API --- if it is a database, that is, select

eg:http://localhost:8983/solr/核心名称/select?q=name:"A Clash of Kings"

 

*, to be continued,,, such as how to participle? ? ?

 

 ----------------------------------------------Little bugs- -------------------------------------------------- --

*、若ERROR: Solr home directory D:\solr5 must contain solr.xml

When starting solr, specify the xml parent directory
eg:solr start -s D:\*\server\solr (with solr.xml in it)

 

*, for reference (if you encounter problems, see the above content, aha)

http://blog.csdn.net/u011936655/article/details/51960005

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326175095&siteId=291194637