| Yoann Rodière note that we don't really need to extract the tenant id as we know its value (the idea of tenant is that we should never access entities from a different tenant). We could simply fix it by removing the tenantId + "_" token from the string instead of trying to parse it. But in the end, I think my vote goes to considering the _id field as strictly internal to Elasticsearch and never use it. |