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:
@@ -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:')." ";
|
||||
|
||||
Reference in New Issue
Block a user