Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of commands commonly used in solr

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "command summary commonly used in solr". In daily operation, I believe many people have doubts about command summary commonly used in solr. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "command summary commonly used in solr". Next, please follow the editor to study!

View help

Bin/solr-help

You can see what subcommands solr has, such as start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version

Start start

Bin/solr start-help View start help

Bin/solr start Boot stand-alone version

Bin/solr start-f foreground start

Bin/solr start-p 8984 designated port startup

Bin/solr start-cloud starts the distributed version

Bin/solr start-e cloud-noprompt-e means to start an existing example named cloud,cloud. This example is started in SolrCloud mode.

Bin/solr restart restart project

Create

Create a core if it is a stand-alone version and a collection if it is distributed

Bin/solr create-help View create help

Bin/solr create-c abc

Abc is the name of core or collection, depending on whether solr is a stand-alone version or cloud version. Refresh http://localhost:8983/solr and you can see that there is an extra abc in core selector.

The location of the abc directory is created under the solr.solr.home (default is solr's server/solr directory) directory

Post submit data to generate index

Bin/post-c abc docs/

Submit data to a core or collection named abc, with the data source in the docs/ directory

Delete

Bin/solr delete-c abc deletes a core or collection

Delete index

Bin/post-c abc-d "/ home/matthewi/software/solr-5.4.1/docs/solr-morphlines-core/allclasses-noframe.html"

Re-run the above search to see that the number of search results is missing one item: the numFound column

Bin/post-c abc-d "*: *"

Delete all data

Stop solr

Bin/solr stop-all

Status

Bin/solr status

At this point, the study of "summary of commands commonly used in solr" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report