Migrate SpanTermQuery.value() from String to FieldValue

Proprietary

In Elasticsearch 9, SpanTermQuery.value() returns a FieldValue instead of String. This recipe updates calls to handle the new return type by checking if it's a string and extracting the string value.

io.moderne.elastic.elastic9.MigrateSpanTermQueryValue
mod run . --recipe=io.moderne.elastic.elastic9.MigrateSpanTermQueryValue

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.