Skip to content

Commit

Permalink
Range filter gt is broken, closes #119.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Apr 6, 2010
1 parent cc6e6eb commit 1a9c5d6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a9c5d6

Please sign in to comment.