Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14989

SolrJ deleteByQuery does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.6.3
    • Fix Version/s: None
    • Component/s: SolrJ
    • Labels:
      None

      Description

      Solr 8.6.3 standalone accessed with SolrJ via HTTPS. Querys/post documents, etc. works fine.

      Code:

      solrClient.deleteByQuery("some_core", ':')

      throws:

      Exception in thread "main" org.apache.solr.client.solrj.SolrServerException: IOException occurred when talking to server at: https://localhost:8983/solrException in thread "main" org.apache.solr.client.solrj.SolrServerException: IOException occurred when talking to server at: https://localhost:8983/solr at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:695) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248) at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214) at org.apache.solr.client.solrj.SolrClient.deleteByQuery(SolrClient.java:940) at de.vw.solr.crawl.Solaritas.resetCore(Solaritas.groovy:89) at de.vw.solr.crawl.Solaritas.main(Solaritas.groovy:205)Caused by: org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:571) ... 6 moreCaused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity. at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:225) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ... 9 more

      Problem seems to be known:

      https://stackoverflow.com/questions/35825280/solrj-deletebyquery-is-not-working 

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Daniel.Kirschner Dr. Daniel Georg Kirschner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: