Пример #1
0
 private String wrappedQueryExcludingTrash(String query) {
   return Format.substitute("{\"bool\":{\"must_not\":[],\"must\":[{0}]}}", query);
 }
Пример #2
0
 private String wrappedNegatedQuery(String query) {
   return Format.substitute("{\"bool\":{\"must_not\":[{0}],\"must\":[]}}", query);
 }