Here is my code, i have lakhs of document in transactions_development index and in below code I am getting only 10 hits inside body but I want to fetch lakhs of hits
const totalDebited = await esClient.search({
index: 'transactions_development',
body: {
query: {
bool: {
must: {
match_all: {}
},
filter: [{ term: { actionee_id: { value: param.dataValues.actioneeId } } }, { terms: { transaction_type: ['bet', 'bet_non_cash'] } }]
}
},
aggs: {
total_bet_amount: {
sum: {
field: 'player_details.deducted_amount'
}
}
}
}
})