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 8036541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:39:13+00:00 2026-06-05T02:39:13+00:00

I have an instance of SOLR 3.6 running, with JSON as the default updateHandler.

  • 0

I have an instance of SOLR 3.6 running, with JSON as the default updateHandler.

I am able to delete individual documents with the following:

curl "http://myURL/update?commit=true" -H 'Content-type:application/json' -d '{"delete": {"id":"1730887464"}}'

What is the right way to delete a range of IDs?

I have tried the following:

curl "http://myURL/update?commit=true" -H 'Content-type:application/json' -d '{"delete": {"id":"[* TO 1730887464]"}}'

curl "http://myURL/update?commit=true" -H 'Content-type:application/json' -d '{"delete": {"id":"[0 TO 1730887464]"}}'

And I get the following exception. Any help/pointers would be appreciated.
I’ve looked up:

http://wiki.apache.org/solr/UpdateJSON

http://lucene.apache.org/solr/api/doc-files/tutorial.html

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 For input string: "[* TO 1730887464]"

java.lang.NumberFormatException: For input string: "[* TO 1730887464]"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.                                                                                                             java:65)
        at java.lang.Long.parseLong(Long.java:438)
        at java.lang.Long.parseLong(Long.java:478)
        at org.apache.solr.schema.TrieField.readableToIndexed(TrieField.java:295                                                                                                             )
        at org.apache.solr.schema.TrieField.toInternal(TrieField.java:307)
        at org.apache.solr.update.DirectUpdateHandler2.delete(DirectUpdateHandle                                                                                                             r2.java:288)
        at org.apache.solr.update.processor.RunUpdateProcessor.processDelete(Run                                                                                                             UpdateProcessorFactory.java:68)
        at org.apache.solr.update.processor.LogUpdateProcessor.processDelete(Log                                                                                                             UpdateProcessorFactory.java:137)
        at org.apache.solr.handler.JsonLoader.processUpdate(JsonLoader.java:120)
        at org.apache.solr.handler.JsonLoader.load(JsonLoader.java:75)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(Co                                                                                                             ntentStreamHandlerBase.java:58)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl                                                                                                             erBase.java:129)
        at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handle                                                                                                             Request(RequestHandlers.java:244)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter                                                                                                             .java:365)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte                                                                                                             r.java:260)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet                                                                                                             Handler.java:1212)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3                                                                                                             99)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav                                                                                                             a:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1                                                                                                             82)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7                                                                                                             66)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand                                                                                                             lerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.                                                                                                             java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1                                                                                                             52)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54                                                                                                             2)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio                                                                                                             n.java:945)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.                                                                                                             java:228)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j                                                                                                             ava:582)
</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /solr/update. Reason:
<pre>    For input string: "[* TO 1730887464]"

java.lang.NumberFormatException: For input string: "[* TO 1730887464]"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.                                                                                                             java:65)
        at java.lang.Long.parseLong(Long.java:438)
        at java.lang.Long.parseLong(Long.java:478)
        at org.apache.solr.schema.TrieField.readableToIndexed(TrieField.java:295                                                                                                             )
        at org.apache.solr.schema.TrieField.toInternal(TrieField.java:307)
        at org.apache.solr.update.DirectUpdateHandler2.delete(DirectUpdateHandle                                                                                                             r2.java:288)
        at org.apache.solr.update.processor.RunUpdateProcessor.processDelete(Run                                                                                                             UpdateProcessorFactory.java:68)
        at org.apache.solr.update.processor.LogUpdateProcessor.processDelete(Log                                                                                                             UpdateProcessorFactory.java:137)
        at org.apache.solr.handler.JsonLoader.processUpdate(JsonLoader.java:120)
        at org.apache.solr.handler.JsonLoader.load(JsonLoader.java:75)
        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(Co                                                                                                             ntentStreamHandlerBase.java:58)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl                                                                                                             erBase.java:129)
        at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handle                                                                                                             Request(RequestHandlers.java:244)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter                                                                                                             .java:365)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte                                                                                                             r.java:260)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet                                                                                                             Handler.java:1212)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3                                                                                                             99)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav                                                                                                             a:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1                                                                                                             82)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7                                                                                                             66)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand                                                                                                             lerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.                                                                                                             java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1                                                                                                             52)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54                                                                                                             2)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio                                                                                                             n.java:945)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.                                                                                                             java:228)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j                                                                                                             ava:582)
  • 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-05T02:39:16+00:00Added an answer on June 5, 2026 at 2:39 am

    you need to use a delete by query:

    curl "http://myURL/update?commit=true" -H 'Content-type:application/json' -d '{"delete": {"query":"id:[* TO 1730887464]"}}'
    

    I don’t work a lot with json so not sure if the ‘query’ part is right…but I guess you see what i mean

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

Sidebar

Related Questions

I have server instance running on amazon ec2. I want to forward from port
I have - for instance - an asp:FormView which supports Read, Insert, Update, Delete
I have for instance the following string: 0x780000105d0e0030 If this is not the string,
I have installed SQL Server 2005 and now have instance name as the default
I have a website running on an Amazon EC2 Instance, and I'm trying to
I have got python code running on multiple analyzer machines each picking documents from
I have an Apache Solr instance deployed in Glassfish and I am using this
I have stemming enabled in my Solr instance, I had assumed that in order
I have a search in solr that is returning about 1500 documents. These documents
I have an instance of django 1.2.1 running on ubuntu with a mysql 5

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.