fix error without feature flag in LegacyGeo (#81494)
fix error without feature flag in LegacyGeo (#81494)


GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch