def METHOD_NAME(self, model_name, field_name):
    field = self.env["ir.model.fields"].search(
        [("model", "=", model_name), ("name", "=", field_name)], limit=1
    )
    if not field:
        return False
    trgm_index = self.search([("field_id", "=", field.id)], limit=1)
    return bool(trgm_index)