SOLR uses the access address to control the index, delete, create

Source: Internet
Author: User
Tags solr

Start SOLR and delete all index data:

http://localhost:8080/solr/update/?stream.body=<delete><query>*:* </query></delete> &stream.contenttype=text/xml;charset=utf-8&commit=true

Stop SOLR and check if it's emptied:

Start creating a new index, browser execution mode:

Stop Run Index:http://localhost:8080/solr/collection1/dataimport?command=abort

Start index:http://localhost:8080/solr/collection1/dataimport?command=full-import

Incremental Index:http://localhost:8080/solr/collection1/dataimport?command=delta-import&clean=false& Commit=true

It is recommended to use the UI when learning to update, to see the running process:

Need to wait for execution to finish, can click "Refrush status" to see the result:

Indexing completed. added/updated:1076 documents. Deleted 0 documents. (duration:03s)

Indicates the end.

Then click on the query on the left to verify the index results:

A query result appears indicating that the creation was successful.

SOLR uses the access address to control the index, delete, create

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.