Closed madmatt closed 6 years ago
More info regarding its deprecation: http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22commit.22_and_.22optimize.22
Further review suggests that this still an issue in the latest solr-php-client library (source: https://code.google.com/p/solr-php-client/source/browse/trunk/Apache/Solr/Service.php#852) which means we'd have to fix it there and then get the latest version of the code for this project.
There is an open enhancement issue on the issue tracker for the project here: https://code.google.com/p/solr-php-client/issues/detail?id=75 which has been open since 2012.
There is also a patch here: https://code.google.com/p/solr-php-client/issues/detail?id=91 which adds commit4() and optimize4() methods which don't include the waitFlush commands, but that hasn't been accepted yet (and isn't a great solution anyway).
I've been looking at Solr 4.5 compatibility, and have a patch I need to tidy up. I'll try and update this week.
Hey guys,
Just wondering if there has been a fix on this yet?
Being that we are getting this error from the CWP basic recipe, will this also cause an issue there?
This Issue has cropped back up with only one of our builds... unsure why as all builds are using the same solr version, and framework versions...
org.apache.solr.common.SolrException: Unknown commit parameter 'waitFlush'
Nothing on this for almost 3 years - is it still a bug? I'd have expected to hear a lot more on this if it were...
Yes this was fixed with @ss23's PR (#60).
Using one of the more recent builds of Solr, I've found that I can run the Solr_Configure task, but not the Solr_Reindex task.
If I run the Solr_Reindex, the error I get is:
The stack trace is:
The issue is that the XML being sent includes the waitFlush="true|false" param, which apparently hasn't been used since Solr 1.4 (source: https://bugs.php.net/bug.php?id=62332), and in the latest version of Solr has been removed altogether. The Solr logs show the following error:
I haven't yet checked if there's an updated version of the thirdparty module - but just wanted to log this issue so if others find the same issue, they at least know what needs to be changed. I was able to fix the issue by just changing line 827 of fulltextsearch/thirdparty/solr-php-client/Apache/Solr/Service.php and removing the waitFlush param entirely, but that's obviously only a temp fix until we can update the library :)