Skip to content

Commit

Permalink
eitems: upgrade json schemas and mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed May 13, 2024
1 parent 7a7cd86 commit 264a0a7
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"document_pid": {
"type": "keyword"
},
"eitem_type": {
"type": "keyword"
},
"files": {
"properties": {
"bucket": {
Expand Down
142 changes: 142 additions & 0 deletions invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v2.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"mappings": {
"date_detection": false,
"numeric_detection": false,
"properties": {
"$schema": {
"type": "keyword"
},
"_created": {
"type": "date"
},
"_updated": {
"type": "date"
},
"bucket_id": {
"type": "keyword"
},
"created_by": {
"properties": {
"type": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
},
"type": "object"
},
"description": {
"type": "text"
},
"document": {
"properties": {
"authors": {
"type": "text"
},
"cover_metadata": {
"properties": {},
"type": "object"
},
"edition": {
"type": "text"
},
"pid": {
"type": "keyword"
},
"publication_year": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
},
"type": "object"
},
"document_pid": {
"type": "keyword"
},
"eitem_type": {
"type": "keyword"
},
"files": {
"properties": {
"bucket": {
"type": "keyword"
},
"checksum": {
"type": "keyword"
},
"file_id": {
"type": "keyword"
},
"key": {
"type": "keyword"
},
"size": {
"type": "keyword"
},
"version_id": {
"type": "keyword"
}
},
"type": "object"
},
"identifiers": {
"properties": {
"material": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
},
"value": {
"type": "keyword",
"fields": {
"text": {
"type": "text"
}
}
}
},
"type": "object"
},
"internal_notes": {
"type": "text"
},
"open_access": {
"type": "boolean"
},
"pid": {
"type": "keyword"
},
"source": {
"type": "keyword",
"fields": {
"text": {
"type": "text"
}
}
},
"urls": {
"properties": {
"description": {
"type": "text"
},
"value": {
"type": "keyword"
},
"login_required": {
"type": "boolean"
}
},
"type": "object"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"document_pid": {
"type": "keyword"
},
"eitem_type": {
"type": "keyword"
},
"files": {
"properties": {
"bucket": {
Expand Down
142 changes: 142 additions & 0 deletions invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v2.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"mappings": {
"date_detection": false,
"numeric_detection": false,
"properties": {
"$schema": {
"type": "keyword"
},
"_created": {
"type": "date"
},
"_updated": {
"type": "date"
},
"bucket_id": {
"type": "keyword"
},
"created_by": {
"properties": {
"type": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
},
"type": "object"
},
"description": {
"type": "text"
},
"document": {
"properties": {
"authors": {
"type": "text"
},
"cover_metadata": {
"properties": {},
"type": "object"
},
"edition": {
"type": "text"
},
"pid": {
"type": "keyword"
},
"publication_year": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
},
"type": "object"
},
"document_pid": {
"type": "keyword"
},
"eitem_type": {
"type": "keyword"
},
"files": {
"properties": {
"bucket": {
"type": "keyword"
},
"checksum": {
"type": "keyword"
},
"file_id": {
"type": "keyword"
},
"key": {
"type": "keyword"
},
"size": {
"type": "keyword"
},
"version_id": {
"type": "keyword"
}
},
"type": "object"
},
"identifiers": {
"properties": {
"material": {
"type": "keyword"
},
"scheme": {
"type": "keyword"
},
"value": {
"type": "keyword",
"fields": {
"text": {
"type": "text"
}
}
}
},
"type": "object"
},
"internal_notes": {
"type": "text"
},
"open_access": {
"type": "boolean"
},
"pid": {
"type": "keyword"
},
"source": {
"type": "keyword",
"fields": {
"text": {
"type": "text"
}
}
},
"urls": {
"properties": {
"description": {
"type": "text"
},
"value": {
"type": "keyword"
},
"login_required": {
"type": "boolean"
}
},
"type": "object"
}
}
}
}
3 changes: 0 additions & 3 deletions invenio_app_ils/eitems/mappings/v7/eitems/eitem-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"document_pid": {
"type": "keyword"
},
"eitem_type": {
"type": "keyword"
},
"files": {
"properties": {
"bucket": {
Expand Down
Loading

0 comments on commit 264a0a7

Please sign in to comment.