Extension talk:SphinxSearch

It is recommended to use SphinxSearch 0.8.5 and a recent stable release of Sphinx 2.1. Please bear in mind that this extension only handles the communication between MediaWiki and Sphinx and any specific issues related to the search feature (character sets, ability to search with *, search categories, minimum length on search terms etc.) are handled in Sphinx (see sphinx.conf file) and those questions should be redirected to the Sphinx forum.
The development on this extension is done on a voluntary basis and while this forum provides a platform to share experiences and solutions, it is up to its community members to fill in suggestions.

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)
Category:Talk pages with syntax highlighting errors