add index for searchRequest

This commit is contained in:
Anatoly Karlov 2023-08-09 15:15:08 +03:00
parent aa2f2d4f9f
commit 491e6b947c

View File

@ -27,6 +27,7 @@ public class OpenSearchCustomClient {
@SneakyThrows
public List<WalletBalanceData> getWalletBalanceData() {
var searchRequest = new SearchRequest.Builder()
.index("empayre-processing")
.query(q -> q.match(builder -> builder.field("message")
.query(builder1 -> builder1.stringValue("Wallet balance"))))
.query(q -> q.bool(builder -> builder.filter(this::range)))