Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8412527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:41:31+00:00 2026-06-10T00:41:31+00:00

I have two cores on my server and I have made this as a

  • 0

I have two cores on my server and I have made this as a request xml
:
I run
java -Durl=http:/localhost:8983/solr/multimedia/update -jar post.jar deleteSites.xml
I get

SimplePostTool version 1.5

Posting files to base url http://localhost:8983/solr/multimedia/update using content-type application/xml..
POSTing file deleteSites.xml
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/multimedia/update..

I run
java -jar post.jar deleteSites.xml
I get
SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/update using content-type application/xml..
POSTing file deleteSites.xml
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/update..

I have one core named multimedia and I want to use an XML to update one of the cores. Even without the -Durl, neither of the two cores have any difference in the number of results they contain (they should be deleted)

The delete sites xml is as follows : <delete><query>*:*</query></delete>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:41:32+00:00Added an answer on June 10, 2026 at 12:41 am

    I do not think that you can leverage the post.jar file to issue a delete query to Solr. While it uses the same update handler that is coded specifically to post(add) documents to the index. As you can see from the response that you are receiving.

    … POSTing file deleteSites.xml 1 files indexed …

    In order to issue a delete query I would recommend using the following curl command:

     curl http://localhost:8983/solr/multimedia/update?commit=true -H 
       "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
    

    You can get more details on using delete commands and other UpdateXMLMessages on the Solr Wiki.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two pieces of C++ code running on 2 different cores. Both of
I have a PC with dual cores, it has two MAC addresses : 00-1D....
I have no experience with SOLR. Does SOLR use more memory on a server
We have rather Big machine 100GB+ memory and 8+ cores in it. Server wide
I have two servers. I want delete file from second server via first server!
Is this, for example, a good idea? require_once($_SERVER['DOCUMENT_ROOT'].'/include.php'); If you have two virtual hosts
I have two same web projects(Java) with different name in my workspace. One is
I have two nested ajax calls to server. In 1st ajax call, server returns
I have two solutions, a solution named Server and a solution named Client. The
Ok, I have two Linux boxes running behind a proxy server. Both boxes are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.