Commit b5aa930b authored by Pablo Panero's avatar Pablo Panero
Browse files

Merge branch 'indico' into 'master'

Add Indico mappins

See merge request webservices/cern-search/cern-search-rest-api!34
parents 9a383016 fded4f81
{
"title": "Indico Attachments schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/attachments_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/attachments_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"type": "array",
"items": {
"type": "string"
}
}
}
},
"id": {
"type": "string",
"description": "Attachments id."
},
"category_path": {
"type": "array",
"items": {
"type": "string"
},
"description": "Attachments category path (ordered array)."
},
"event_id": {
"type": "string",
"description": "Event id."
},
"contribution_id": {
"type": "string",
"description": "Contribution id.",
"required": false
},
"subcontribution_id": {
"type": "string",
"description": "Event id.",
"required": false
},
"creation_date": {
"type": "string",
"description": "Attachments creation date."
},
"filename": {
"type": "string",
"description": "Attachments filename."
},
"content": {
"type": "string",
"description": "Attachments content."
},
"custom_pid": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
\ No newline at end of file
{
"title": "Indico Contributions schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/contributions_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/contributions_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"type": "array",
"items": {
"type": "string"
}
}
}
},
"id": {
"type": "string",
"description": "Contributions id."
},
"category_path": {
"type": "array",
"items": {
"type": "string"
},
"description": "Contributions category path (ordered array)."
},
"event_id": {
"type": "string",
"description": "Event id."
},
"creation_date": {
"type": "string",
"description": "Contributions creation date."
},
"start_date": {
"type": "string",
"description": "Contributions start date."
},
"end_date": {
"type": "string",
"description": "Contributions end date."
},
"location": {
"type": "string",
"description": "Contributions location."
},
"title": {
"type": "string",
"description": "Contributions title."
},
"description": {
"type": "string",
"description": "Contributions description."
},
"list_of_persons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Contributions person's name."
},
"affiliation": {
"type": "string",
"description": "Contributions person's affiliation."
},
"role": {
"type": "array",
"items": {
"type": "string"
},
"description": "Contributions person's role(s)."
}
}
}
},
"custom_pid": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
\ No newline at end of file
{
"title": "Indico Event schema v0.0.1",
"id": "http://localhost:5000/schemas/indico/event_v0.0.1.json",
"$schema": "http://localhost:5000/schemas/indico/event_v0.0.1.json",
"title": "Indico Event schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/events_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/events_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
......@@ -44,26 +44,30 @@
},
"description": "Event category path (ordered array)."
},
"title": {
"event_type": {
"type": "string",
"description": "Event title."
},
"start_date": {
"type": "date-time",
"description": "Event start date."
"description": "Event type."
},
"creation_date": {
"type": "date-time",
"type": "string",
"description": "Event creation date."
},
"start_date": {
"type": "string",
"description": "Event start date."
},
"end_date": {
"type": "date-time",
"type": "string",
"description": "Event end date."
},
"location": {
"type": "string",
"description": "Event location."
},
"title": {
"type": "string",
"description": "Event title."
},
"description": {
"type": "string",
"description": "Event description."
......@@ -84,10 +88,6 @@
}
}
},
"event_type": {
"type": "string",
"description": "Event type."
},
"custom_pid": {
"type": "string"
},
......
{
"title": "Indico Notes schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/notes_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/notes_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"type": "array",
"items": {
"type": "string"
}
}
}
},
"id": {
"type": "string",
"description": "Notes id."
},
"category_path": {
"type": "array",
"items": {
"type": "string"
},
"description": "Notes category path (ordered array)."
},
"event_id": {
"type": "string",
"description": "Notes id."
},
"contribution_id": {
"type": "string",
"description": "Notes id.",
"required": false
},
"subcontribution_id": {
"type": "string",
"description": "Notes id.",
"required": false
},
"creation_date": {
"type": "string",
"description": "Attachments creation date."
},
"content": {
"type": "string",
"description": "Attachments content."
},
"custom_pid": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
\ No newline at end of file
{
"title": "Indico Subontributions schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/subcontributions_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/subcontributions_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"type": "array",
"items": {
"type": "string"
}
}
}
},
"id": {
"type": "string",
"description": "Subontributions id."
},
"category_path": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subontributions category path (ordered array)."
},
"event_id": {
"type": "string",
"description": "Event id."
},
"contribution_id": {
"type": "string",
"description": "Contribution id."
},
"creation_date": {
"type": "string",
"description": "Subontributions creation date."
},
"start_date": {
"type": "string",
"description": "Subontributions start date."
},
"end_date": {
"type": "string",
"description": "Subontributions end date."
},
"location": {
"type": "string",
"description": "Subontributions location."
},
"title": {
"type": "string",
"description": "Subontributions title."
},
"description": {
"type": "string",
"description": "Subontributions description."
},
"list_of_persons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Subontributions person's name."
},
"affiliation": {
"type": "string",
"description": "Subontributions person's affiliation."
},
"role": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subontributions person's role(s)."
}
}
}
},
"custom_pid": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
\ No newline at end of file
{
"settings": {
"index.percolator.map_unmapped_fields_as_string": true,
"index.mapping.total_fields.limit": 30
},
"mappings": {
"attachments_v1.0.0": {
"numeric_detection": true,
"_meta": {
"_owner": "indico@cern.ch"
},
"properties": {
"_access": {
"type": "nested",
"properties": {
"owner":{
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"id": {
"type": "keyword"
},
"category_path": {
"type": "keyword"
},
"event_id": {
"type": "keyword"
},
"contribution_id": {
"type": "keyword"
},
"subcontribution_id": {
"type": "keyword"
},
"creation_date": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
},
"filename": {
"type": "text",
"fields": [
{
"english": {
"type": "text",
"analyzer": "english"
}
},
{
"french": {
"type": "text",
"analyzer": "french"
}
}
]
},
"content": {
"type": "text",
"fields": [
{
"english": {
"type": "text",
"analyzer": "english"
}
},
{
"french": {
"type": "text",
"analyzer": "french"
}
}
]
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
}
}
}
}
}
\ No newline at end of file
{
"settings": {
"index.percolator.map_unmapped_fields_as_string": true,
"index.mapping.total_fields.limit": 30
},
"mappings": {
"contributions_v1.0.0": {
"numeric_detection": true,
"_meta": {
"_owner": "indico@cern.ch"
},
"properties": {
"_access": {
"type": "nested",
"properties": {
"owner":{
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"id": {
"type": "keyword"
},
"category_path": {
"type": "keyword"
},
"event_id": {
"type": "keyword"
},
"creation_date": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
},
"start_date": {
"type": "date",