mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#589 - ElasticSearch - refactor to DocQueryContext
This commit is contained in:
1 parent
da8766533f
commit
37b86f2191
32 files changed
+155
-788
No files matched your search
@@ -100,14 +100,13 @@ abstract class JunctionExpression<T> implements Junction<T>, SpiExpression, Expr
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeElastic(ElasticExpressionContext context) throws IOException {
|
||||
|
||||
context.writeBoolStart(!disjunction);
|
||||
public void writeDocQuery(DocQueryContext context) throws IOException {
|
||||
context.startBool(!disjunction);
|
||||
List<SpiExpression> list = exprList.internalList();
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
list.get(i).writeElastic(context);
|
||||
list.get(i).writeDocQuery(context);
|
||||
}
|
||||
context.writeBoolEnd();
|
||||
context.endBool();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user