<= and =>
git-svn-id: file:///home/shish/svn/shimmie2/trunk@919 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
797e644c1f
commit
2c3b82a2fb
@ -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