You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by "Kempelen, Ákos" <ak...@wolterskluwer.com.INVALID> on 2022/03/13 16:27:22 UTC

UpdateRequestHandler commit/optimize not working on Solr 8.11?

Hi all,

The following URL command worked for me on Solr 7.1:
http://localhost:8080/solr/index/update?optimize=true

But when I migrated to Solr 8.11, nothing happens for the same url, optimization not started.
The Solr log contains this:
INFO

[index] webapp=/solr path=/update params={optimize=true}{optimize=} 0 2

.. but optimization not started. The same problems happened when committing.

solrconfig.xml:
<requestHandler name="/update" class="solr.UpdateRequestHandler"/>

Solr is used in standalone mode, and Solr Security is not enabled.

Has anyone experienced this issue?
Thanks,

Akos <https://trailhead.salesforce.com/trailblazer-community/feed/0D53A00003o6hxmSAA>

RE: UpdateRequestHandler commit/optimize not working on Solr 8.11?

Posted by "Kempelen, Ákos" <ak...@wolterskluwer.com.INVALID>.
After a couple of hours Solr code investigation, it turned out that the maxSegments parameters default value was changed from 1 to MAX from Solr 7.5.
So the correct url would be http://localhost:8080/solr/index/update?optimize=true&maxSegments=1
Regards,
Akos

From: Kempelen, Ákos
Sent: Sunday, March 13, 2022 5:27 PM
To: users@solr.apache.org
Subject: UpdateRequestHandler commit/optimize not working on Solr 8.11?

Hi all,

The following URL command worked for me on Solr 7.1:
http://localhost:8080/solr/index/update?optimize=true

But when I migrated to Solr 8.11, nothing happens for the same url, optimization not started.
The Solr log contains this:
INFO

[index] webapp=/solr path=/update params={optimize=true}{optimize=} 0 2

.. but optimization not started. The same problems happened when committing.

solrconfig.xml:
<requestHandler name="/update" class="solr.UpdateRequestHandler"/>

Solr is used in standalone mode, and Solr Security is not enabled.

Has anyone experienced this issue?
Thanks,

Akos

Re: UpdateRequestHandler commit/optimize not working on Solr 8.11?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 3/13/2022 10:27 AM, Kempelen, Ákos wrote:
> The following URL command worked for me on Solr 7.1:
> http://localhost:8080/solr/index/update?optimize=true
>
> But when I migrated to Solr 8.11, nothing happens for the same url, optimization not started.
> The Solr log contains this:

Can you share the whole solrconfig.xml file for that index?  Note that 
if you try to attach a file to an email reply, that the mailing list 
will most likely devour it so we never see it. You'll need to use one of 
the many paste or file sharing websites and give us a URL to access it.

There is an update processor included with Solr that will ignore commits 
and/or optimizes.  I'm trying to determine if the index has that configured.

Thanks,
Shawn