add index for search (#59)

This commit is contained in:
Anatolii Karlov 2024-07-08 22:00:37 +07:00 committed by GitHub
parent bc557dc8fd
commit 57a7b38a01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,8 @@ import org.springframework.stereotype.Component;
import java.util.List;
import static dev.vality.deanonimus.constant.OpenSearchConstants.WALLET_INDEX;
@Slf4j
@Component
@RequiredArgsConstructor
@ -35,6 +37,7 @@ public class WalletDao {
return openSearchClient.search(
s -> s
.size(responseLimit)
.index(WALLET_INDEX)
.query(new Query.Builder()
.bool(queryBuilder)
.build()),