diff --git a/_modules/parsedmarc/elastic.html b/_modules/parsedmarc/elastic.html
index 8fffe13..9985639 100644
--- a/_modules/parsedmarc/elastic.html
+++ b/_modules/parsedmarc/elastic.html
@@ -164,6 +164,7 @@
class _PublishedPolicy(InnerDoc):
+ domain = Text()
adkim = Text()
aspf = Text()
p = Text()
@@ -195,7 +196,6 @@
report_id = Text()
date_range = DateRange()
errors = Text()
- domain = Text()
published_policy = Object(_PublishedPolicy)
source_ip_address = Ip()
source_country = Text()
@@ -372,6 +372,7 @@
begin_date_human,
end_date_human))
published_policy = _PublishedPolicy(
+ domain=aggregate_report["policy_published"]["domain"],
adkim=aggregate_report["policy_published"]["adkim"],
aspf=aggregate_report["policy_published"]["aspf"],
p=aggregate_report["policy_published"]["p"],
@@ -389,7 +390,6 @@
report_id=metadata["report_id"],
date_range=date_range,
errors=metadata["errors"],
- domain=aggregate_report["policy_published"]["domain"],
published_policy=published_policy,
source_ip_address=record["source"]["ip_address"],
source_country=record["source"]["country"],