#607 - bool conversion for and(), or() and not()

This commit is contained in:
Robin Bygrave
2016-03-18 16:19:41 +13:00
parent 42f65ead47
commit 62f88c9e4f
3 changed files with 5 additions and 4 deletions
@@ -63,7 +63,7 @@ class JunctionExpression<T> implements SpiJunction<T>, SpiExpression, Expression
@Override
public void writeDocQuery(DocQueryContext context) throws IOException {
context.startBool(type == Type.AND);
context.startBool(type);
List<SpiExpression> list = exprList.internalList();
for (int i = 0; i < list.size(); i++) {
list.get(i).writeDocQuery(context);