当前位置:网站首页>Solr basic operation 16
Solr basic operation 16
2022-06-30 00:08:00 【franket】
If you want to delete data , Ensure that the service has been stopped , In the following ways
[[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]#
summary
- 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
Command summary
java -version
tar -zxvf solr-5.3.0.tgz
cd solr-5.3.0
bin/solr start -e cloud -noprompt
bin/post -h
bin/post -c gettingstarted docs/
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>/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 -all
netstat -ant | grep -E '(8983|7574)'
tree example/cloud/
attach
Use the following script to quickly prepare the test environment
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 ;
Original address
边栏推荐
- Construction of module 5 of actual combat Battalion
- Table responsive layout tips for super nice
- Common knowledge of ECS security settings
- Color space conversion in video tonemapping (HDR to SDR) (bt2020 to bt709, YCbCr, YUV and RGB)
- Cacti settings for spin polling
- Koa2 learning and using
- MySQL:SQL概述及数据库系统介绍 | 黑马程序员
- 如何实现搜索引擎中的拼写纠错功能——思路
- Bee常用配置
- Zhongang Mining: Fluorite helps the construction and development of lithium battery in fluorine industry
猜你喜欢
Common knowledge of ECS security settings
Golang6 reflection
ThinkPad VMware installation virtual machine: this host supports Intel VT-x, but Intel VT-x is disabled (problem resolution)
There is no web-based development for the reward platform. Which is suitable for native development or mixed development?
Simple understanding of B tree and b+ tree
Basic operations such as MySQL startup under Windows platform
6.29 problem solving
6.28日刷题题解
New CorelDRAW technical suite2022 latest detailed function introduction
克隆無向圖[bfs訪問每條邊而不止節點]
随机推荐
数莓派 4怎么样?可能的玩法有哪些?
Bee common configuration
History of deep learning
FPGA Development (2) -- IIC communication
[leetcode] a number that appears only once [136]
Leetcode (76) -- Minimum Covering substring
Golang6 reflection
Gradle连载7-配置签名
Embedded development: Hardware in the loop testing
6.29 problem solving
About mongodb error: connecting to: mongodb://127.0.0.1:27017/?compressors=disabled &gssapiServiceName=mongodb
Binary search tree 230 The element with the smallest K in the binary search tree 1038 From binary search tree to larger sum tree
6.28日刷题题解
QT learning 02 GUI program example analysis
项目一:部署 LAMP ecshop电商平台
Introduction to reptiles: data capture of Betta barrage, with 11 introductory notes attached
Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus
Shell operator
How to write controller layer code gracefully?
Basic operations such as MySQL startup under Windows platform