mirror of
https://github.com/valitydev/deanonimus.git
synced 2024-11-06 02:05:16 +00:00
add index for search (#59)
This commit is contained in:
parent
bc557dc8fd
commit
57a7b38a01
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user