elastic-rs / elastic

An Elasticsearch REST API client for Rust
Apache License 2.0
253 stars 40 forks source link

Bulk query crashing #407

Open jawline opened 4 years ago

jawline commented 4 years ago

Whenever I try to make a bulk query with the following code my program crashes with a stack overflow exception:

let ops = all_bets.into_iter().map(|x| bulk::<BetSummary>().index(x));                         
client.bulk().index(BetSummary::index()).ty(BetSummary::static_ty()).extend(ops).send()?;  

Could you let me know what I am doing wrong?

mwilliammyers commented 4 years ago

What version of Elasticsearch are you running?

Have you tried it without the ty (type)?

What is the error message/stack trace you are getting?