simplemachines / sphinx-for-smf Goto Github PK
View Code? Open in Web Editor NEWSphinx Search Engine for SMF
License: Other
Sphinx Search Engine for SMF
License: Other
charset_table = 0..9, A..Z->a..z, _, a..z
Would be better to remove this line or make it optional, because it limit index to latin charset only.
Default value for charset_table are latin and cyrillic characters.
Hi,
i think it could make sense that the "View Sphinx.conf" link is opening in a new tab or window. With that its not needed to go back to the settings page again.
https://example.com/index.php?action=admin;area=search
8192: Non-static method sphinxql_search::searchSettings() should not be called statically
File: /var/www/Sources/ManageSearch.php
Line: 138
Tested on Sphinx 3.6.1
sql_attr_uint
is deprecated. attr_uint
must be used. Also it should be placed inside index
block. Something like this:
index smf_base_index
{
html_strip = 1
source = smf_source
#path = /some/path
min_word_len = 2
charset_table = 0..9, A..Z->a..z, _, a..z
field = body, subject
attr_uint = id_topic
attr_uint = id_board
attr_uint = id_member
attr_uint = poster_time
attr_uint = relevance
attr_uint = num_replies
}
Another warning regarding explicit paths:
WARNING: datadir: explicit index 'path' is deprecated; please convert your config to use 'datadir' directive
I just commented paths and used the default datadir to fix it:
common
{
datadir = ./sphinxdata
}
Hi,
i'm not quite sure about the binlog_path:
binlog_path = /var/sphinx/data/
currently used within the plugin. With sphinx 2.2.10 i have seen messages like:
WARNING: binlog: failed to unlink /var/sphinx/data//binlog.001: No such file or directory (remove it manually)
The sphinx docs are showing (without the slash):
binlog_path = /var/data
http://sphinxsearch.com/docs/current/conf-binlog-path.html
After killing the searchd it seems that the binlog.001 is kept at that path so unlink might fail here because of the doubled slash.
Edit
Yes, a used binlog_path = /var/data is causing the binlog.001 to disappear after the searchd is killed.
Hello,
First off, thanks for this package. It did help me with Sphinx.
Secondly, this is not an "issue". I don't know Sphinx thoroughly so I'd like to know your take on RT indexes.
Well I know that delta indexes are updated every hour and the base is updated daily. So that almost covers up most scenarios. Would you say that the hassle of setting up RT indexes doesn't worth it for a forum? That aside, just for the sake of implementing it: Should I set up integration hooks every time the messages table is updated to reflect those changes into the RT index table?
Currently the code only allows "smf_index". But in a multi-forum environment, this won't work without multiple configs running on different interfaces. Simple solution is to allow different names.
Hi,
currently the generated sphinx config contains a listen directive:
listen = $port:mysql41
If either localhost or 127.0.0.1 is chosen in the search settings of SMF it could make sense to create:
listen = 127.0.0.1:$port:mysql41
or:
listen = localhost:$port:mysql41
that the Sphinx Server is not listening on all interfaces.
Hi,
with d294fee the deprecated "max_matches" setting was removed from the generated config.
After this change the "Maximum # matches" setting of the SMF config page could be also removed.
Shouldn't this line in package-info.xml for the 2.1 install refer to the "SMF 2.1" folder rather than "SMF 2.0"?
https://github.com/SimpleMachines/sphinx-for-smf/blob/master/package-info.xml#L19
Looks like a copy-paste mishap.
I have a VPS that unfortunately is still running Kernel 2.6 and Ubuntu 15.10. I see you require kernel 3.0. Is there any chance I can still get this to work?
We should provide the option to delete the SMF indexes from Fulltext or Custom indexes.
latest-news breaks results on simplemachines.org. Need to test more.
Hi,
I have been using Sphinx for SMF v1.1 in my SMF 2.1 RC2 forum for a very long time without any problem. I have recently upgraded to RC4 and now non-English characters are not showing correctly in the search results:
In the previous example the highlighted words are
método
¡
recién
edición
quizá
fotografía
I am running sphinx-2.2.11-1 in CentOS 8.
Thank you!
http://sphinxsearch.com/blog/2018/03/31/sphinx-3-0-3-released/
Seems that version 3 has removed sql_attr_timestamp and sql_query_info.
using config file '/etc/sphinx/sphinx.conf'...
WARNING: key 'sql_query_info' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'charset_type' was permanently removed from Sphinx configuration. Refer to documentation for details.
WARNING: key 'max_matches' was permanently removed from Sphinx configuration. Refer to documentation for details.
Due to a SMF bug regarding the $num_results being mishandled upon return of searchQuery, the number of results a page is shown is 1.
The current hot fix is to change this:
return $cached_results['total'];
}
To this:
// Work around SMF bug causing multiple pages to not work right.
$_SESSION['search_cache']['num_results'] = $cached_results['total'];
return $cached_results['total'];
}
Which is just forcing the search cache to have the correct number of results.
Notice: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /smf20/Sources/SearchAPI-Sphinxql.php on line 368
Notice: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /smf20/Sources/SearchAPI-Sphinxql.php on line 368
Manticore appears to be a fork of Sphinx and has compatibility with Sphinx. Thus it should be possible to support Manticore
https://manticoresearch.com/about/
https://manticoresearch.com/2019/05/14/benchmark_manticore3_vs_sphinx3
http://www.simplemachines.org/community/index.php?topic=411756.msg3847917#msg3847917
Under some situations it seems that we can end up with a empty port. We should prevent this and/or default the port to 9306
Hi,
after 0dbe89a the current master is throwing the following syntax error:
[09-Nov-2015 13:19:19 Europe/Berlin] PHP Parse error: syntax error, unexpected ',' in /var/www/forum/Sources/SearchAPI-Sphinxql.php on line 603
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.