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 60 forks source link

[BUGS-5309] Add option for disabling commits to Solr #559

Closed stovak closed 1 year ago

stovak commented 1 year ago

Copied from @ryanshoover's PR https://github.com/pantheon-systems/solr-power/pull/549:

The Pantheon platform will auto-commit any changes to the Solr index every 2 minutes. Since Pantheon already does a hard commit, Solr Power doesn't need to.

This adds a new option to enable soft commits when writing to Solr. The option can be useful on large, active sites that publish posts multiple times a minute (like news organizations).

This adds a new option to disable commiting when writing to Solr. The option can be useful on large, active sites that publish posts multiple times a minute (like news organizations).

A site would just add this to wp-config to enable the new feature.

define( 'SOLRPOWER_DISABLE_AUTOCOMMIT', true );
stovak commented 1 year ago
Screen Shot 2022-11-29 at 7 44 23 AM