Extension talk:SphinxSearch/2015
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.
SphinxSearch - exclude jpg files from search results
Hello,
How can I exclude jpg or any other file types from search results in SphinxSearch?
Regards, Tomasz 194.11.254.132 11:02, 18 February 2015 (UTC)
- Perhaps by editing the query in sphinx.conf that gets the content to index? File uploads have their own namespace in the database, so instead of this:
sql_query = SELECT page_id, page_title, page_namespace, page_is_redirect, old_id, old_text FROM page, revision, text WHERE rev_id=page_latest AND old_id=rev_text_id
- You would have something like this:
sql_query = SELECT page_id, page_title, page_namespace, page_is_redirect, old_id, old_text FROM page, revision, text WHERE rev_id=page_latest AND old_id=rev_text_id AND page_namespace NOT IN (6, 7)
- These numbers are defined in includes/Defines.php
define( 'NS_FILE', 6 );
define( 'NS_FILE_TALK', 7 );
Svemir Brkic (talk) 14:34, 18 February 2015 (UTC)- even though I edited sphinx.conf according to above search still finds jpg's, any other tips? 194.11.254.132 12:03, 19 February 2015 (UTC)
- This query only controls how data is fetched initially. If your index is populated already, extension will keep finding previously indexed articles.
- In other words, you need to reindex everything. Svemir Brkic (talk) 12:30, 19 February 2015 (UTC)
- what is the best way to do this?
- I pushed cron to make full index already but nothing changed 194.11.254.132 13:01, 19 February 2015 (UTC)
- even though I edited sphinx.conf according to above search still finds jpg's, any other tips? 194.11.254.132 12:03, 19 February 2015 (UTC)
Where is the width of the column the results are shown in set?
RESOLVED | |
This extension does not control the styling of the search results anymore. It only provides them to the standard MW search results display mechanism. |
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.
It's narrower than I'd like. I'd found where to tweak this to wider a few years ago, but forget where and didn't make a note of it. Whit (talk) 01:37, 23 March 2015 (UTC)
Which snapshot to download
RESOLVED | |
Extensions has been updated to follow MW release schedule. Every supported version of MW now has a maintaned release in the extension downloader. Thes versions as of this writing are 1.31, 1.32, and 1.33. Master branch of the extension should always work with the master of MW. Just to make it even more clear, the version number of the extension in each of those release branches is now different (0.9.1 for 1.31, 0.9.2 for 1.32, 0.9.3 for 1.33, and 1.0.0 for master, which will soon become MW 1.34) |
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.
Can I suggest that the sidebar template be modified to not include the standard download snapshot service, as the eg REL1_24 branch doesn't actually work with MW 1.24 (SphinxMWSearchResult tries to call SearchResult's constructor, SearchResult no longer has one). Would be nice if the 0.9.0 link pointed to a tagged version in git rather than the potentially moving target of master.
It's a bit more trial and error finding the right version to install right now. 202.124.120.130 01:29, 8 June 2015 (UTC)
- I am trying to figure out how to manage these branches properly so that I can merge correct fixes (REL1_24 etc. get auto-created when release candiate of MW is created, so usually actual extension fixes come later...) Svemir Brkic (talk) 03:09, 17 September 2019 (UTC)
Custom namespace to show in the autocomplete search
I have setup 2 custom namespaces on our wiki. I have added them to the $wgNamespacesToBeSearchedDefault = array and they show correctly when clicking on the search button. However they do not show in the autocomplete field when you start typing. I have checked as many config files as I could find, but I could not see an option to add custom namespaces into the autocomplete feature. Any help would be appreciated. Fireflyt (talk) 09:14, 19 June 2015 (UTC)
Connect to socket
Hello is it possible to connect to Sphinix socket instead of TCP-port. For example: $wgSphinxSearch_host='unix:/run/sphinxsearch/searchd.sock'; 2A03:2900:7:73:0:0:0:2 (talk) 11:05, 22 October 2015 (UTC)