williamwjs
(William Wang)
3
Hi Jeffrey, thank you for your reply!
I am trying to do something like:
private static final String EQUAL_CLAUSE = """
{
"equals": {
"path": "myFlag",
"value": true
}
}
""";
filterOperators.add(SearchOperator.of(Document.parse(EQUAL_CLAUSE)));
CompoundSearchOperator compoundSearchOperator = SearchOperator.compound().filter(filterOperators);
if (!mustOperators.isEmpty()) {
compoundSearchOperator = compoundSearchOperator.must(mustOperators);
}
if (!shouldOperators.isEmpty()) {
compoundSearchOperator = compoundSearchOperator.should(shouldOperators);
}
aggregates.add(Aggregates.search(compoundSearchOperator));
However, it would yield with no results for me.