#589 - ElasticSearch - refactor to DocQueryContext

This commit is contained in:
Robin Bygrave committed 2016-03-08 00:00:02 +13:00
1 parent da8766533f
commit 37b86f2191
32 files changed
+155 -788

No files matched your search

@@ -63,13 +63,13 @@ abstract class LogicExpression implements SpiExpression {
}
@Override
public void writeElastic(ElasticExpressionContext context) throws IOException {
public void writeDocQuery(DocQueryContext context) throws IOException {
boolean conjunction = joinType.equals(AND);
context.writeBoolStart(conjunction);
expOne.writeElastic(context);
expTwo.writeElastic(context);
context.writeBoolEnd();
context.startBool(conjunction);
expOne.writeDocQuery(context);
expTwo.writeDocQuery(context);
context.endBool();
}
@Override