Closed gjost closed 6 years ago
Publishing collections with both --recursive and --force works properly, but collections published with only --recursive are missing many fields.
--recursive
--force
Example: ddrindex publish -r /var/www/media/ddr/ddr-densho-1016
ddrindex publish -r /var/www/media/ddr/ddr-densho-1016
Nearly all data fields are missing from the resulting Elasticsearch document:
{ "_index":"ddrpublic-20180508b", "_type":"collection", "_id":"ddr-densho-1016", "_version":1, "found":true, "_source":{ "id": "ddr-densho-1016", "model": "collection", "organization_id": "ddr-densho", "collection_id": "ddr-densho-1016", "links_parent": "ddr-densho", "links_json": "ddr-densho-1016", "links_html": "ddr-densho-1016", "links_img": "ddr-densho-1016/denshovh-agene-02-a.jpg", "links_thumb": "ddr-densho-1016/denshovh-agene-02-a.jpg", "links_children": "ddr-densho-1016", "title": "Whitworth College-North by Northwest Collection", "parent_id": "ddr-densho", "signature_id": "denshovh-agene-02", "description": "This collection contains interviews conducted by Whitworth College and North by Northwest Entertainment. The interviews were used in the making of the 2004 documentary <i>In Time of War: The Japanese American experience of WWII</i>, produced by Andrea Dilley and David Tanner.", "lineage": [ { "model": "collection", "idpart": "cid", "id": "ddr-densho-1016", "label": "1016" } ], "_fields": ["id", "record_created", "record_lastmod", "status", "public", "title", "unitdateinclusive", "unitdatebulk", "creators", "extent", "language", "contributor", "description", "physloc", "rights", "accessrestrict", "userrestrict", "prefercite", "bioghist", "scopecontent", "relatedmaterial", "separatedmaterial", "signature_id"], "repo": "ddr", "org": "densho", "cid": "1016", "eid": "", "sid": "", "role": "", "sha1": "" } }
Fixed in commit e2c56d9.
Publishing collections with both
--recursive
and--force
works properly, but collections published with only--recursive
are missing many fields.Example:
ddrindex publish -r /var/www/media/ddr/ddr-densho-1016
Nearly all data fields are missing from the resulting Elasticsearch document: