参考官网文档:https://lucene.apache.org/solr/guide/7_5/solr-tutorial.html#launch-solr-in-solrcloud-mode
优秀博客参考:https://blog.csdn.net/yelllowcong/article/details/78710581

1、当根据官网文档的提示,简单的将solr安装在服务器上后,此时如果只允许到了如下这个一步,那么当前solr是已经成功的安装好了的。
solr的使用

2、我们可以通过浏览器访问查看solr的当前信息:没有任何的collections和cores。
solr的使用

3、如果我们根据官网文档来进行原始数据的创建,我们执行后会发现会创建了一个名为techproducts的collections和两个名分别为techproducts_shard1_replica_n1、techproducts_shard2_replica_n4的core。
solr的使用

4、到了这一步,还只是创建好了盒子,还需要往里面添加数据。执行了如下命令,将压缩包中提供的数据加入到solr中去。
bin/post -c techproducts example/exampledocs/*
执行完成后,此时从管理界面就可以查询到数据了。
solr的使用
从管理界面提供的url信息来看,实际上执行了如下语句而已
curl “http://localhost:8983/solr/techproducts/select?indent=on&q=:

相关文章:

  • 2021-12-05
  • 2021-08-12
  • 2021-07-22
  • 2021-11-03
  • 2021-10-30
猜你喜欢
  • 2021-04-26
  • 2021-09-28
  • 2021-08-07
  • 2021-12-28
相关资源
相似解决方案