Skip to content

Commit

Permalink
add related_items to events schema
Browse files Browse the repository at this point in the history
SDBELGA-767
  • Loading branch information
petrjasek committed Feb 12, 2024
1 parent 238298b commit 6a2abdb
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion server/planning/events/events_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,31 @@
},
},
},
} # end events_schema
"related_items": {
"type": "list",
"required": False,
"schema": {
"type": "dict",
"schema": {
"guid": {"type": "string", "required": True},
"type": {"type": "string"},
"state": {"type": "string"},
"version": {"type": "string"},
"headline": {"type": "string"},
"slugline": {"type": "string"},
"versioncreated": metadata_schema["versioncreated"],
"source": {"type": "string"},
"search_provider": {"type": "string"},
"pubstatus": {"type": "string"},
"language": {"type": "string"},
},
},
"mapping": {
"type": "object",
"dynamic": False,
"properties": {
"guid": not_analyzed, # allow searching events by item id
},
},
},
} # end events_schema:

0 comments on commit 6a2abdb

Please sign in to comment.