Extension talk:SphinxSearch/2019

The talk page now uses liquid threads, all open messages prior to liquid threads have been converted into a talk subpage and can be found here.
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.


space between words issue

Hi,

in the default mediawiki search when we type a word say "downtime" with space inbetween its results in search of 'down" and 'time" both words separately but after installing Sphinx what happens is that even that behavior found in MW default search is not found here and what happens is that the exact words match as in the format "down time" if available in the article, then that result pops up Venkat sabarish (talk) 15:01, 3 January 2019 (UTC)

any help ? from the MW community Venkat sabarish (talk) 15:01, 3 January 2019 (UTC)

mediawiki-1.32.0 sphinxsearch-0.9 error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


2019/01/14 12:04:51 [error] 21549#21549: *3558 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class SphinxMWSearch contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (SearchDatabase::doSearchTextInDB, SearchDatabase::doSearchTitleInDB) in /var/opt/www/extensions/SphinxSearch/SphinxMWSearch.php on line 15" while reading response header from upstream, client: 192.168.122.1, server: wiki.yuyizhi.org, request: "GET /index.php?title=Special:%E6%90%9C%E7%B4%A2&search=sphinx HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php5-fpm.sock:", host: "wiki.yuyizhi.org" Atyu30 (talk) 06:06, 15 January 2019 (UTC)

The SearchDatabase class that SphinxSearch extends was changed from REL1_31 to REL1_32. It now requires you to define doSearchTextInDB and doSearchTitleInDB methods.
See REL1_31 https://doc.wikimedia.org/mediawiki-core/REL1_31/php/classSearchDatabase.html vs REL1_32 https://doc.wikimedia.org/mediawiki-core/REL1_32/php/classSearchDatabase.html
This is sortof mentioned in the patch notes if you search for Search under deprecation (note this is a Backwards compatibility break instead) https://www.mediawiki.org/wiki/Release_notes/1.32#Compatibility:
> Overriding SearchEngine::{searchText,searchTitle,searchArchiveTitle} in extending classes is deprecated. Extend related doSearch* methods instead.
If you are like me and not comfortable fixing the extension yourself, you will have to wait for one of the extension contributors to update the extension to work with REL1_32. Until then you will have to stay on REL1_31 if you wish to use the extension. Finlay Beaton (talk) 15:29, 1 February 2019 (UTC)
A patch has been submitted to fix this issue: https://gerrit.wikimedia.org/r/536787 Svemir Brkic (talk) 22:56, 15 September 2019 (UTC)
Patch has been merged to master, so if you get the extension code from git, it should already work. Still figuring out how to backport recent fixes into REL1_33 and below. Svemir Brkic (talk) 02:51, 17 September 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Scrollbars in search result list

When I type something in the search field on top of the wiki page, a list pops up containing page/article titles beginning with what I typed in. However that list only displays 10 results, even if there are more.

Is it possible to activate scrollbars in that list box so I can scroll down to see the other results if there are more than 10? Ablum010777 (talk) 08:48, 10 April 2019 (UTC)