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

This commit is contained in:
Robin Bygrave committed 2016-03-18 16:19:41 +13:00
1 parent 42f65ead47
commit 62f88c9e4f
3 files changed
+5 -4

No files matched your search

@@ -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);