mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#589 - ElasticSearch - refactor to DocQueryContext
This commit is contained in:
+4
-4
@@ -96,13 +96,13 @@ public class DefaultExampleExpression implements SpiExpression, ExampleExpressio
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeElastic(ElasticExpressionContext context) throws IOException {
|
||||
public void writeDocQuery(DocQueryContext context) throws IOException {
|
||||
if (!list.isEmpty()) {
|
||||
context.writeBoolMustStart();
|
||||
context.startBoolMust();
|
||||
for (SpiExpression expr : list) {
|
||||
expr.writeElastic(context);
|
||||
expr.writeDocQuery(context);
|
||||
}
|
||||
context.writeBoolEnd();
|
||||
context.endBool();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user