#589 - ElasticSearch - refactor to DocQueryContext

This commit is contained in:
Robin Bygrave
2016-03-08 00:00:02 +13:00
parent da8766533f
commit 37b86f2191
32 changed files with 155 additions and 788 deletions
@@ -60,8 +60,7 @@ class JsonPathExpression extends AbstractExpression {
}
@Override
public void writeElastic(ElasticExpressionContext context) throws IOException {
public void writeDocQuery(DocQueryContext context) throws IOException {
String fullName = propName + "." + path;
if (operator == Op.BETWEEN) {
context.writeRange(fullName, Op.GT_EQ, value, Op.LT_EQ, upperValue);