You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I was using ElasticsearchRestTemplate and found that it seems that the parameters of the script cannot be carried when defining runtime fields in a search request. What should I do to carry the parameters?
Like this script:
double price = 0;
for (int i = 0; i < params._source.pool_quotas.length; ++i) {
if (params._source.pool_quotas[i].pool_id==params.pool_id){
price += params._source.pool_quotas[i].hard_limit;
}
}
emit(price);
Recently, I was using ElasticsearchRestTemplate and found that it seems that the parameters of the script cannot be carried when defining runtime fields in a search request. What should I do to carry the parameters?
Like this script:
it looks:
How can I implement a query like this?Thanks!
The text was updated successfully, but these errors were encountered: