Extension talk:SphinxSearch
![]() Archives
|
---|
|
Help
When seeking help and/or support, you might want to consider to mention your system environment (SphinxSearch Extension version, Sphinx version, MW version etc.) otherwise it might be difficult for people to make appropriate recommendations.
For Windows users and related issues see here, for Linux users and related issues see here, and some advice on how to configure a SQLite setup see here.
V1.143
I got correct match count, but empty results SphinxSearch in REL1_43.
I need to add a methode in SphinxMWSearchResult.php to get it to work in V1.43 additionaly to Extension talk:SphinxSearch/2023
+++ SphinxMWSearchResult.php public function extractResults() { if ( $this->results === null ) { $this->results = []; if ( $this->numRows() == 0 ) { // Don't bother if we've got empty res return $this->results; } $this->rewind(); foreach ( $this as $result ) { $this->results[] = $result; } $run= $this->next(); while ($run) { $this->results[] = $run; $run= $this->next(); } $this->rewind(); } return $this->results; }
195.234.58.56 14:11, 25 March 2025 (UTC)
- Thanks! Minor nit, but I believe this change needs to be applied to SphinxMWSearchResultSet.php (not SphinxMWSearchResult.php)
- Those changes and $terms changes (and more) have been merged into an update I'm testing:
- https://github.com/nicjansma/mediawiki-extensions-SphinxSearch Nicjansma (talk) 02:50, 24 April 2025 (UTC)