Extension talk:SphinxSearch/2016
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
![]() 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.
Step 3 : Run Indexer
After i installed the extension into mediawiki/htdocs/extensions/SphinxSearch
What does this step 3 means? There isn't any file name indexer. How do i run this?
Step 3 - Run Sphinx Indexer
Run the sphinx indexer to prepare for searching:
/path/to/sphinx/installation/bin/indexer --config /path/to/sphinx.conf --all
AmazingTrans (talk) 23:22, 6 January 2016 (UTC)
- in the terminal run: which indexer
- This will output the path to "indexer". On my install the location is : /usr/local/bin/indexer 81.139.47.2 (talk) 16:31, 15 February 2016 (UTC)
SphinxSearch fails for "...containing <keyword>" queries
I'm running MediaWiki 1.24.1 on CentOS 6.8 with a sphinx version 2.0.8-1.el6.i686 RPM from EPEL and the same version of sphinx-php RPM also from EPEL. Pretty vanilla stuff, I figured.
I've followed the install instructions and the troubleshooting instructions... several times!
SphinxSearch works, sort of. As you type it auto-completes your search with suggestions that match Wiki page titles and if you click on a match the page loads. So far so good.
But when I type something like "ABC" (and I have a couple of pages that start with the letters ABC), I get a "...containing ABC" option. When I choose that option, I get a "Page not found".
Help!!! :) NadimGhaznavi (talk) 21:24, 13 September 2016 (UTC)
- I forgot to mention the version of the SphinxSearch MediaWiki extension: 0.9.0. NadimGhaznavi (talk) 21:25, 13 September 2016 (UTC)
- Same Problem here. Any advice would be much appreciated 213.227.166.119 (talk) 08:39, 22 September 2016 (UTC)
- There have been many fixes recently, and I am not able to replicate this issue. We do not actively support any MW version prior to 1.25 anymore. For MW 1.25 to 1.31 you should try using extension version 0.9.1 (which is in the release 1.31 branch of MW extensions.) Newere release of MW have their own release branch of extension. Svemir Brkic (talk) 01:43, 23 September 2019 (UTC)
use of removed function breaks some searches in mw 1.27
RESOLVED | |
This has been corrected in Dec 2015 |
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.
The following patch needs to be applied when running on 1.27.x. It took us a while to run into this issue so you may not see immediate breakage after upgrading. The change is what's recommended on Manual:Messages API#Deprecated wfMsg.2A functions.
diff --git a/extensions/SphinxSearch/SphinxMWSearch.php b/extensions/SphinxSearch/SphinxMWSearch.php
index 4aea2b6..a6bed43 100644
--- a/extensions/SphinxSearch/SphinxMWSearch.php
+++ b/extensions/SphinxSearch/SphinxMWSearch.php
@@ -226,7 +226,7 @@ class SphinxMWSearch extends SearchEngine {
global $wgContLang, $wgCanonicalNamespaceNames, $wgNamespaceAliases;
// "search everything" keyword
- $allkeyword = wfMsgForContent( 'searchall' );
+ $allkeyword = wfMessage( 'searchall' )->inContentLanguage()->text();
$this->prefix_handlers[ $allkeyword ] = 'searchAllNamespaces';
$all_prefixes = array_merge( 2001:4898:80E8:D:0:0:0:34A (talk) 15:32, 3 November 2016 (UTC)
Did You Mean.... Feature Issue
RESOLVED | |
The only remaining issue with enchant has been fixed for MW release branch 1.31 and later (extension version 0.9.1 and later.) |
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.
Hi guys,I am trying to implement Did You Mean feature on my windows mediawiki setup,but none of three(Enchant,Aspell,Soundex) are working.
For soundex- I have included $wgSphinxSuggestMode = 'soundex'; in localsettings.php file and I am getting this error -"A database query error has occurred. This may indicate a bug in the software"
For enchant-I replaced soundex with 'enchant',I ran the following as per the instructions -
"C:\WINDOWS\system32>C:\xampp\php\php C:\xampp\apps\mediawiki\htdocs\extensions\S
phinxSearch\SphinxSearch_setup.php --sphinxconf C:\sphinx\bin\"
and I get this error-
The filename, directory name, or volume label syntax is incorrect."
For aspell - When I try and install "Aspell-0-50-3-3-Setup.exe" I am getting a lot of errors and setup is not getting completed to move further
Could anyone please help me solve this. 199.244.214.111 (talk) 12:58, 14 December 2016 (UTC)
- I'm also clueless in how to enable the "did you mean feature" using enchant. Its been 2years ago you posted this question and did you find a answer regarding this. If so kindly help me as I'm working with Mediawiki Venkat sabarish (talk) 14:53, 3 January 2019 (UTC)
- I just installed the latest MW and extension code and followed instructions for setting up enchant suggestions. There was only one issue due the changes in the Maintenance class and how it handles command line arguments. I will try to fix that properly, but unless your problem was that SphinxSearch_setup.php would not create any files, I am not sure that this fix would actually help. That fix is not even needed with older versions of MW (not sure at what point this changed.) Svemir Brkic (talk) 02:57, 17 September 2019 (UTC)