forked from inveniosoftware/invenio-vocabularies
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* go via `invenio_search.engine` rather than importing elasticsearch packages directly
- Loading branch information
Showing
54 changed files
with
608 additions
and
536 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
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
5 changes: 3 additions & 2 deletions
5
...trib/affiliations/mappings/v6/__init__.py → ...contrib/affiliations/mappings/__init__.py
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,9 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2021 CERN. | ||
# Copyright (C) 2022 CERN. | ||
# Copyright (C) 2022 Northwestern University. | ||
# | ||
# Invenio-Vocabularies is free software; you can redistribute it and/or | ||
# modify it under the terms of the MIT License; see LICENSE file for more | ||
# details. | ||
|
||
"""Affiliations Elasticsearch v6 mappings.""" | ||
"""Affiliations search mappings.""" |
9 changes: 9 additions & 0 deletions
9
invenio_vocabularies/contrib/affiliations/mappings/os-v1/__init__.py
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,9 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2022 CERN. | ||
# | ||
# Invenio-Vocabularies is free software; you can redistribute it and/or | ||
# modify it under the terms of the MIT License; see LICENSE file for more | ||
# details. | ||
|
||
"""Affiliations OpenSearch v1 mappings.""" |
85 changes: 85 additions & 0 deletions
85
...nio_vocabularies/contrib/affiliations/mappings/os-v1/affiliations/affiliation-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,85 @@ | ||
{ | ||
"mappings": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"$schema": { | ||
"type": "keyword", | ||
"index": "false" | ||
}, | ||
"created": { | ||
"type": "date" | ||
}, | ||
"updated": { | ||
"type": "date" | ||
}, | ||
"indexed_at": { | ||
"type": "date" | ||
}, | ||
"uuid": { | ||
"type": "keyword" | ||
}, | ||
"version_id": { | ||
"type": "integer" | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"name_sort": { | ||
"type": "keyword" | ||
}, | ||
"name": { | ||
"type": "text", | ||
"copy_to": "name_sort", | ||
"fields": { | ||
"suggest": { | ||
"type": "search_as_you_type" | ||
} | ||
} | ||
}, | ||
"acronym": { | ||
"type": "text", | ||
"fields": { | ||
"suggest": { | ||
"type": "search_as_you_type" | ||
} | ||
} | ||
}, | ||
"identifiers": { | ||
"properties": { | ||
"identifier": { | ||
"type": "keyword" | ||
}, | ||
"scheme": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"pid": { | ||
"type": "object", | ||
"properties": { | ||
"pk": { | ||
"type": "integer" | ||
}, | ||
"pid_type": { | ||
"type": "keyword" | ||
}, | ||
"obj_type": { | ||
"type": "keyword" | ||
}, | ||
"status": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"title": { | ||
"type": "object", | ||
"dynamic": true, | ||
"properties": { | ||
"en": { | ||
"type": "search_as_you_type" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
77 changes: 0 additions & 77 deletions
77
invenio_vocabularies/contrib/affiliations/mappings/v6/affiliations/affiliation-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
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
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
68 changes: 68 additions & 0 deletions
68
invenio_vocabularies/contrib/awards/mappings/os-v1/awards/award-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,68 @@ | ||
{ | ||
"mappings": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"$schema": { | ||
"type": "keyword", | ||
"index": "false" | ||
}, | ||
"created": { | ||
"type": "date" | ||
}, | ||
"updated": { | ||
"type": "date" | ||
}, | ||
"indexed_at": { | ||
"type": "date" | ||
}, | ||
"uuid": { | ||
"type": "keyword" | ||
}, | ||
"version_id": { | ||
"type": "integer" | ||
}, | ||
"identifiers": { | ||
"properties": { | ||
"identifier": { | ||
"type": "keyword" | ||
}, | ||
"scheme": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"title": { | ||
"type": "object", | ||
"dynamic": true, | ||
"properties": { | ||
"en": { | ||
"type": "search_as_you_type" | ||
} | ||
} | ||
}, | ||
"number": { | ||
"type": "keyword" | ||
}, | ||
"acronym": { | ||
"type": "keyword" | ||
}, | ||
"funder": { | ||
"type": "object", | ||
"properties": { | ||
"@v": { | ||
"type": "keyword" | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"name": { | ||
"type": "text" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.