pantheon-systems / solr-power

A WordPress plugin to connect to Pantheon's Apache Solr search infrastructure, or your own!
https://wordpress.org/plugins/solr-power/
GNU General Public License v2.0
126 stars 61 forks source link

[BUGS-6558] Fix Solr not indexing #598

Closed pwtyler closed 1 year ago

pwtyler commented 1 year ago

Fixes case where wp solr index returns "Success" but wp solr stats shows that nothing is indexed.

solr->update() was not called when $optimize and should_commit are both false.

Props @DmytroLytvynchenko for assisting with the patch.