当前位置:网站首页>Solr基础操作16
Solr基础操作16
2022-06-29 23:55:00 【franket】
如果要删除数据,确保服务已经停止的前提下,通过如下方式
[[email protected] solr-5.3.0]# rm -Rf example/cloud/
[[email protected] solr-5.3.0]# tree example/cloud/
example/cloud/ [error opening dir]
0 directories, 0 files
[[email protected] solr-5.3.0]# 总结
- Launched Solr into SolrCloud mode, two nodes, two collections including shards and replicas
- Indexed a directory of rich text files
- Indexed Solr XML files
- Indexed Solr JSON files
- Indexed CSV content
- Opened the admin console, used its query interface to get JSON formatted results
- Opened the /browse interface to explore Solr’s features in a more friendly and familiar interface
命令汇总
java -versiontar -zxvf solr-5.3.0.tgzcd solr-5.3.0bin/solr start -e cloud -nopromptbin/post -hbin/post -c gettingstarted docs/bin/post -c gettingstarted example/exampledocs/*.xmlbin/post -c gettingstarted example/exampledocs/books.jsonbin/post -c gettingstarted example/exampledocs/books.csvbin/post -c gettingstarted -d "<delete><id>/data/solr/solr-5.3.0/docs/quickstart.html</id></delete>"curl "http://192.168.100.102:7574/solr/gettingstarted_shard1_replica1/select?q=*%3A*&wt=json&indent=true"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=foundation"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=foundation&fl=id&start=30&rows=5"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=_version_:1511824568810995712"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=test"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=ui"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=ui+test"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=%2Bone+%2Bthree"curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=%2Btwo+-three"curl "http://192.168.100.102:7574/solr/gettingstarted_shard1_replica1/select?q=*%3A*&wt=json&indent=true&rows=0&facet=true&facet.field=stream_size"curl "http://192.168.100.102:7574/solr/gettingstarted_shard1_replica1/select?q=*%3A*&wt=json&indent=true&rows=0&facet=true&facet.range=stream_size&f.stream_size.facet.range.start=0&&f.stream_size.facet.range.end=9000&f.stream_size.facet.range.gap=1000&facet.range.other=after"curl "http://localhost:8983/solr/gettingstarted/select?q=*:*&rows=0&wt=json&indent=on&facet=on&facet.pivot=stream_size,title"bin/solr stop -allnetstat -ant | grep -E '(8983|7574)'tree example/cloud/
附
使用下面的脚本可以快速的准备出试验环境
date ;
bin/solr start -e cloud -noprompt ;
open http://localhost:8983/solr ;
bin/post -c gettingstarted docs/ ;
open http://localhost:8983/solr/gettingstarted/browse ;
bin/post -c gettingstarted example/exampledocs/*.xml ;
bin/post -c gettingstarted example/exampledocs/books.json ;
bin/post -c gettingstarted example/exampledocs/books.csv ;
bin/post -c gettingstarted -d "<delete><id>SP2514N</id></delete>" ;
bin/solr healthcheck -c gettingstarted ;
date ;原文地址
边栏推荐
- 简单理解B树和B+树
- 架构实战营模块5作业
- Ingenious application of golang generics to prevent null pointer errors of variables and structural fields
- Et la tarte aux framboises 4? Quels sont les jeux possibles?
- I wonder if I can open an account today? In addition, is it safe to open an account online now?
- 请指教同花顺软件究竟是什么?究竟网上开户是否安全么?
- 西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
- Web APIs 环境对象 丨黑马程序员
- 一步步教你在Edge浏览器上安装网风笔记
- Zhongkang holdings opens the offering: it plans to raise HK $395million net, and it is expected to be listed on July 12
猜你喜欢

ThinkPad VMware installation virtual machine: this host supports Intel VT-x, but Intel VT-x is disabled (problem resolution)

QT learning 03 birth and essence of QT

Basic tutorial for installing monggodb in win10

简单理解B树和B+树

Head on Amway! Good looking and practical motor SolidWorks model material see here

剑指 Offer 15. 二进制中1的个数
solo 博客皮肤导入 skins 文件夹后出现 500 错误

FPGA Development (1) -- serial port communication

这次的PMP考试(6月25日),有人欢喜有人忧,原因就在这...

Applet plug-in access, development and precautions
随机推荐
QT learning 01 GUI program principle analysis
这次的PMP考试(6月25日),有人欢喜有人忧,原因就在这...
FPGA开发(1)——串口通信
I wonder if I can open an account today? In addition, is it safe to open an account online now?
Provide effective performance evaluation 
History of deep learning
剑指 Offer 15. 二进制中1的个数
Sword finger offer 14- I. cut rope
[译]在软件开发行业工作 6 年后,那些年我曾改过的观念
Golang泛型的巧妙应用,防止变量空指针错误,防止结构体字段空指针错误
How to write controller layer code gracefully?
招商证券靠谱吗?开股票账户安全吗?
QPainter的使用入门:绘制象棋界面
剑指 Offer 13. 机器人的运动范围
The concept and significance of mean, variance, standard deviation and covariance
Gradle serialization 7- configuration signature
About mongodb error: connecting to: mongodb://127.0.0.1:27017/?compressors=disabled &gssapiServiceName=mongodb
开始“收割”!钉钉调整“钉钉Teambition”免费用人数上限,超十人将无法正常用
Buffer flow exercise
QT learning 02 GUI program example analysis