-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eitems: upgrade json schemas and mappings
- Loading branch information
Showing
7 changed files
with
429 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 142 additions & 0 deletions
142
invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v2.0.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 142 additions & 0 deletions
142
invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v2.0.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.