Range filter gt is broken, closes #119.

This commit is contained in:
kimchy 2010-04-06 15:54:03 +03:00
parent cc6e6eb381
commit 1a9c5d6b15
1 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,13 @@ public class RangeJsonFilterParser extends AbstractIndexComponent implements Jso
} else {
includeUpper = token == JsonToken.VALUE_TRUE;
}
} else if ("gt".equals(currentFieldName)) {
if (jp.getCurrentToken() == JsonToken.VALUE_NULL) {
from = null;
} else {
from = jp.getText();
}
includeLower = false;
} else if ("gte".equals(currentFieldName)) {
if (jp.getCurrentToken() == JsonToken.VALUE_NULL) {
from = null;