in src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs [131:143]
private bool EqualsMarker(IndexName other)
{
if (other == null)
return false;
if (!Name.IsNullOrEmpty() && !other.Name.IsNullOrEmpty())
return EqualsString(PrefixClusterName(other, other.Name));
if ((!Cluster.IsNullOrEmpty() || !other.Cluster.IsNullOrEmpty()) && Cluster != other.Cluster)
return false;
return Type is not null && other?.Type is not null && Type == other.Type;
}