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

mappings/jsonschemas[test]: add date format test schema

parent f3342f90
{
"title": "Custom record schema v0.0.1",
"id": "http://localhost:5000/schemas/test/test-date_v0.0.1.json",
"$schema": "http://localhost:5000/schemas/test/test-date_v0.0.1.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"
}
}
}
},
"parents": {
"type": "array",
"items": {
"type": "object"
}
},
"title": {
"type": "string",
"description": "Record title."
},
"record_date": {
"type": "string",
"description": "Creation date of the record."
},
"control_number": {
"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": 3000
},
"mappings": {
"date_v0.0.1": {
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch"
},
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"_search_all": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"title": {
"type": "keyword",
"copy_to": "_search_all"
},
"record_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"control_number": {
"type": "keyword"
},
"$schema": {
"enabled": false
}
}
}
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment