当前位置:网站首页>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 ;原文地址
边栏推荐
- Siemens low code version 9.14: meet different needs
- AI empowers new retail, the way to win "wisdom" lies in ecological thinking | selected excerpts from digital intelligence night talk live broadcast
- Sword finger offer 14- ii Cutting rope II
- FPGA开发(2)——IIC通信
- Divisor
- @Scheduled annotation pit, I stepped on it for you
- Sword finger offer 15 Number of 1 in binary
- What is IGMP? What is the difference between IGMP and ICMP?
- 數莓派 4怎麼樣?可能的玩法有哪些?
- Table responsive layout tips for super nice
猜你喜欢
随机推荐
Analysis of define incdir command in TCL script of Modelsim
koa2学习和使用
爬虫入门实战:斗鱼弹幕数据抓取,附送11节入门笔记
Why is JSX syntax so popular?
我想知道今天还可以开户么?另外想问,现在在线开户安全么?
Sword finger offer 15 Number of 1 in binary
手机开户一般哪个证券公司好?另外,手机开户安全么?
小程序插件接入、开发与注意事项
FPGA开发(1)——串口通信
Shell operator
Cacti settings for spin polling
视频ToneMapping(HDR转SDR)中的颜色空间转换问题(BT2020转BT709,YCbCr、YUV和RGB)
Matlab exercises -- program control process exercise
QT learning 01 GUI program principle analysis
shell-位置参数变量和预定义变量
Construction of module 5 of actual combat Battalion
JVM之栈空间
[wechat applet] understand the basic composition of the applet project
绿树公司官方网站
Matplotlib plt Hist() parameter explanation









