This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data models scratch: review and update for Invenio v3.2 and ES 7
- Loading branch information
Showing
10 changed files
with
123 additions
and
141 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
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
29 changes: 0 additions & 29 deletions
29
...-models-from-scratch/author_module/my_site/authors/mappings/v6/authors/author-v1.0.0.json
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
...-models-from-scratch/author_module/my_site/authors/mappings/v7/authors/author-v1.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,27 @@ | ||
{ | ||
"mappings": { | ||
"date_detection": false, | ||
"numeric_detection": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "text", | ||
"index": false | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"name": { | ||
"type": "keyword" | ||
}, | ||
"organization": { | ||
"type": "keyword" | ||
}, | ||
"_created": { | ||
"type": "date" | ||
}, | ||
"_updated": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
} |
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
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
46 changes: 22 additions & 24 deletions
46
...dels-from-scratch/solution/my-site/my_site/authors/mappings/v7/authors/author-v1.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 |
---|---|---|
@@ -1,29 +1,27 @@ | ||
{ | ||
"mappings": { | ||
"author-v1.0.0": { | ||
"date_detection": false, | ||
"numeric_detection": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "text", | ||
"index": false | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"name": { | ||
"type": "text" | ||
}, | ||
"organization": { | ||
"type": "text" | ||
}, | ||
"_created": { | ||
"type": "date" | ||
}, | ||
"_updated": { | ||
"type": "date" | ||
} | ||
"date_detection": false, | ||
"numeric_detection": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "text", | ||
"index": false | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"name": { | ||
"type": "text" | ||
}, | ||
"organization": { | ||
"type": "text" | ||
}, | ||
"_created": { | ||
"type": "date" | ||
}, | ||
"_updated": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
} | ||
} |
68 changes: 0 additions & 68 deletions
68
...dels-from-scratch/solution/my-site/my_site/records/mappings/v6/records/record-v1.0.0.json
This file was deleted.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
...dels-from-scratch/solution/my-site/my_site/records/mappings/v7/records/record-v1.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,66 @@ | ||
{ | ||
"mappings": { | ||
"date_detection": false, | ||
"numeric_detection": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "text", | ||
"index": false | ||
}, | ||
"title": { | ||
"type": "text", | ||
"copy_to": "suggest_title" | ||
}, | ||
"suggest_title": { | ||
"type": "completion" | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"owner": { | ||
"type": "integer" | ||
}, | ||
"keywords": { | ||
"type": "keyword" | ||
}, | ||
"publication_date": { | ||
"type": "date", | ||
"format": "date" | ||
}, | ||
"contributors": { | ||
"type": "object", | ||
"properties": { | ||
"ids": { | ||
"type": "object", | ||
"properties": { | ||
"source": { | ||
"type": "text" | ||
}, | ||
"value": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"affiliations": { | ||
"type": "text" | ||
}, | ||
"role": { | ||
"type": "keyword" | ||
}, | ||
"email": { | ||
"type": "text" | ||
}, | ||
"name": { | ||
"type": "text" | ||
} | ||
} | ||
}, | ||
"_created": { | ||
"type": "date" | ||
}, | ||
"_updated": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
} |