1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 23:51:28 +00:00

add support for Sphinx search engine

This commit is contained in:
Andrew Dolgov
2010-11-12 21:44:19 +03:00
parent 353221477b
commit e4f7f8dff2
5 changed files with 1692 additions and 13 deletions

View File

@@ -374,17 +374,23 @@
print "<div class=\"dlgSecCont\">";
print "<input onkeypress=\"return filterCR(event, search)\"
name=\"query\" size=\"20\" type=\"search\" value=''>";
if (!SPHINX_ENABLE) {
print " " . __('match on')." ";
print "<input onkeypress=\"return filterCR(event, search)\"
name=\"query\" size=\"20\" type=\"search\" value=''>";
$search_fields = array(
"title" => __("Title"),
"content" => __("Content"),
"both" => __("Title or content"));
print " " . __('match on')." ";
print_select_hash("match_on", 3, $search_fields);
$search_fields = array(
"title" => __("Title"),
"content" => __("Content"),
"both" => __("Title or content"));
print_select_hash("match_on", 3, $search_fields);
} else {
print "<input onkeypress=\"return filterCR(event, search)\"
name=\"query\" size=\"50\" type=\"search\" value=''>";
}
print "<br/>".__('Limit search to:')." ";