Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntraACL+Cirrus or Sphinx Search #80

Open
mukulagrawal78 opened this issue Apr 27, 2017 · 5 comments
Open

IntraACL+Cirrus or Sphinx Search #80

mukulagrawal78 opened this issue Apr 27, 2017 · 5 comments

Comments

@mukulagrawal78
Copy link

I have a quick question.
If I use Cirrus search engine on a wiki with IntraACL, would I need to patch Cirrus?
I prefer Cirrus over Sphinx, provided it works with IntraACL. Pls help.

Alternatively, I see that you have Sphinx in your distribution of extensions. I don't see any installation instructions. I am assuming your git repository corresponds only to the "extension" piece of the setupI am guessing I will need to separately install the Sphinx Search Engine from linux repositories and then install your extension separately, is that right? Can I follow instruction provided by mediawiki here: https://www.mediawiki.org/wiki/Extension:SphinxSearch.

@vitalif
Copy link
Member

vitalif commented Apr 28, 2017

Yes, every MediaWiki extension usually does direct DB access and should be patched in order to support page-level read permissions. Maybe CirrusSearch already does it, I don't know (it's sufficient to use the standard userCan('read') hook).

Installation instructions for our sphinx extension are here: http://wiki.4intra.net/SphinxSearchEngine

@vitalif
Copy link
Member

vitalif commented Apr 28, 2017

Ooops. It seems instructions are missing

@vitalif
Copy link
Member

vitalif commented Apr 28, 2017

Anyway it's easy. You just install Sphinx, add a config similar to provided sphinx.conf, include SphinxSearchEngine.php and set connection parameters (see inside it). Then you call php extensions/SphinxSearchEngine/rebuild-sphinx.php --conf LocalSettings.php, that's all.

@mukulagrawal78
Copy link
Author

Vitalif: Can you be clear what you mean by the "connection parameters"? I dont see any connection parameters either in the sphinx.conf or in the SphinxSearchEngine.php.

I am getting a whe biunch of warning like below. I am on MW 1.27.

Warning: SphinxQLClient::query(): Couldn't fetch mysqli in /var/lib/wiki/extensions/SphinxSearchEngine/SphinxSearchEngine_class.phon line 954
PHP Warning: mysqli::close(): Couldn't fetch mysqli in /var/lib/wiki/extensions/SphinxSearchEngine/SphinxSearchEngine_class.php oline 901

@vitalif
Copy link
Member

vitalif commented Apr 28, 2017

Host/port/socket
(Sphinx uses MySQL protocol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants