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

mappings/schema: define ocr extracted fields and use copy_to

parent da95afb4
......@@ -51,9 +51,29 @@
},
"content": {
"type": "object",
"description": "Extracted content of the binary file"
"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"
}
}
},
"custom_pid": {
"control_number": {
"type": "string"
},
"$schema": {
......
......@@ -60,9 +60,25 @@
},
"content": {
"type": "object",
"copy_to": "_search_all"
"properties": {
"content":{
"type": "text"
},
"title": {
"type": "keyword"
},
"keywords": {
"type": "keyword"
},
"author": {
"type": "keyword"
},
"content_type": {
"type": "keyword"
}
}
},
"custom_pid": {
"control_number": {
"type": "keyword"
},
"$schema": {
......
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