Open kpsherva opened 3 weeks ago
document and item mapping addition:
invenio index update items-item-v1.0.0
<-- does not work, do via opensearch
invenio index update documents-document-v1.0.0
"identifiers": {
"properties": {
"scheme": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
},
"type": "object"
},
invenio vocabulary index json --force cds_ils/vocabularies/data/shelf_numbers.json
create new index
from invenio_search.proxies import current_search
x = current_search.create(ignore_existing=True, index_list=["eitems-eitem-v2.0.0"])
list(x)
make sure it exists in opensearch
reindex eitems
invenio index reindex -t eitmid
invenio index run
make sure the eitems are updated (side effect: thy are displayed twice in search)
invenio index delete eitems-eitem-v1.0.0-
reindex physical items and docs
invenio index reindex -t pitmid
invenio index run
invenio index reindex -t docid
invenio index run
invenio vocabulary index json --force cds_ils/vocabularies/data/eitem_sources.json
For the upcoming deployment we need to make sure we are able to correctly update from current version to next one (due to data model changes). For example we need to add new fields to the mappings on sandbox and prod. Is there anything else we need to remember to deploy the latest batch of issues? (see https://github.com/inveniosoftware/invenio-app-ils/pull/1205#pullrequestreview-2011013939) the upgrade instruction can be stored here