Commit e4ceea52 authored by Carina Antunes's avatar Carina Antunes
Browse files

remove binary mappings

parent 8302af40
{
"title": "Custom record schema v0.0.1",
"id": "http://localhost:5000/schemas/test/binary_v0.0.1.json",
"$schema": "http://localhost:5000/schemas/test/binary_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"
}
}
}
},
"_data": {
"type": "object",
"title": {
"type": "string",
"description": "Record title."
},
"description": {
"type": "string",
"description": "Description for record."
},
"link": {
"type": "string",
"description": "URL where to find the original file."
},
"b64": {
"type": "string",
"description": "Base64 encoded binary file."
},
"content": {
"type": "object",
"description": "Extracted content of the binary file",
"properties": {
"content": {
"type": "string"
},
"title": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"author": {
"type": "string"
},
"content_type": {
"type": "string"
}
}
}
},
"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": {
"binary_v0.0.2": {
"dynamic": "strict",
"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"
}
}
},
"_data": {
"type": "object",
"properties": {
"title": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"description": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"link": {
"type": "keyword"
},
"b64": {
"enabled": false
},
"content": {
"type": "object",
"properties": {
"content": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"title": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"keywords": {
"type": "keyword"
},
"author": {
"type": "keyword"
},
"content_type": {
"type": "keyword"
}
}
}
}
},
"_updated": {
"type": "date"
},
"_created": {
"type": "date"
},
"control_number": {
"type": "keyword"
},
"$schema": {
"enabled": false
}
}
}
}
}
{
"settings": {
"index.percolator.map_unmapped_fields_as_text": true,
"index.mapping.total_fields.limit": 3000,
"index.query.default_field" : ["_data.*"]
},
"mappings": {
"dynamic": "strict",
"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"
}
}
},
"_data": {
"type": "object",
"properties": {
"title": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"description": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"link": {
"type": "keyword"
},
"b64": {
"enabled": false
},
"content": {
"type": "object",
"properties": {
"content": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"title": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"keywords": {
"type": "keyword"
},
"author": {
"type": "keyword"
},
"content_type": {
"type": "keyword"
}
}
}
}
},
"_updated": {
"type": "date"
},
"_created": {
"type": "date"
},
"control_number": {
"type": "keyword"
},
"$schema": {
"enabled": false
}
}
}
}
Markdown is supported
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