That was a fascinating writeup, and those interjections of dialog were great! Never used elasticsearch, but I can definitely empathize with work grinding to a halt because a library has incomplete or outdated documentation. Missing object structure for a function's parameter was a recent one for me as well.
It's so bad I no longer even try looking for an official doc before going to chatgpt. Way more often than not it gives an explanation and sample implementation faster than searching for existing resources, and it's also so nice to just be able to ask a follow-up question and immediately get an answer.