to 2.2
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@920 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
593dc2f694
commit
34d2165dfa
@ -74,7 +74,7 @@ class NumericScore extends Extension {
|
||||
|
||||
if(is_a($event, 'SearchTermParseEvent')) {
|
||||
$matches = array();
|
||||
if(preg_match("/score(<|=|>)(\d+)/", $event->term, $matches)) {
|
||||
if(preg_match("/score(<|<=|=|=>|>)(\d+)/", $event->term, $matches)) {
|
||||
$cmp = $matches[1];
|
||||
$score = $matches[2];
|
||||
$event->set_querylet(new Querylet("numeric_score $cmp $score"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user