Between 7.9.3 and 7.12.1 it seems the way that arguments to termsQuery() are serialized have changed. In 7.9.3 it used my XContentBuilderExtension to convert my classes to strings that could be understood by elasticsearch.
But now in 7.12.1, it goes through StreamOutput which does not seem to have a way to add any customization, so it fails to serialize.
Is there a way to get it to serialize my classes correctly, or do I just have to manually serialize everything before passing it to query builders now?
I believe this issue was created by this pull request:
Which has spawned these two related issues: