Skip to content

Instantly share code, notes, and snippets.

@antonkorotkov
Last active August 29, 2015 14:08
Show Gist options
  • Save antonkorotkov/249d3518a4a7d6f74a04 to your computer and use it in GitHub Desktop.
Save antonkorotkov/249d3518a4a7d6f74a04 to your computer and use it in GitHub Desktop.
Event Schema
#Event Data Schema
---
name: {
field: post_title,
desc: The name of the Event item
}
url: {
field: permalink,
desc: URL of the Event item
}
startDate: {
meta: dateStart,
desc: The start date and time of the event
}
description: {
field: post_content,
desc: A description of the event.
}
excerpt: {
field: post_excerpt,
desc: A short description of the event.
}
endDate: {
meta: dateEnd,
desc: The end date and time of the event
}
urlTicket: {
meta: urlTicket,
desc: URL of the tickets seller
}
urlRsvp: {
meta: urlRsvp,
desc: URL of event in social network
}
tour: {
meta: tour,
desc: Reference to the event related tour
}
organizer: {
meta: promoters,
desc: Reference to the event related promoter(s)
}
location: {
meta: venue,
desc: Reference to the venue of the event
}
attendee: {
meta: artists,
desc: Reference to the artist(s)
}
image: {
meta: posterImage,
desc: A poster image of the event
}
typicalAgeRange: {
taxonomy: age-limit,
desc: The typical expected/limited age range
}
type: {
taxonomy: event-type,
desc: The type of event
}
#ElasticSearch Representation
---
event: {
age_restriction: typicalAgeRange, # Not analyzed string of terms
artists: attendee, # Multiple Artist objects
description: description, # Non indexed string
end_date: endDate, # Non indexed date (dateOptionalTime)
event_type: type, # Not analyzed string of terms
image: image, # Image object
photo: image, # Full size Image object
promoters: organizer, # Multiple Promoter objects
start_date: startDate, # Non indexed date (dateOptionalTime)
summary: name, # Not analyzed string
tickets: urlTicket, # String
tour: tour, # Tour object
url: url, # String
venue: location # Venue object
}
reference: https://github.com/DiscoDonniePresents/wp-disco/blob/v2.0/json/elasticsearch-mapping.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment