当前位置:网站首页>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 -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/
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
边栏推荐
- 如何实现搜索引擎中的拼写纠错功能——思路
- 500 error occurred after importing skins folder into solo blog skin
- Zhongang Mining: Fluorite helps the construction and development of lithium battery in fluorine industry
- 克隆无向图[bfs访问每条边而不止节点]
- 西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
- Set up enterprise NTP time server
- Root cause of glideexception: failed decodepath{directbytebuffer- > gifdrawable- > drawable}
- Shell positional parameter variables and predefined variables
- After crossing, she said that the multiverse really exists
- QT learning 07 coordinate system in QT
猜你喜欢

Code analysis platform sonarqube actual combat

HPE launched ARM CPU general server product

After working in the software development industry for six years, I changed my ideas in those years

Basic operations such as MySQL startup under Windows platform

New CorelDRAW technical suite2022 latest detailed function introduction

There is no web-based development for the reward platform. Which is suitable for native development or mixed development?

Yunhe enmo, gaiguoqiang, identify it and grasp it before the domestic database boils

New titanium cloud service won the "2022 love analysis · panoramic report of it operation and maintenance manufacturers" cloud management platform CMP representative manufacturer

6.29 problem solving

6.28日刷题题解
随机推荐
6.28 problem solving
數莓派 4怎麼樣?可能的玩法有哪些?
Solr基础操作13
Yunhe enmo, gaiguoqiang, identify it and grasp it before the domestic database boils
Halcon practical: design idea of solder joint detection
Cacti settings for spin polling
Set up security groups, record domain names, and apply for SSL certificates
HTAP x cloud native: tidb accelerates the release of data value and realizes data agility
[wechat applet] understand the basic composition of the applet project
[rust weekly library] Tokei - a utility for statistics of code lines and other information
500 error occurred after importing skins folder into solo blog skin
西门子低代码 9.14版本: 满足不同需求
MySQL:SQL概述及数据库系统介绍 | 黑马程序员
Cloner un Graphe non recté [bfs accède à chaque bord et pas seulement aux noeuds]
Ingenious application of golang generics to prevent null pointer errors of variables and structural fields
gyctf_2020_document
西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
复制带随机指针的链表[空间换时间--hash记录]
Digital collection of cultural relics, opening a new way of cultural inheritance
This PMP Exam (June 25), some people are happy and others are worried. That's why