Make search mechanism pluggable
Currently, TinyTinyRSS can use raw SQL or the Sphinx search engine for searching. It would be nice if other search engines (such as Xapian) could be used, or if features of the underlying SQL engine (such as MySQL's FULLTEXT indexes) could be leveraged. This commit makes searching into a plugin hook, falling back to the builtin behavior if no search plugin is active. The Sphinx search behavior has been broken out into a plugin.
Showing
- classes/feeds.php 1 addition, 1 deletionclasses/feeds.php
- classes/pluginhost.php 1 addition, 0 deletionsclasses/pluginhost.php
- config.php-dist 0 additions, 4 deletionsconfig.php-dist
- include/functions2.php 6 additions, 44 deletionsinclude/functions2.php
- include/sanity_check.php 0 additions, 5 deletionsinclude/sanity_check.php
- include/sanity_config.php 1 addition, 1 deletioninclude/sanity_config.php
- plugins/search_sphinx/init.php 60 additions, 0 deletionsplugins/search_sphinx/init.php
- plugins/search_sphinx/sphinxapi.php 0 additions, 0 deletionsplugins/search_sphinx/sphinxapi.php
Loading
Please register or sign in to comment