예제 #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);
 }