diff --git a/common/search/src/test/resources/test_documents/image-production.1098.json b/common/search/src/test/resources/test_documents/image-production.1098.json index cc98b0a07..1c217f254 100644 --- a/common/search/src/test/resources/test_documents/image-production.1098.json +++ b/common/search/src/test/resources/test_documents/image-production.1098.json @@ -1,149 +1,149 @@ { - "description": "an image with a production event in 1098", - "createdAt": "2024-11-14T14:37:56.596538Z", - "id": "zim2up41", - "document": { - "modifiedTime": "2019-11-11T12:04:49Z", - "display": { - "id": "zim2up41", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with a production event in 1098", + "createdAt" : "2024-11-25T15:14:41.303247Z", + "id" : "zim2up41", + "document" : { + "modifiedTime" : "2019-11-11T12:04:49Z", + "display" : { + "id" : "zim2up41", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/JUJ.jpg/info.json", - "linkText": "Link text: Hl1nIcW", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/JUJ.jpg/info.json", + "linkText" : "Link text: Hl1nIcW", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/JUJ.jpg/info.json", - "linkText": "Link text: Hl1nIcW", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/JUJ.jpg/info.json", + "linkText" : "Link text: Hl1nIcW", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#8CC4A4", - "source": { - "id": "wqba6mvb", - "title": "Production event in 1098", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#8CC4A4", + "source" : { + "id" : "wqba6mvb", + "title" : "Production event in 1098", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "zim2up41", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "zim2up41", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "wqba6mvb", - "sourceIdentifier.value": "owgRJhdOqe", - "identifiers.value": [ + "id" : "wqba6mvb", + "sourceIdentifier.value" : "owgRJhdOqe", + "identifiers.value" : [ "owgRJhdOqe" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1098" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1098" + "title" : "Production event in 1098" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ -27517622400000 ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.026766865, -0.005005164, -0.009573154, @@ -4241,7 +4241,7 @@ 0.011764826, 0.0052256417 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.004265803, 0.042820178, -0.039333668, @@ -5244,8 +5244,8 @@ 0.03820625 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/image-production.1900.json b/common/search/src/test/resources/test_documents/image-production.1900.json index f38d9d827..2f9ba1594 100644 --- a/common/search/src/test/resources/test_documents/image-production.1900.json +++ b/common/search/src/test/resources/test_documents/image-production.1900.json @@ -1,149 +1,149 @@ { - "description": "an image with a production event in 1900", - "createdAt": "2024-11-14T14:37:56.576579Z", - "id": "i8bakexw", - "document": { - "modifiedTime": "2037-01-20T18:12:21Z", - "display": { - "id": "i8bakexw", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with a production event in 1900", + "createdAt" : "2024-11-25T15:14:41.277695Z", + "id" : "i8bakexw", + "document" : { + "modifiedTime" : "2037-01-20T18:12:21Z", + "display" : { + "id" : "i8bakexw", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/MFf.jpg/info.json", - "linkText": "Link text: 026fuZlr", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/MFf.jpg/info.json", + "linkText" : "Link text: 026fuZlr", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/MFf.jpg/info.json", - "linkText": "Link text: 026fuZlr", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/MFf.jpg/info.json", + "linkText" : "Link text: 026fuZlr", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#C67937", - "source": { - "id": "vqs9r5bs", - "title": "Production event in 1900", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#C67937", + "source" : { + "id" : "vqs9r5bs", + "title" : "Production event in 1900", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "i8bakexw", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "i8bakexw", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "vqs9r5bs", - "sourceIdentifier.value": "z5L2uS8Ouo", - "identifiers.value": [ + "id" : "vqs9r5bs", + "sourceIdentifier.value" : "z5L2uS8Ouo", + "identifiers.value" : [ "z5L2uS8Ouo" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1900" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1900" + "title" : "Production event in 1900" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ -2208988800000 ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.0047968123, 0.015364653, -0.01583392, @@ -4241,7 +4241,7 @@ -0.020360664, 0.010017425 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0010269998, -0.02583155, 0.0204062, @@ -5244,8 +5244,8 @@ 0.020544065 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/image-production.1904.json b/common/search/src/test/resources/test_documents/image-production.1904.json index 9a5783da8..561860689 100644 --- a/common/search/src/test/resources/test_documents/image-production.1904.json +++ b/common/search/src/test/resources/test_documents/image-production.1904.json @@ -1,149 +1,149 @@ { - "description": "an image with a production event in 1904", - "createdAt": "2024-11-14T14:37:56.586389Z", - "id": "zj4rti6w", - "document": { - "modifiedTime": "1954-03-26T03:10:59Z", - "display": { - "id": "zj4rti6w", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with a production event in 1904", + "createdAt" : "2024-11-25T15:14:41.292034Z", + "id" : "zj4rti6w", + "document" : { + "modifiedTime" : "1954-03-26T03:10:59Z", + "display" : { + "id" : "zj4rti6w", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/km7.jpg/info.json", - "credit": "Credit line: UiijDELo", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/km7.jpg/info.json", + "credit" : "Credit line: UiijDELo", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/km7.jpg/info.json", - "credit": "Credit line: UiijDELo", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/km7.jpg/info.json", + "credit" : "Credit line: UiijDELo", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#CF839A", - "source": { - "id": "fytxlujd", - "title": "Production event in 1904", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#CF839A", + "source" : { + "id" : "fytxlujd", + "title" : "Production event in 1904", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "zj4rti6w", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "zj4rti6w", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "fytxlujd", - "sourceIdentifier.value": "Ali8NMeqhr", - "identifiers.value": [ + "id" : "fytxlujd", + "sourceIdentifier.value" : "Ali8NMeqhr", + "identifiers.value" : [ "Ali8NMeqhr" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1904" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1904" + "title" : "Production event in 1904" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ -2082844800000 ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.010363603, 0.010966938, 0.0011999448, @@ -4241,7 +4241,7 @@ 0.039341953, -0.006312185 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.012751499, 0.0021211202, 0.040509477, @@ -5244,8 +5244,8 @@ 0.014304997 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/image-production.1976.json b/common/search/src/test/resources/test_documents/image-production.1976.json index a63d07790..99e3fa417 100644 --- a/common/search/src/test/resources/test_documents/image-production.1976.json +++ b/common/search/src/test/resources/test_documents/image-production.1976.json @@ -1,151 +1,151 @@ { - "description": "an image with a production event in 1976", - "createdAt": "2024-11-14T14:37:56.581590Z", - "id": "4zkzs8jw", - "document": { - "modifiedTime": "2028-08-26T11:12:55Z", - "display": { - "id": "4zkzs8jw", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with a production event in 1976", + "createdAt" : "2024-11-25T15:14:41.286026Z", + "id" : "4zkzs8jw", + "document" : { + "modifiedTime" : "2028-08-26T11:12:55Z", + "display" : { + "id" : "4zkzs8jw", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/hV7.jpg/info.json", - "credit": "Credit line: 2syMgrwY", - "linkText": "Link text: CbnDcl", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/hV7.jpg/info.json", + "credit" : "Credit line: 2syMgrwY", + "linkText" : "Link text: CbnDcl", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/hV7.jpg/info.json", - "credit": "Credit line: 2syMgrwY", - "linkText": "Link text: CbnDcl", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/hV7.jpg/info.json", + "credit" : "Credit line: 2syMgrwY", + "linkText" : "Link text: CbnDcl", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#4DBE5F", - "source": { - "id": "ks4dduhu", - "title": "Production event in 1976", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#4DBE5F", + "source" : { + "id" : "ks4dduhu", + "title" : "Production event in 1976", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "4zkzs8jw", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "4zkzs8jw", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ks4dduhu", - "sourceIdentifier.value": "PhedPctLWp", - "identifiers.value": [ + "id" : "ks4dduhu", + "sourceIdentifier.value" : "PhedPctLWp", + "identifiers.value" : [ "PhedPctLWp" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1976" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1976" + "title" : "Production event in 1976" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ 189302400000 ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.008132671, -0.0189312, -6.1867543E-4, @@ -4243,7 +4243,7 @@ -0.0015579165, -0.02412357 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.06583936, 0.020060135, 0.013187716, @@ -5246,8 +5246,8 @@ -0.057070903 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/image-production.2020.json b/common/search/src/test/resources/test_documents/image-production.2020.json index 4f3f49cbb..4da5f6424 100644 --- a/common/search/src/test/resources/test_documents/image-production.2020.json +++ b/common/search/src/test/resources/test_documents/image-production.2020.json @@ -1,147 +1,147 @@ { - "description": "an image with a production event in 2020", - "createdAt": "2024-11-14T14:37:56.591202Z", - "id": "m2rbdwgt", - "document": { - "modifiedTime": "2056-12-21T22:29:43Z", - "display": { - "id": "m2rbdwgt", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with a production event in 2020", + "createdAt" : "2024-11-25T15:14:41.297789Z", + "id" : "m2rbdwgt", + "document" : { + "modifiedTime" : "2056-12-21T22:29:43Z", + "display" : { + "id" : "m2rbdwgt", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/BNV.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/BNV.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/BNV.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/BNV.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#D70B8B", - "source": { - "id": "smbunmln", - "title": "Production event in 2020", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#D70B8B", + "source" : { + "id" : "smbunmln", + "title" : "Production event in 2020", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "m2rbdwgt", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "m2rbdwgt", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "smbunmln", - "sourceIdentifier.value": "299HseGjKZ", - "identifiers.value": [ + "id" : "smbunmln", + "sourceIdentifier.value" : "299HseGjKZ", + "identifiers.value" : [ "299HseGjKZ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "2020" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 2020" + "title" : "Production event in 2020" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ 1577836800000 ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.0051434813, -0.011234555, -9.6152583E-4, @@ -4239,7 +4239,7 @@ 0.042359322, 0.008583693 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.037654314, 0.04222703, -0.013481896, @@ -5242,8 +5242,8 @@ -0.004649543 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.contributors.0.json b/common/search/src/test/resources/test_documents/images.contributors.0.json index 456c9b19e..02725f332 100644 --- a/common/search/src/test/resources/test_documents/images.contributors.0.json +++ b/common/search/src/test/resources/test_documents/images.contributors.0.json @@ -1,158 +1,161 @@ { - "description": "images with different contributors", - "createdAt": "2024-11-14T14:37:56.374848Z", - "id": "s6atajrq", - "document": { - "modifiedTime": "1991-06-19T20:23:45Z", - "display": { - "id": "s6atajrq", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different contributors", + "createdAt" : "2024-11-25T15:14:41.116414Z", + "id" : "s6atajrq", + "document" : { + "modifiedTime" : "1991-06-19T20:23:45Z", + "display" : { + "id" : "s6atajrq", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/15c.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/15c.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/15c.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/15c.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#A1CC20", - "source": { - "id": "ioczclpg", - "title": "title-YmNK8KG02u", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#A1CC20", + "source" : { + "id" : "ioczclpg", + "title" : "title-YmNK8KG02u", + "contributors" : [ { - "agent": { - "label": "carrots", - "type": "Agent" + "agent" : { + "label" : "carrots", + "type" : "Agent" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "s6atajrq", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "s6atajrq", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "carrots" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ioczclpg", - "sourceIdentifier.value": "kndclg5FbZ", - "identifiers.value": [ + "id" : "ioczclpg", + "sourceIdentifier.value" : "kndclg5FbZ", + "identifiers.value" : [ "kndclg5FbZ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-YmNK8KG02u" + "title" : "title-YmNK8KG02u" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ - "{\"label\":\"carrots\",\"type\":\"Agent\"}" + "source.contributors.agent" : [ + { + "id" : "carrots", + "label" : "carrots" + } ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ "carrots" ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 8.4422267E-4, -0.021801956, -8.682923E-4, @@ -4250,7 +4253,7 @@ 0.0048043597, -0.028333277 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.050384644, 0.03814256, -0.0063891374, @@ -5253,8 +5256,8 @@ -0.0057344665 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.contributors.1.json b/common/search/src/test/resources/test_documents/images.contributors.1.json index 3b99f202a..83163bab8 100644 --- a/common/search/src/test/resources/test_documents/images.contributors.1.json +++ b/common/search/src/test/resources/test_documents/images.contributors.1.json @@ -1,173 +1,179 @@ { - "description": "images with different contributors", - "createdAt": "2024-11-14T14:37:56.379788Z", - "id": "8p59sfry", - "document": { - "modifiedTime": "2021-10-07T09:48:56Z", - "display": { - "id": "8p59sfry", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different contributors", + "createdAt" : "2024-11-25T15:14:41.120044Z", + "id" : "8p59sfry", + "document" : { + "modifiedTime" : "2021-10-07T09:48:56Z", + "display" : { + "id" : "8p59sfry", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/NWO.jpg/info.json", - "linkText": "Link text: YQuA86b", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/NWO.jpg/info.json", + "linkText" : "Link text: YQuA86b", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/NWO.jpg/info.json", - "linkText": "Link text: YQuA86b", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/NWO.jpg/info.json", + "linkText" : "Link text: YQuA86b", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#BD862E", - "source": { - "id": "zejavmqr", - "title": "title-FrRzbLm9dz", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#BD862E", + "source" : { + "id" : "zejavmqr", + "title" : "title-FrRzbLm9dz", + "contributors" : [ { - "agent": { - "label": "carrots", - "type": "Agent" + "agent" : { + "label" : "carrots", + "type" : "Agent" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "parrots", - "type": "Organisation" + "agent" : { + "label" : "parrots", + "type" : "Organisation" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "8p59sfry", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "8p59sfry", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "carrots", "parrots" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "zejavmqr", - "sourceIdentifier.value": "4xvNzKQ7nP", - "identifiers.value": [ + "id" : "zejavmqr", + "sourceIdentifier.value" : "4xvNzKQ7nP", + "identifiers.value" : [ "4xvNzKQ7nP" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-FrRzbLm9dz" + "title" : "title-FrRzbLm9dz" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ - "{\"label\":\"carrots\",\"type\":\"Agent\"}", - "{\"label\":\"parrots\",\"type\":\"Organisation\"}" + "source.contributors.agent" : [ + { + "id" : "carrots", + "label" : "carrots" + }, + { + "id" : "parrots", + "label" : "parrots" + } ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ "carrots", "parrots" ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.013218495, 0.025846567, -0.042770065, @@ -4265,7 +4271,7 @@ 0.018829614, 0.021396482 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.009844284, -0.037177544, -0.014458217, @@ -5268,8 +5274,8 @@ -0.023543477 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.contributors.2.json b/common/search/src/test/resources/test_documents/images.contributors.2.json index 2806c8991..c3d30cc81 100644 --- a/common/search/src/test/resources/test_documents/images.contributors.2.json +++ b/common/search/src/test/resources/test_documents/images.contributors.2.json @@ -1,171 +1,177 @@ { - "description": "images with different contributors", - "createdAt": "2024-11-14T14:37:56.384049Z", - "id": "1o9uszyg", - "document": { - "modifiedTime": "1986-10-11T11:21:55Z", - "display": { - "id": "1o9uszyg", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different contributors", + "createdAt" : "2024-11-25T15:14:41.123837Z", + "id" : "1o9uszyg", + "document" : { + "modifiedTime" : "1986-10-11T11:21:55Z", + "display" : { + "id" : "1o9uszyg", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/aSM.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/aSM.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/aSM.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/aSM.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#916F02", - "source": { - "id": "dbdgkdoh", - "title": "title-IPEeHggOxd", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#916F02", + "source" : { + "id" : "dbdgkdoh", + "title" : "title-IPEeHggOxd", + "contributors" : [ { - "agent": { - "label": "carrots", - "type": "Agent" + "agent" : { + "label" : "carrots", + "type" : "Agent" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "parrots", - "type": "Meeting" + "agent" : { + "label" : "parrots", + "type" : "Meeting" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "1o9uszyg", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "1o9uszyg", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "carrots", "parrots" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "dbdgkdoh", - "sourceIdentifier.value": "rlfsStYOfR", - "identifiers.value": [ + "id" : "dbdgkdoh", + "sourceIdentifier.value" : "rlfsStYOfR", + "identifiers.value" : [ "rlfsStYOfR" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-IPEeHggOxd" + "title" : "title-IPEeHggOxd" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ - "{\"label\":\"carrots\",\"type\":\"Agent\"}", - "{\"label\":\"parrots\",\"type\":\"Meeting\"}" + "source.contributors.agent" : [ + { + "id" : "carrots", + "label" : "carrots" + }, + { + "id" : "parrots", + "label" : "parrots" + } ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ "carrots", "parrots" ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -7.76453E-4, 0.017554581, -0.006952244, @@ -4263,7 +4269,7 @@ -0.01826151, 0.016599374 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.07583656, -0.008055348, -0.014742264, @@ -5266,8 +5272,8 @@ 0.0060733673 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.0.json b/common/search/src/test/resources/test_documents/images.different-licenses.0.json index 9d3cddd8b..233a41f9d 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.0.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.0.json @@ -1,148 +1,151 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.301407Z", - "id": "j242uruj", - "document": { - "modifiedTime": "1976-11-06T16:07:21Z", - "display": { - "id": "j242uruj", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:40.999285Z", + "id" : "j242uruj", + "document" : { + "modifiedTime" : "1976-11-06T16:07:21Z", + "display" : { + "id" : "j242uruj", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/CCz.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/CCz.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/CCz.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/CCz.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#6EFF53", - "source": { - "id": "yqts0coj", - "title": "title-QqPyuxbr58", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#6EFF53", + "source" : { + "id" : "yqts0coj", + "title" : "title-QqPyuxbr58", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "j242uruj", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "j242uruj", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "yqts0coj", - "sourceIdentifier.value": "vWebpA5WHf", - "identifiers.value": [ + "id" : "yqts0coj", + "sourceIdentifier.value" : "vWebpA5WHf", + "identifiers.value" : [ "vWebpA5WHf", "wyJzS2SuiH", "rAOB2RuvBb" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-QqPyuxbr58" + "title" : "title-QqPyuxbr58" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 7.066063E-4, -0.0095007485, -0.0100372415, @@ -4240,7 +4243,7 @@ 0.013578957, -0.0024780903 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.03029146, -0.0018410657, 0.023483027, @@ -5243,8 +5246,8 @@ 0.063571826 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.1.json b/common/search/src/test/resources/test_documents/images.different-licenses.1.json index 01cb66cc8..ddc193662 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.1.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.1.json @@ -1,148 +1,151 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.303803Z", - "id": "yuhjtxla", - "document": { - "modifiedTime": "1978-01-31T12:57:21Z", - "display": { - "id": "yuhjtxla", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:41.001964Z", + "id" : "yuhjtxla", + "document" : { + "modifiedTime" : "1978-01-31T12:57:21Z", + "display" : { + "id" : "yuhjtxla", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Q3B.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Q3B.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Q3B.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Q3B.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#A17D69", - "source": { - "id": "0smxvqfb", - "title": "title-2ieQsNe2J8", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#A17D69", + "source" : { + "id" : "0smxvqfb", + "title" : "title-2ieQsNe2J8", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "yuhjtxla", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "yuhjtxla", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "0smxvqfb", - "sourceIdentifier.value": "EWGLlj4YeW", - "identifiers.value": [ + "id" : "0smxvqfb", + "sourceIdentifier.value" : "EWGLlj4YeW", + "identifiers.value" : [ "EWGLlj4YeW", "upp0F2gGqX", "hQJGD9d1n0" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-2ieQsNe2J8" + "title" : "title-2ieQsNe2J8" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.0015108159, -0.0033354652, 0.013147673, @@ -4240,7 +4243,7 @@ -0.0013397754, -0.0058979383 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.003956161, -0.0050555803, -0.021572769, @@ -5243,8 +5246,8 @@ 0.011012712 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.2.json b/common/search/src/test/resources/test_documents/images.different-licenses.2.json index 3442ef734..ce515d131 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.2.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.2.json @@ -1,150 +1,153 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.305483Z", - "id": "giazc2e0", - "document": { - "modifiedTime": "1972-05-08T14:38:37Z", - "display": { - "id": "giazc2e0", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:41.004482Z", + "id" : "giazc2e0", + "document" : { + "modifiedTime" : "1972-05-08T14:38:37Z", + "display" : { + "id" : "giazc2e0", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/ya9.jpg/info.json", - "credit": "Credit line: zIBsYJowN", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/ya9.jpg/info.json", + "credit" : "Credit line: zIBsYJowN", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/ya9.jpg/info.json", - "credit": "Credit line: zIBsYJowN", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/ya9.jpg/info.json", + "credit" : "Credit line: zIBsYJowN", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#F97A25", - "source": { - "id": "dgy6ppuz", - "title": "title-ZRfddXdoSH", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#F97A25", + "source" : { + "id" : "dgy6ppuz", + "title" : "title-ZRfddXdoSH", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "giazc2e0", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "giazc2e0", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "dgy6ppuz", - "sourceIdentifier.value": "tZNKYb9Bom", - "identifiers.value": [ + "id" : "dgy6ppuz", + "sourceIdentifier.value" : "tZNKYb9Bom", + "identifiers.value" : [ "tZNKYb9Bom", "DFQdJPljb6", "5hca3vUTYl" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-ZRfddXdoSH" + "title" : "title-ZRfddXdoSH" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.0059309807, -0.019531071, -0.040597145, @@ -4242,7 +4245,7 @@ 0.003202794, -0.007329201 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.012873136, 0.010868249, -0.037423268, @@ -5245,8 +5248,8 @@ 0.002781014 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.3.json b/common/search/src/test/resources/test_documents/images.different-licenses.3.json index 24953bca1..03bf3f639 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.3.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.3.json @@ -1,150 +1,153 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.306757Z", - "id": "hj2eugdu", - "document": { - "modifiedTime": "2049-08-08T00:29:37Z", - "display": { - "id": "hj2eugdu", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:41.006274Z", + "id" : "hj2eugdu", + "document" : { + "modifiedTime" : "2049-08-08T00:29:37Z", + "display" : { + "id" : "hj2eugdu", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/6xY.jpg/info.json", - "linkText": "Link text: 81zkKTj9", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/6xY.jpg/info.json", + "linkText" : "Link text: 81zkKTj9", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/6xY.jpg/info.json", - "linkText": "Link text: 81zkKTj9", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/6xY.jpg/info.json", + "linkText" : "Link text: 81zkKTj9", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#BCE3D7", - "source": { - "id": "knyz3bbl", - "title": "title-4naXwBKSaX", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#BCE3D7", + "source" : { + "id" : "knyz3bbl", + "title" : "title-4naXwBKSaX", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "hj2eugdu", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "hj2eugdu", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "knyz3bbl", - "sourceIdentifier.value": "Gmjm0awuZz", - "identifiers.value": [ + "id" : "knyz3bbl", + "sourceIdentifier.value" : "Gmjm0awuZz", + "identifiers.value" : [ "Gmjm0awuZz", "iQBpecDWLx", "RmgDqrN7dF" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-4naXwBKSaX" + "title" : "title-4naXwBKSaX" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.019669792, 0.012638634, 0.0023867805, @@ -4242,7 +4245,7 @@ 0.012968219, 0.021323672 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.028090198, -0.021561136, 0.011847275, @@ -5245,8 +5248,8 @@ 0.009320449 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.4.json b/common/search/src/test/resources/test_documents/images.different-licenses.4.json index b31eb8b5d..40eda4246 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.4.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.4.json @@ -1,148 +1,151 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.308162Z", - "id": "q7risoeh", - "document": { - "modifiedTime": "1950-06-01T20:26:42Z", - "display": { - "id": "q7risoeh", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:41.007563Z", + "id" : "q7risoeh", + "document" : { + "modifiedTime" : "1950-06-01T20:26:42Z", + "display" : { + "id" : "q7risoeh", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/rZP.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/rZP.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/rZP.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/rZP.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#A7445E", - "source": { - "id": "lwrmfaqb", - "title": "title-NEKnDv8u0A", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#A7445E", + "source" : { + "id" : "lwrmfaqb", + "title" : "title-NEKnDv8u0A", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "q7risoeh", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "q7risoeh", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "lwrmfaqb", - "sourceIdentifier.value": "u4fDHr5RUt", - "identifiers.value": [ + "id" : "lwrmfaqb", + "sourceIdentifier.value" : "u4fDHr5RUt", + "identifiers.value" : [ "u4fDHr5RUt", "4GNHjmv2JG", "4740rRNoNW" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-NEKnDv8u0A" + "title" : "title-NEKnDv8u0A" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.030009005, -0.009687664, 0.025184121, @@ -4240,7 +4243,7 @@ 0.041460667, 0.0051832316 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.041760772, 0.010665845, 0.0010263964, @@ -5243,8 +5246,8 @@ 0.04428517 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.5.json b/common/search/src/test/resources/test_documents/images.different-licenses.5.json index 309f277a8..678643525 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.5.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.5.json @@ -1,150 +1,153 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.309393Z", - "id": "u9wiz5n2", - "document": { - "modifiedTime": "2008-12-14T05:36:25Z", - "display": { - "id": "u9wiz5n2", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:41.008631Z", + "id" : "u9wiz5n2", + "document" : { + "modifiedTime" : "2008-12-14T05:36:25Z", + "display" : { + "id" : "u9wiz5n2", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/5t7.jpg/info.json", - "credit": "Credit line: 5lwIC612t", - "license": { - "id": "pdm", - "label": "Public Domain Mark", - "url": "https://creativecommons.org/share-your-work/public-domain/pdm/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/5t7.jpg/info.json", + "credit" : "Credit line: 5lwIC612t", + "license" : { + "id" : "pdm", + "label" : "Public Domain Mark", + "url" : "https://creativecommons.org/share-your-work/public-domain/pdm/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/5t7.jpg/info.json", - "credit": "Credit line: 5lwIC612t", - "license": { - "id": "pdm", - "label": "Public Domain Mark", - "url": "https://creativecommons.org/share-your-work/public-domain/pdm/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/5t7.jpg/info.json", + "credit" : "Credit line: 5lwIC612t", + "license" : { + "id" : "pdm", + "label" : "Public Domain Mark", + "url" : "https://creativecommons.org/share-your-work/public-domain/pdm/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#18E8D9", - "source": { - "id": "yfajql1v", - "title": "title-4cjq66N1qo", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#18E8D9", + "source" : { + "id" : "yfajql1v", + "title" : "title-4cjq66N1qo", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "u9wiz5n2", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "u9wiz5n2", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "yfajql1v", - "sourceIdentifier.value": "DL10ex6AGz", - "identifiers.value": [ + "id" : "yfajql1v", + "sourceIdentifier.value" : "DL10ex6AGz", + "identifiers.value" : [ "DL10ex6AGz", "xdXZyyHpak", "qtcggmBJGC" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-4cjq66N1qo" + "title" : "title-4cjq66N1qo" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"pdm\",\"label\":\"Public Domain Mark\",\"url\":\"https://creativecommons.org/share-your-work/public-domain/pdm/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "pdm", + "label" : "Public Domain Mark" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "pdm" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 7.334739E-4, 0.009664426, 0.00692691, @@ -4242,7 +4245,7 @@ 0.004361391, 0.012620446 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.005657998, 0.016745279, -0.017943755, @@ -5245,8 +5248,8 @@ 0.036316402 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.different-licenses.6.json b/common/search/src/test/resources/test_documents/images.different-licenses.6.json index 89bc6ba72..2abb29bf8 100644 --- a/common/search/src/test/resources/test_documents/images.different-licenses.6.json +++ b/common/search/src/test/resources/test_documents/images.different-licenses.6.json @@ -1,150 +1,153 @@ { - "description": "images with different licenses", - "createdAt": "2024-11-14T14:37:56.310591Z", - "id": "k85xxljq", - "document": { - "modifiedTime": "2036-04-06T08:36:24Z", - "display": { - "id": "k85xxljq", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different licenses", + "createdAt" : "2024-11-25T15:14:41.009788Z", + "id" : "k85xxljq", + "document" : { + "modifiedTime" : "2036-04-06T08:36:24Z", + "display" : { + "id" : "k85xxljq", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Yu1.jpg/info.json", - "linkText": "Link text: qzZzIMyJve", - "license": { - "id": "pdm", - "label": "Public Domain Mark", - "url": "https://creativecommons.org/share-your-work/public-domain/pdm/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Yu1.jpg/info.json", + "linkText" : "Link text: qzZzIMyJve", + "license" : { + "id" : "pdm", + "label" : "Public Domain Mark", + "url" : "https://creativecommons.org/share-your-work/public-domain/pdm/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Yu1.jpg/info.json", - "linkText": "Link text: qzZzIMyJve", - "license": { - "id": "pdm", - "label": "Public Domain Mark", - "url": "https://creativecommons.org/share-your-work/public-domain/pdm/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Yu1.jpg/info.json", + "linkText" : "Link text: qzZzIMyJve", + "license" : { + "id" : "pdm", + "label" : "Public Domain Mark", + "url" : "https://creativecommons.org/share-your-work/public-domain/pdm/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#93CD95", - "source": { - "id": "ntuf2946", - "title": "title-gUwHG54SYM", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#93CD95", + "source" : { + "id" : "ntuf2946", + "title" : "title-gUwHG54SYM", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "k85xxljq", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "k85xxljq", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ntuf2946", - "sourceIdentifier.value": "t6VgzBtShY", - "identifiers.value": [ + "id" : "ntuf2946", + "sourceIdentifier.value" : "t6VgzBtShY", + "identifiers.value" : [ "t6VgzBtShY", "PfkkwyEoqB", "RMwqGu5WyX" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-gUwHG54SYM" + "title" : "title-gUwHG54SYM" } }, - "aggregatableValues": { - "locations.license": [ - "{\"id\":\"pdm\",\"label\":\"Public Domain Mark\",\"url\":\"https://creativecommons.org/share-your-work/public-domain/pdm/\",\"type\":\"License\"}" + "aggregatableValues" : { + "locations.license" : [ + { + "id" : "pdm", + "label" : "Public Domain Mark" + } ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "pdm" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.04330733, 8.5705204E-4, 0.0028549947, @@ -4242,7 +4245,7 @@ 0.0051404247, -0.001997892 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.022992052, 0.05277713, 0.034550563, @@ -5245,8 +5248,8 @@ -0.052811198 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.everything.json b/common/search/src/test/resources/test_documents/images.everything.json index 71b6b3e23..aaa5300da 100644 --- a/common/search/src/test/resources/test_documents/images.everything.json +++ b/common/search/src/test/resources/test_documents/images.everything.json @@ -1,150 +1,150 @@ { - "description": "an image with every include", - "createdAt": "2024-11-14T14:37:56.485860Z", - "id": "b25is1mw", - "document": { - "modifiedTime": "1943-09-17T11:31:58Z", - "display": { - "id": "b25is1mw", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with every include", + "createdAt" : "2024-11-25T15:14:41.202718Z", + "id" : "b25is1mw", + "document" : { + "modifiedTime" : "1943-09-17T11:31:58Z", + "display" : { + "id" : "b25is1mw", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/2mU.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/2mU.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/2mU.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/2mU.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#42424B", - "source": { - "id": "dqxovw56", - "title": "Apple agitator", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#42424B", + "source" : { + "id" : "dqxovw56", + "title" : "Apple agitator", + "contributors" : [ { - "agent": { - "label": "Adrian Aardvark", - "type": "Person" + "agent" : { + "label" : "Adrian Aardvark", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "Beatrice Buffalo", - "type": "Person" + "agent" : { + "label" : "Beatrice Buffalo", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "languages": [ + "languages" : [ { - "id": "eng", - "label": "English", - "type": "Language" + "id" : "eng", + "label" : "English", + "type" : "Language" }, { - "id": "tur", - "label": "Turkish", - "type": "Language" + "id" : "tur", + "label" : "Turkish", + "type" : "Language" } ], - "genres": [ + "genres" : [ { - "label": "Crumbly cabbages", - "concepts": [ + "label" : "Crumbly cabbages", + "concepts" : [ { - "id": "lejca71h", - "label": "ugoW7DPjY7eEyUr", - "type": "Genre" + "id" : "lejca71h", + "label" : "ugoW7DPjY7eEyUr", + "type" : "Genre" }, { - "id": "wmf04cfl", - "label": "9VrODZy7KkifsFe", - "type": "Concept" + "id" : "wmf04cfl", + "label" : "9VrODZy7KkifsFe", + "type" : "Concept" }, { - "id": "aepyhklp", - "label": "rYYrQmMYtpbz1Al", - "type": "Concept" + "id" : "aepyhklp", + "label" : "rYYrQmMYtpbz1Al", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "Deadly durians", - "concepts": [ + "label" : "Deadly durians", + "concepts" : [ { - "id": "lksf0yuj", - "label": "706t7mv7kanMOW5", - "type": "Genre" + "id" : "lksf0yuj", + "label" : "706t7mv7kanMOW5", + "type" : "Genre" }, { - "id": "ywn40rop", - "label": "VMoAMmioWNbDYqh", - "type": "Concept" + "id" : "ywn40rop", + "label" : "VMoAMmioWNbDYqh", + "type" : "Concept" }, { - "id": "gxjzwfd7", - "label": "1lbnmi1f4IMuqCy", - "type": "Concept" + "id" : "gxjzwfd7", + "label" : "1lbnmi1f4IMuqCy", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "b25is1mw", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "b25is1mw", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Adrian Aardvark", "Beatrice Buffalo" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "ugoW7DPjY7eEyUr", "9VrODZy7KkifsFe", "rYYrQmMYtpbz1Al", @@ -152,88 +152,100 @@ "VMoAMmioWNbDYqh", "1lbnmi1f4IMuqCy" ], - "id": "dqxovw56", - "sourceIdentifier.value": "XIR7wFyImk", - "identifiers.value": [ + "id" : "dqxovw56", + "sourceIdentifier.value" : "XIR7wFyImk", + "identifiers.value" : [ "XIR7wFyImk" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "English", "Turkish" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Apple agitator" + "title" : "Apple agitator" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ - "{\"label\":\"Adrian Aardvark\",\"type\":\"Person\"}", - "{\"label\":\"Beatrice Buffalo\",\"type\":\"Person\"}" + "source.contributors.agent" : [ + { + "id" : "Adrian Aardvark", + "label" : "Adrian Aardvark" + }, + { + "id" : "Beatrice Buffalo", + "label" : "Beatrice Buffalo" + } ], - "source.genres.label": [ - "{\"label\":\"Crumbly cabbages\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"Deadly durians\",\"concepts\":[],\"type\":\"Genre\"}" + "source.genres" : [ + { + "id" : "lejca71h", + "label" : "Crumbly cabbages" + }, + { + "id" : "lksf0yuj", + "label" : "Deadly durians" + } ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ "Adrian Aardvark", "Beatrice Buffalo" ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ "Crumbly cabbages", "Deadly durians" ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ "lejca71h", "lksf0yuj" ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ "d4QLaGJW1M", "33Lvz6nnqJ" ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.024940599, 0.0080954945, 0.031152552, @@ -4331,7 +4343,7 @@ 0.0072650504, 0.010552883 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0610284, 0.01730373, -0.04553182, @@ -5334,8 +5346,8 @@ -0.027492827 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.bread-baguette.json b/common/search/src/test/resources/test_documents/images.examples.bread-baguette.json index 5bbe23a26..467af616b 100644 --- a/common/search/src/test/resources/test_documents/images.examples.bread-baguette.json +++ b/common/search/src/test/resources/test_documents/images.examples.bread-baguette.json @@ -1,147 +1,147 @@ { - "description": "an example of images with work metadata for the API tests", - "createdAt": "2024-11-14T14:37:56.528296Z", - "id": "kwluai3r", - "document": { - "modifiedTime": "1991-07-06T03:39:13Z", - "display": { - "id": "kwluai3r", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an example of images with work metadata for the API tests", + "createdAt" : "2024-11-25T15:14:41.235298Z", + "id" : "kwluai3r", + "document" : { + "modifiedTime" : "1991-07-06T03:39:13Z", + "display" : { + "id" : "kwluai3r", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/X9U.jpg/info.json", - "linkText": "Link text: QjI36BBKWB", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/X9U.jpg/info.json", + "linkText" : "Link text: QjI36BBKWB", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/X9U.jpg/info.json", - "linkText": "Link text: QjI36BBKWB", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/X9U.jpg/info.json", + "linkText" : "Link text: QjI36BBKWB", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#A56837", - "source": { - "id": "b1yceq8o", - "title": "Baguette is a French style of bread; it's a long, thin bread; other countries also make this bread", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#A56837", + "source" : { + "id" : "b1yceq8o", + "title" : "Baguette is a French style of bread; it's a long, thin bread; other countries also make this bread", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "kwluai3r", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "kwluai3r", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "b1yceq8o", - "sourceIdentifier.value": "goaksunog5", - "identifiers.value": [ + "id" : "b1yceq8o", + "sourceIdentifier.value" : "goaksunog5", + "identifiers.value" : [ "goaksunog5" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Baguette is a French style of bread; it's a long, thin bread; other countries also make this bread" + "title" : "Baguette is a French style of bread; it's a long, thin bread; other countries also make this bread" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.020432228, 0.01433251, -0.007882895, @@ -4239,7 +4239,7 @@ -0.02090988, -0.02700216 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.06018525, -0.0218374, -0.010382953, @@ -5242,8 +5242,8 @@ 0.048151605 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.bread-focaccia.json b/common/search/src/test/resources/test_documents/images.examples.bread-focaccia.json index b6ebfb022..e3cef15c4 100644 --- a/common/search/src/test/resources/test_documents/images.examples.bread-focaccia.json +++ b/common/search/src/test/resources/test_documents/images.examples.bread-focaccia.json @@ -1,147 +1,147 @@ { - "description": "an example of images with work metadata for the API tests", - "createdAt": "2024-11-14T14:37:56.532694Z", - "id": "a0jqzjtw", - "document": { - "modifiedTime": "1958-01-12T23:10:27Z", - "display": { - "id": "a0jqzjtw", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an example of images with work metadata for the API tests", + "createdAt" : "2024-11-25T15:14:41.239069Z", + "id" : "a0jqzjtw", + "document" : { + "modifiedTime" : "1958-01-12T23:10:27Z", + "display" : { + "id" : "a0jqzjtw", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/HIR.jpg/info.json", - "credit": "Credit line: oF56Pxe", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/HIR.jpg/info.json", + "credit" : "Credit line: oF56Pxe", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/HIR.jpg/info.json", - "credit": "Credit line: oF56Pxe", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/HIR.jpg/info.json", + "credit" : "Credit line: oF56Pxe", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#BC1300", - "source": { - "id": "0nicager", - "title": "A Ligurian style of bread, Focaccia is a flat Italian bread", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#BC1300", + "source" : { + "id" : "0nicager", + "title" : "A Ligurian style of bread, Focaccia is a flat Italian bread", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "a0jqzjtw", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "a0jqzjtw", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "0nicager", - "sourceIdentifier.value": "o97hEiMpb7", - "identifiers.value": [ + "id" : "0nicager", + "sourceIdentifier.value" : "o97hEiMpb7", + "identifiers.value" : [ "o97hEiMpb7" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A Ligurian style of bread, Focaccia is a flat Italian bread" + "title" : "A Ligurian style of bread, Focaccia is a flat Italian bread" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.0013886964, 0.011064052, -0.009729621, @@ -4239,7 +4239,7 @@ -0.0056894612, 0.01828093 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.06807296, 0.040722467, -0.03441322, @@ -5242,8 +5242,8 @@ 0.006234683 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.bread-mantou.json b/common/search/src/test/resources/test_documents/images.examples.bread-mantou.json index 93529fcc9..19b4cbb1c 100644 --- a/common/search/src/test/resources/test_documents/images.examples.bread-mantou.json +++ b/common/search/src/test/resources/test_documents/images.examples.bread-mantou.json @@ -1,147 +1,147 @@ { - "description": "an example of images with work metadata for the API tests", - "createdAt": "2024-11-14T14:37:56.540803Z", - "id": "nnqbdi1u", - "document": { - "modifiedTime": "2030-01-04T16:08:59Z", - "display": { - "id": "nnqbdi1u", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an example of images with work metadata for the API tests", + "createdAt" : "2024-11-25T15:14:41.246487Z", + "id" : "nnqbdi1u", + "document" : { + "modifiedTime" : "2030-01-04T16:08:59Z", + "display" : { + "id" : "nnqbdi1u", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/xfP.jpg/info.json", - "linkText": "Link text: gYXOTsi", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/xfP.jpg/info.json", + "linkText" : "Link text: gYXOTsi", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/xfP.jpg/info.json", - "linkText": "Link text: gYXOTsi", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/xfP.jpg/info.json", + "linkText" : "Link text: gYXOTsi", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#E9439A", - "source": { - "id": "jnrpu9mi", - "title": "Mantou is a steamed bread associated with Northern China", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#E9439A", + "source" : { + "id" : "jnrpu9mi", + "title" : "Mantou is a steamed bread associated with Northern China", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "nnqbdi1u", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "nnqbdi1u", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "jnrpu9mi", - "sourceIdentifier.value": "JOUy2UKH3K", - "identifiers.value": [ + "id" : "jnrpu9mi", + "sourceIdentifier.value" : "JOUy2UKH3K", + "identifiers.value" : [ "JOUy2UKH3K" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Mantou is a steamed bread associated with Northern China" + "title" : "Mantou is a steamed bread associated with Northern China" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.0071231714, -0.02301155, 0.006131334, @@ -4239,7 +4239,7 @@ 0.00725487, 0.0023392653 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.012462096, 0.009021927, 0.04427529, @@ -5242,8 +5242,8 @@ 0.010093869 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.bread-schiacciata.json b/common/search/src/test/resources/test_documents/images.examples.bread-schiacciata.json index a2be2c727..6e3ee4c31 100644 --- a/common/search/src/test/resources/test_documents/images.examples.bread-schiacciata.json +++ b/common/search/src/test/resources/test_documents/images.examples.bread-schiacciata.json @@ -1,147 +1,147 @@ { - "description": "an example of images with work metadata for the API tests", - "createdAt": "2024-11-14T14:37:56.536538Z", - "id": "bydileh4", - "document": { - "modifiedTime": "2061-03-12T16:25:24Z", - "display": { - "id": "bydileh4", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an example of images with work metadata for the API tests", + "createdAt" : "2024-11-25T15:14:41.242904Z", + "id" : "bydileh4", + "document" : { + "modifiedTime" : "2061-03-12T16:25:24Z", + "display" : { + "id" : "bydileh4", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Hsq.jpg/info.json", - "credit": "Credit line: mnFe54B", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Hsq.jpg/info.json", + "credit" : "Credit line: mnFe54B", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Hsq.jpg/info.json", - "credit": "Credit line: mnFe54B", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Hsq.jpg/info.json", + "credit" : "Credit line: mnFe54B", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#219A51", - "source": { - "id": "iar4ofhk", - "title": "Schiacciata is a Tuscan focaccia", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#219A51", + "source" : { + "id" : "iar4ofhk", + "title" : "Schiacciata is a Tuscan focaccia", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "bydileh4", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "bydileh4", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "iar4ofhk", - "sourceIdentifier.value": "YK6s4XYzl3", - "identifiers.value": [ + "id" : "iar4ofhk", + "sourceIdentifier.value" : "YK6s4XYzl3", + "identifiers.value" : [ "YK6s4XYzl3" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Schiacciata is a Tuscan focaccia" + "title" : "Schiacciata is a Tuscan focaccia" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.0042873025, -0.0017539904, 0.0022809075, @@ -4239,7 +4239,7 @@ -0.015923968, -0.010427619 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0020102437, -0.026884358, 0.025183758, @@ -5242,8 +5242,8 @@ -0.056324277 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.0.json b/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.0.json index ff81a8b44..7f6e3f7bc 100644 --- a/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.0.json +++ b/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.0.json @@ -1,160 +1,163 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-14T14:37:56.432335Z", - "id": "yz1oofkv", - "document": { - "modifiedTime": "2048-11-08T23:06:02Z", - "display": { - "id": "yz1oofkv", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:14:41.163942Z", + "id" : "yz1oofkv", + "document" : { + "modifiedTime" : "2048-11-08T23:06:02Z", + "display" : { + "id" : "yz1oofkv", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/tmC.jpg/info.json", - "credit": "Credit line: 6cSt3uoF", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/tmC.jpg/info.json", + "credit" : "Credit line: 6cSt3uoF", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/tmC.jpg/info.json", - "credit": "Credit line: 6cSt3uoF", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/tmC.jpg/info.json", + "credit" : "Credit line: 6cSt3uoF", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#6C0D2B", - "source": { - "id": "xzva25jt", - "title": "title-6sEQsGdb5O", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#6C0D2B", + "source" : { + "id" : "xzva25jt", + "title" : "title-6sEQsGdb5O", + "contributors" : [ { - "agent": { - "label": "Machiavelli, Niccolo", - "type": "Person" + "agent" : { + "label" : "Machiavelli, Niccolo", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "yz1oofkv", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "yz1oofkv", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Machiavelli, Niccolo" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "xzva25jt", - "sourceIdentifier.value": "KVsY0AgisP", - "identifiers.value": [ + "id" : "xzva25jt", + "sourceIdentifier.value" : "KVsY0AgisP", + "identifiers.value" : [ "KVsY0AgisP" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-6sEQsGdb5O" + "title" : "title-6sEQsGdb5O" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ - "{\"label\":\"Machiavelli, Niccolo\",\"type\":\"Person\"}" + "source.contributors.agent" : [ + { + "id" : "Machiavelli, Niccolo", + "label" : "Machiavelli, Niccolo" + } ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ "Machiavelli, Niccolo" ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.009975942, 4.5055928E-4, -0.0050335284, @@ -4252,7 +4255,7 @@ -0.009693718, 0.0044719824 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.004411244, 0.008407737, 0.030684348, @@ -5255,8 +5258,8 @@ -0.01759402 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.1.json b/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.1.json index f99c531cf..5433d9bd5 100644 --- a/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.1.json +++ b/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.1.json @@ -1,158 +1,161 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-14T14:37:56.433940Z", - "id": "vcokkolz", - "document": { - "modifiedTime": "2040-09-05T22:54:29Z", - "display": { - "id": "vcokkolz", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:14:41.164706Z", + "id" : "vcokkolz", + "document" : { + "modifiedTime" : "2040-09-05T22:54:29Z", + "display" : { + "id" : "vcokkolz", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/pJ9.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/pJ9.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/pJ9.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/pJ9.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#0FEC62", - "source": { - "id": "mpasnruz", - "title": "title-gjT48tIM66", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#0FEC62", + "source" : { + "id" : "mpasnruz", + "title" : "title-gjT48tIM66", + "contributors" : [ { - "agent": { - "label": "Edward Said", - "type": "Person" + "agent" : { + "label" : "Edward Said", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "vcokkolz", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "vcokkolz", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Edward Said" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "mpasnruz", - "sourceIdentifier.value": "1DWt9lfP25", - "identifiers.value": [ + "id" : "mpasnruz", + "sourceIdentifier.value" : "1DWt9lfP25", + "identifiers.value" : [ "1DWt9lfP25" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-gjT48tIM66" + "title" : "title-gjT48tIM66" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ - "{\"label\":\"Edward Said\",\"type\":\"Person\"}" + "source.contributors.agent" : [ + { + "id" : "Edward Said", + "label" : "Edward Said" + } ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ "Edward Said" ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.01803964, -0.010613173, 0.030977111, @@ -4250,7 +4253,7 @@ 0.009600332, 0.023965513 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0077446084, 0.017074306, -0.067236975, @@ -5253,8 +5256,8 @@ 0.021200316 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.2.json b/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.2.json index 0782790f5..f669bebc4 100644 --- a/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.2.json +++ b/common/search/src/test/resources/test_documents/images.examples.contributor-filter-tests.2.json @@ -1,147 +1,147 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-14T14:37:56.434842Z", - "id": "gxxntbp9", - "document": { - "modifiedTime": "2006-10-01T20:03:54Z", - "display": { - "id": "gxxntbp9", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:14:41.165474Z", + "id" : "gxxntbp9", + "document" : { + "modifiedTime" : "2006-10-01T20:03:54Z", + "display" : { + "id" : "gxxntbp9", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/qyx.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/qyx.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/qyx.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/qyx.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#6F0BCD", - "source": { - "id": "0gvp6nhg", - "title": "title-alYogGRWWS", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#6F0BCD", + "source" : { + "id" : "0gvp6nhg", + "title" : "title-alYogGRWWS", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "gxxntbp9", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "gxxntbp9", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "0gvp6nhg", - "sourceIdentifier.value": "EXEoJwLBVY", - "identifiers.value": [ + "id" : "0gvp6nhg", + "sourceIdentifier.value" : "EXEoJwLBVY", + "identifiers.value" : [ "EXEoJwLBVY", "BUMPDQzgfJ", "NCrfrRU9EF" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-alYogGRWWS" + "title" : "title-alYogGRWWS" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.009833573, 0.008238541, 0.020807087, @@ -4239,7 +4239,7 @@ 0.014539844, 0.0010502167 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.0127375545, -0.047161944, -0.059743535, @@ -5242,8 +5242,8 @@ -0.017867256 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.0.json b/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.0.json index 912307e60..1acec8f38 100644 --- a/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.0.json +++ b/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.0.json @@ -1,167 +1,170 @@ { - "description": "examples for the genre filter tests", - "createdAt": "2024-11-14T14:37:56.463276Z", - "id": "dtsaqjqy", - "document": { - "modifiedTime": "2040-01-25T01:22:51Z", - "display": { - "id": "dtsaqjqy", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "examples for the genre filter tests", + "createdAt" : "2024-11-25T15:14:41.187746Z", + "id" : "dtsaqjqy", + "document" : { + "modifiedTime" : "2040-01-25T01:22:51Z", + "display" : { + "id" : "dtsaqjqy", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/9u7.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/9u7.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/9u7.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/9u7.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#FEEF0C", - "source": { - "id": "avnlzlwu", - "title": "title-XanTinRi9y", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#FEEF0C", + "source" : { + "id" : "avnlzlwu", + "title" : "title-XanTinRi9y", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ { - "label": "Carrot counselling", - "concepts": [ + "label" : "Carrot counselling", + "concepts" : [ { - "id": "g00dcafe", - "label": "ZYpXDgtEHOLRkyW", - "type": "Genre" + "id" : "g00dcafe", + "label" : "ZYpXDgtEHOLRkyW", + "type" : "Genre" }, { - "id": "baadf00d", - "label": "Gz6jlJqCwJjS1yp", - "type": "Concept" + "id" : "baadf00d", + "label" : "Gz6jlJqCwJjS1yp", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "dtsaqjqy", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "dtsaqjqy", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "ZYpXDgtEHOLRkyW", "Gz6jlJqCwJjS1yp" ], - "id": "avnlzlwu", - "sourceIdentifier.value": "PnNjvYlLJE", - "identifiers.value": [ + "id" : "avnlzlwu", + "sourceIdentifier.value" : "PnNjvYlLJE", + "identifiers.value" : [ "PnNjvYlLJE" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-XanTinRi9y" + "title" : "title-XanTinRi9y" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ - "{\"label\":\"Carrot counselling\",\"concepts\":[],\"type\":\"Genre\"}" + "source.genres" : [ + { + "id" : "g00dcafe", + "label" : "Carrot counselling" + } ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ "Carrot counselling" ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ "g00dcafe" ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ "L6MtHDV6LX" ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.016438505, 0.00657761, 0.01612595, @@ -4259,7 +4262,7 @@ -0.0033713363, -0.022579655 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.04292064, 0.024802417, -0.0044846274, @@ -5262,8 +5265,8 @@ -0.03267974 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.1.json b/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.1.json index 08017877c..a3bd45cf2 100644 --- a/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.1.json +++ b/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.1.json @@ -1,149 +1,149 @@ { - "description": "examples for the genre filter tests", - "createdAt": "2024-11-14T14:37:56.464110Z", - "id": "jqn3lcdk", - "document": { - "modifiedTime": "2049-07-22T09:18:58Z", - "display": { - "id": "jqn3lcdk", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "examples for the genre filter tests", + "createdAt" : "2024-11-25T15:14:41.188387Z", + "id" : "jqn3lcdk", + "document" : { + "modifiedTime" : "2049-07-22T09:18:58Z", + "display" : { + "id" : "jqn3lcdk", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/wgv.jpg/info.json", - "credit": "Credit line: URmx76ITw", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/wgv.jpg/info.json", + "credit" : "Credit line: URmx76ITw", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/wgv.jpg/info.json", - "credit": "Credit line: URmx76ITw", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/wgv.jpg/info.json", + "credit" : "Credit line: URmx76ITw", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#0F7990", - "source": { - "id": "5vhrmefp", - "title": "title-Y0gPFaAqzY", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#0F7990", + "source" : { + "id" : "5vhrmefp", + "title" : "title-Y0gPFaAqzY", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "jqn3lcdk", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "jqn3lcdk", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "5vhrmefp", - "sourceIdentifier.value": "4BgGjrI2bn", - "identifiers.value": [ + "id" : "5vhrmefp", + "sourceIdentifier.value" : "4BgGjrI2bn", + "identifiers.value" : [ "4BgGjrI2bn", "sXXj8lekE5", "aAWBPmrCWc" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Y0gPFaAqzY" + "title" : "title-Y0gPFaAqzY" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.017860852, -0.015890874, -0.015869955, @@ -4241,7 +4241,7 @@ -9.674262E-4, -0.019214435 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.07357815, -0.06873956, 0.0644536, @@ -5244,8 +5244,8 @@ 0.013578974 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.2.json b/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.2.json index 13899a023..d4b6475d3 100644 --- a/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.2.json +++ b/common/search/src/test/resources/test_documents/images.examples.genre-filter-tests.2.json @@ -1,179 +1,185 @@ { - "description": "examples for the genre filter tests", - "createdAt": "2024-11-14T14:37:56.465133Z", - "id": "xmlsowlq", - "document": { - "modifiedTime": "1970-11-30T11:53:00Z", - "display": { - "id": "xmlsowlq", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "examples for the genre filter tests", + "createdAt" : "2024-11-25T15:14:41.189539Z", + "id" : "xmlsowlq", + "document" : { + "modifiedTime" : "1970-11-30T11:53:00Z", + "display" : { + "id" : "xmlsowlq", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/osx.jpg/info.json", - "linkText": "Link text: AKLim43", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/osx.jpg/info.json", + "linkText" : "Link text: AKLim43", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/osx.jpg/info.json", - "linkText": "Link text: AKLim43", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/osx.jpg/info.json", + "linkText" : "Link text: AKLim43", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#B8DE7E", - "source": { - "id": "gdpxcgp2", - "title": "title-ktG7wwBwmf", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#B8DE7E", + "source" : { + "id" : "gdpxcgp2", + "title" : "title-ktG7wwBwmf", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ { - "label": "Emu entrepreneurship", - "concepts": [ + "label" : "Emu entrepreneurship", + "concepts" : [ { - "id": "g00dcafe", - "label": "jBVxL1V4oewPM67", - "type": "Genre" + "id" : "g00dcafe", + "label" : "jBVxL1V4oewPM67", + "type" : "Genre" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "Falcon finances", - "concepts": [ + "label" : "Falcon finances", + "concepts" : [ { - "id": "baadf00d", - "label": "ND4ajrHSr7cFUI5", - "type": "Genre" + "id" : "baadf00d", + "label" : "ND4ajrHSr7cFUI5", + "type" : "Genre" } ], - "type": "Genre" + "type" : "Genre" } ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "xmlsowlq", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "xmlsowlq", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "jBVxL1V4oewPM67", "ND4ajrHSr7cFUI5" ], - "id": "gdpxcgp2", - "sourceIdentifier.value": "yi3e0o56QQ", - "identifiers.value": [ + "id" : "gdpxcgp2", + "sourceIdentifier.value" : "yi3e0o56QQ", + "identifiers.value" : [ "yi3e0o56QQ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-ktG7wwBwmf" + "title" : "title-ktG7wwBwmf" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ - "{\"label\":\"Emu entrepreneurship\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"Falcon finances\",\"concepts\":[],\"type\":\"Genre\"}" + "source.genres" : [ + { + "id" : "g00dcafe", + "label" : "Emu entrepreneurship" + }, + { + "id" : "baadf00d", + "label" : "Falcon finances" + } ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ "Emu entrepreneurship", "Falcon finances" ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ "g00dcafe", "baadf00d" ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ "G6PXCJ2IuI", "OezVopin48" ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.023446029, 0.028897293, -0.0023543043, @@ -4271,7 +4277,7 @@ 0.0073085045, 3.7157428E-5 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.028580276, -0.014974573, 0.010604396, @@ -5274,8 +5280,8 @@ -0.040184803 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.linked-with-another-work.json b/common/search/src/test/resources/test_documents/images.examples.linked-with-another-work.json index 640bb55ae..8b27520cc 100644 --- a/common/search/src/test/resources/test_documents/images.examples.linked-with-another-work.json +++ b/common/search/src/test/resources/test_documents/images.examples.linked-with-another-work.json @@ -1,151 +1,151 @@ { - "description": "images linked with another work", - "createdAt": "2024-11-14T14:37:56.520561Z", - "id": "hsgnyw8m", - "document": { - "modifiedTime": "2000-11-29T00:19:37Z", - "display": { - "id": "hsgnyw8m", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images linked with another work", + "createdAt" : "2024-11-25T15:14:41.227982Z", + "id" : "hsgnyw8m", + "document" : { + "modifiedTime" : "2000-11-29T00:19:37Z", + "display" : { + "id" : "hsgnyw8m", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Ozr.jpg/info.json", - "credit": "Credit line: Igw4LN", - "linkText": "Link text: BLRn04h0", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Ozr.jpg/info.json", + "credit" : "Credit line: Igw4LN", + "linkText" : "Link text: BLRn04h0", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Ozr.jpg/info.json", - "credit": "Credit line: Igw4LN", - "linkText": "Link text: BLRn04h0", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Ozr.jpg/info.json", + "credit" : "Credit line: Igw4LN", + "linkText" : "Link text: BLRn04h0", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#A0C8A8", - "source": { - "id": "immezksj", - "title": "title-ncEHT1NLb6", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#A0C8A8", + "source" : { + "id" : "immezksj", + "title" : "title-ncEHT1NLb6", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "hsgnyw8m", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "hsgnyw8m", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "immezksj", - "sourceIdentifier.value": "fBj197N48n", - "identifiers.value": [ + "id" : "immezksj", + "sourceIdentifier.value" : "fBj197N48n", + "identifiers.value" : [ "fBj197N48n", "7Qx3WYHrc4", "OXpjxG6OXo" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-ncEHT1NLb6" + "title" : "title-ncEHT1NLb6" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.020090086, 0.012813995, 3.1020242E-4, @@ -4243,7 +4243,7 @@ -0.0016017318, 0.02772019 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0048597767, -0.0036105372, -0.04832014, @@ -5246,8 +5246,8 @@ 0.04645499 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.0.json b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.0.json index 3834ae5bf..f4a215a88 100644 --- a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.0.json +++ b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.0.json @@ -1,149 +1,149 @@ { - "description": "images linked with the same work", - "createdAt": "2024-11-14T14:37:56.500107Z", - "id": "0r17jcwd", - "document": { - "modifiedTime": "2055-07-25T16:03:54Z", - "display": { - "id": "0r17jcwd", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images linked with the same work", + "createdAt" : "2024-11-25T15:14:41.212442Z", + "id" : "0r17jcwd", + "document" : { + "modifiedTime" : "2055-07-25T16:03:54Z", + "display" : { + "id" : "0r17jcwd", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/ytB.jpg/info.json", - "credit": "Credit line: bml9zR8xr", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/ytB.jpg/info.json", + "credit" : "Credit line: bml9zR8xr", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/ytB.jpg/info.json", - "credit": "Credit line: bml9zR8xr", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/ytB.jpg/info.json", + "credit" : "Credit line: bml9zR8xr", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#9CD4A2", - "source": { - "id": "aawgyyy8", - "title": "title-Wk9BGeV6UO", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#9CD4A2", + "source" : { + "id" : "aawgyyy8", + "title" : "title-Wk9BGeV6UO", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "0r17jcwd", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "0r17jcwd", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "aawgyyy8", - "sourceIdentifier.value": "ErLUg1OWaB", - "identifiers.value": [ + "id" : "aawgyyy8", + "sourceIdentifier.value" : "ErLUg1OWaB", + "identifiers.value" : [ "ErLUg1OWaB", "22sQyoKXZb", "Z3y3axc7PO" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Wk9BGeV6UO" + "title" : "title-Wk9BGeV6UO" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.016808417, -0.0039046975, -0.015330934, @@ -4241,7 +4241,7 @@ 0.016370172, 0.002340661 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.024867522, 0.0062623387, 0.005002848, @@ -5244,8 +5244,8 @@ 0.06878402 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.1.json b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.1.json index cf95e7881..319703890 100644 --- a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.1.json +++ b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.1.json @@ -1,149 +1,149 @@ { - "description": "images linked with the same work", - "createdAt": "2024-11-14T14:37:56.500910Z", - "id": "9kt2ikow", - "document": { - "modifiedTime": "2024-05-12T10:50:14Z", - "display": { - "id": "9kt2ikow", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images linked with the same work", + "createdAt" : "2024-11-25T15:14:41.212933Z", + "id" : "9kt2ikow", + "document" : { + "modifiedTime" : "2024-05-12T10:50:14Z", + "display" : { + "id" : "9kt2ikow", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Mel.jpg/info.json", - "credit": "Credit line: 6MXO0sLb", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Mel.jpg/info.json", + "credit" : "Credit line: 6MXO0sLb", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Mel.jpg/info.json", - "credit": "Credit line: 6MXO0sLb", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Mel.jpg/info.json", + "credit" : "Credit line: 6MXO0sLb", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#98C9CB", - "source": { - "id": "aawgyyy8", - "title": "title-Wk9BGeV6UO", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#98C9CB", + "source" : { + "id" : "aawgyyy8", + "title" : "title-Wk9BGeV6UO", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "9kt2ikow", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "9kt2ikow", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "aawgyyy8", - "sourceIdentifier.value": "ErLUg1OWaB", - "identifiers.value": [ + "id" : "aawgyyy8", + "sourceIdentifier.value" : "ErLUg1OWaB", + "identifiers.value" : [ "ErLUg1OWaB", "22sQyoKXZb", "Z3y3axc7PO" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Wk9BGeV6UO" + "title" : "title-Wk9BGeV6UO" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.0016990263, -0.014407508, -0.010381854, @@ -4241,7 +4241,7 @@ 0.0031882452, -2.8931993E-4 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0021062768, 0.0033230907, -0.013693226, @@ -5244,8 +5244,8 @@ -0.042608008 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.2.json b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.2.json index a4cfee0b6..4c1af6247 100644 --- a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.2.json +++ b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.2.json @@ -1,151 +1,151 @@ { - "description": "images linked with the same work", - "createdAt": "2024-11-14T14:37:56.501674Z", - "id": "gop4oetl", - "document": { - "modifiedTime": "1994-02-11T11:59:16Z", - "display": { - "id": "gop4oetl", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images linked with the same work", + "createdAt" : "2024-11-25T15:14:41.213390Z", + "id" : "gop4oetl", + "document" : { + "modifiedTime" : "1994-02-11T11:59:16Z", + "display" : { + "id" : "gop4oetl", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Ezk.jpg/info.json", - "credit": "Credit line: jHtcRC9D", - "linkText": "Link text: wr456t6OC", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Ezk.jpg/info.json", + "credit" : "Credit line: jHtcRC9D", + "linkText" : "Link text: wr456t6OC", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Ezk.jpg/info.json", - "credit": "Credit line: jHtcRC9D", - "linkText": "Link text: wr456t6OC", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Ezk.jpg/info.json", + "credit" : "Credit line: jHtcRC9D", + "linkText" : "Link text: wr456t6OC", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#0F2C29", - "source": { - "id": "aawgyyy8", - "title": "title-Wk9BGeV6UO", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#0F2C29", + "source" : { + "id" : "aawgyyy8", + "title" : "title-Wk9BGeV6UO", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "gop4oetl", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "gop4oetl", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "aawgyyy8", - "sourceIdentifier.value": "ErLUg1OWaB", - "identifiers.value": [ + "id" : "aawgyyy8", + "sourceIdentifier.value" : "ErLUg1OWaB", + "identifiers.value" : [ "ErLUg1OWaB", "22sQyoKXZb", "Z3y3axc7PO" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Wk9BGeV6UO" + "title" : "title-Wk9BGeV6UO" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.02703398, 0.0035171164, 0.027941639, @@ -4243,7 +4243,7 @@ -0.010012603, -0.0026944338 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.0015423129, 0.016129043, 0.013101662, @@ -5246,8 +5246,8 @@ 0.0076953494 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.3.json b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.3.json index 851209e03..f937f464a 100644 --- a/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.3.json +++ b/common/search/src/test/resources/test_documents/images.examples.linked-with-the-same-work.3.json @@ -1,149 +1,149 @@ { - "description": "images linked with the same work", - "createdAt": "2024-11-14T14:37:56.502353Z", - "id": "ovet6upc", - "document": { - "modifiedTime": "1979-08-24T17:45:33Z", - "display": { - "id": "ovet6upc", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images linked with the same work", + "createdAt" : "2024-11-25T15:14:41.214173Z", + "id" : "ovet6upc", + "document" : { + "modifiedTime" : "1979-08-24T17:45:33Z", + "display" : { + "id" : "ovet6upc", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/nqI.jpg/info.json", - "linkText": "Link text: 96u9HFiRZ", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/nqI.jpg/info.json", + "linkText" : "Link text: 96u9HFiRZ", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/nqI.jpg/info.json", - "linkText": "Link text: 96u9HFiRZ", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/nqI.jpg/info.json", + "linkText" : "Link text: 96u9HFiRZ", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#530705", - "source": { - "id": "aawgyyy8", - "title": "title-Wk9BGeV6UO", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#530705", + "source" : { + "id" : "aawgyyy8", + "title" : "title-Wk9BGeV6UO", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "ovet6upc", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "ovet6upc", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "aawgyyy8", - "sourceIdentifier.value": "ErLUg1OWaB", - "identifiers.value": [ + "id" : "aawgyyy8", + "sourceIdentifier.value" : "ErLUg1OWaB", + "identifiers.value" : [ "ErLUg1OWaB", "22sQyoKXZb", "Z3y3axc7PO" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Wk9BGeV6UO" + "title" : "title-Wk9BGeV6UO" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.02418603, 0.009767216, -0.026419742, @@ -4241,7 +4241,7 @@ 0.007968472, 0.0063618505 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.04067954, 0.0496877, -0.0067734257, @@ -5244,8 +5244,8 @@ 0.010969187 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.genres.0.json b/common/search/src/test/resources/test_documents/images.genres.0.json index 20c20e96b..30865d877 100644 --- a/common/search/src/test/resources/test_documents/images.genres.0.json +++ b/common/search/src/test/resources/test_documents/images.genres.0.json @@ -1,157 +1,160 @@ { - "description": "images with different genres", - "createdAt": "2024-11-14T14:37:56.406976Z", - "id": "a56axpjh", - "document": { - "modifiedTime": "2038-06-23T05:04:57Z", - "display": { - "id": "a56axpjh", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different genres", + "createdAt" : "2024-11-25T15:14:41.143477Z", + "id" : "a56axpjh", + "document" : { + "modifiedTime" : "2038-06-23T05:04:57Z", + "display" : { + "id" : "a56axpjh", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Fkd.jpg/info.json", - "credit": "Credit line: cHPJUdxLru", - "linkText": "Link text: YlUiSU", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Fkd.jpg/info.json", + "credit" : "Credit line: cHPJUdxLru", + "linkText" : "Link text: YlUiSU", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Fkd.jpg/info.json", - "credit": "Credit line: cHPJUdxLru", - "linkText": "Link text: YlUiSU", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Fkd.jpg/info.json", + "credit" : "Credit line: cHPJUdxLru", + "linkText" : "Link text: YlUiSU", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#626AB6", - "source": { - "id": "jh9wm7yc", - "title": "title-3AaAdcU2qn", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#626AB6", + "source" : { + "id" : "jh9wm7yc", + "title" : "title-3AaAdcU2qn", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ { - "label": "Carrot counselling", - "concepts": [ + "label" : "Carrot counselling", + "concepts" : [ ], - "type": "Genre" + "type" : "Genre" } ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "a56axpjh", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "a56axpjh", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "jh9wm7yc", - "sourceIdentifier.value": "4Kj79xEwqO", - "identifiers.value": [ + "id" : "jh9wm7yc", + "sourceIdentifier.value" : "4Kj79xEwqO", + "identifiers.value" : [ "4Kj79xEwqO" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-3AaAdcU2qn" + "title" : "title-3AaAdcU2qn" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ - "{\"label\":\"Carrot counselling\",\"concepts\":[],\"type\":\"Genre\"}" + "source.genres" : [ + { + "id" : "Carrot counselling", + "label" : "Carrot counselling" + } ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ "Carrot counselling" ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.011086239, -0.008567317, -0.019029234, @@ -4249,7 +4252,7 @@ 0.0046150163, 0.017820885 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 8.519833E-4, -0.029553905, -0.029358773, @@ -5252,8 +5255,8 @@ 0.039712142 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.genres.1.json b/common/search/src/test/resources/test_documents/images.genres.1.json index c194869ce..98606e787 100644 --- a/common/search/src/test/resources/test_documents/images.genres.1.json +++ b/common/search/src/test/resources/test_documents/images.genres.1.json @@ -1,147 +1,147 @@ { - "description": "images with different genres", - "createdAt": "2024-11-14T14:37:56.407937Z", - "id": "rq5xcdkx", - "document": { - "modifiedTime": "2048-01-18T04:47:01Z", - "display": { - "id": "rq5xcdkx", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different genres", + "createdAt" : "2024-11-25T15:14:41.144302Z", + "id" : "rq5xcdkx", + "document" : { + "modifiedTime" : "2048-01-18T04:47:01Z", + "display" : { + "id" : "rq5xcdkx", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Eq9.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Eq9.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Eq9.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Eq9.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#63D0C8", - "source": { - "id": "mg2z5kcv", - "title": "title-Mwkf9XEEId", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#63D0C8", + "source" : { + "id" : "mg2z5kcv", + "title" : "title-Mwkf9XEEId", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "rq5xcdkx", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "rq5xcdkx", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "mg2z5kcv", - "sourceIdentifier.value": "TCqFnT1Dwy", - "identifiers.value": [ + "id" : "mg2z5kcv", + "sourceIdentifier.value" : "TCqFnT1Dwy", + "identifiers.value" : [ "TCqFnT1Dwy", "ZVArfOHkC4", "9cj08zf2Pd" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Mwkf9XEEId" + "title" : "title-Mwkf9XEEId" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.010518231, -0.0027960816, 0.014241312, @@ -4239,7 +4239,7 @@ 0.0064897384, 0.018794274 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.038086556, 0.0054109017, 0.024496745, @@ -5242,8 +5242,8 @@ 1.4558487E-4 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.genres.2.json b/common/search/src/test/resources/test_documents/images.genres.2.json index b1f403534..cd44c08cc 100644 --- a/common/search/src/test/resources/test_documents/images.genres.2.json +++ b/common/search/src/test/resources/test_documents/images.genres.2.json @@ -1,171 +1,180 @@ { - "description": "images with different genres", - "createdAt": "2024-11-14T14:37:56.409135Z", - "id": "5j2tl5et", - "document": { - "modifiedTime": "2050-09-28T06:48:13Z", - "display": { - "id": "5j2tl5et", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different genres", + "createdAt" : "2024-11-25T15:14:41.145077Z", + "id" : "5j2tl5et", + "document" : { + "modifiedTime" : "2050-09-28T06:48:13Z", + "display" : { + "id" : "5j2tl5et", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/TxQ.jpg/info.json", - "linkText": "Link text: QKqnpKFmm", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/TxQ.jpg/info.json", + "linkText" : "Link text: QKqnpKFmm", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/TxQ.jpg/info.json", - "linkText": "Link text: QKqnpKFmm", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/TxQ.jpg/info.json", + "linkText" : "Link text: QKqnpKFmm", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#1FA828", - "source": { - "id": "nxptdctw", - "title": "title-IHV2HD3bJD", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#1FA828", + "source" : { + "id" : "nxptdctw", + "title" : "title-IHV2HD3bJD", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ { - "label": "Emu entrepreneurship", - "concepts": [ + "label" : "Emu entrepreneurship", + "concepts" : [ ], - "type": "Genre" + "type" : "Genre" }, { - "label": "Falcon finances", - "concepts": [ + "label" : "Falcon finances", + "concepts" : [ ], - "type": "Genre" + "type" : "Genre" }, { - "label": "Carrot counselling", - "concepts": [ + "label" : "Carrot counselling", + "concepts" : [ ], - "type": "Genre" + "type" : "Genre" } ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "5j2tl5et", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "5j2tl5et", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "nxptdctw", - "sourceIdentifier.value": "mCfQjGql5i", - "identifiers.value": [ + "id" : "nxptdctw", + "sourceIdentifier.value" : "mCfQjGql5i", + "identifiers.value" : [ "mCfQjGql5i" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-IHV2HD3bJD" + "title" : "title-IHV2HD3bJD" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ - "{\"label\":\"Emu entrepreneurship\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"Falcon finances\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"Carrot counselling\",\"concepts\":[],\"type\":\"Genre\"}" + "source.genres" : [ + { + "id" : "Emu entrepreneurship", + "label" : "Emu entrepreneurship" + }, + { + "id" : "Falcon finances", + "label" : "Falcon finances" + }, + { + "id" : "Carrot counselling", + "label" : "Carrot counselling" + } ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ "Emu entrepreneurship", "Falcon finances", "Carrot counselling" ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.0051083555, -5.218896E-4, 0.0018558142, @@ -4263,7 +4272,7 @@ 0.02486561, -0.006447049 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ 0.015579665, 0.08296932, -0.061539963, @@ -5266,8 +5275,8 @@ 0.043635976 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.inferred-data.none.json b/common/search/src/test/resources/test_documents/images.inferred-data.none.json index 8ef01b010..5c8205b7d 100644 --- a/common/search/src/test/resources/test_documents/images.inferred-data.none.json +++ b/common/search/src/test/resources/test_documents/images.inferred-data.none.json @@ -1,155 +1,155 @@ { - "description": "an image without any inferred data", - "createdAt": "2024-11-14T14:37:56.423442Z", - "id": "gtanwhoe", - "document": { - "modifiedTime": "2033-11-17T21:40:10Z", - "display": { - "id": "gtanwhoe", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image without any inferred data", + "createdAt" : "2024-11-25T15:14:41.155566Z", + "id" : "gtanwhoe", + "document" : { + "modifiedTime" : "2033-11-17T21:40:10Z", + "display" : { + "id" : "gtanwhoe", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/pkk.jpg/info.json", - "linkText": "Link text: O63XqJ", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/pkk.jpg/info.json", + "linkText" : "Link text: O63XqJ", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/pkk.jpg/info.json", - "linkText": "Link text: O63XqJ", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/pkk.jpg/info.json", + "linkText" : "Link text: O63XqJ", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 1.0, - "averageColor": "#ffffff", - "source": { - "id": "4nevz1ct", - "title": "title-LU07b2voqu", - "contributors": [ + "aspectRatio" : 1.0, + "averageColor" : "#ffffff", + "source" : { + "id" : "4nevz1ct", + "title" : "title-LU07b2voqu", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "gtanwhoe", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ - ], - "contributors.agent.label": [ - ], - "description": null, - "edition": null, - "genres.concepts.label": [ - ], - "id": "4nevz1ct", - "sourceIdentifier.value": "Vu82EGkZo1", - "identifiers.value": [ + "query" : { + "id" : "gtanwhoe", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ + ], + "contributors.agent.label" : [ + ], + "description" : null, + "edition" : null, + "genres.concepts.label" : [ + ], + "id" : "4nevz1ct", + "sourceIdentifier.value" : "Vu82EGkZo1", + "identifiers.value" : [ "Vu82EGkZo1", "5ONYuMkgt1", "beQTH6WifJ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-LU07b2voqu" + "title" : "title-LU07b2voqu" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ + "source.subjects" : [ ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ ], - "paletteEmbedding": [ + "paletteEmbedding" : [ ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.inferred-data.wrong-format.json b/common/search/src/test/resources/test_documents/images.inferred-data.wrong-format.json index 0dcb08027..7fc2b81dd 100644 --- a/common/search/src/test/resources/test_documents/images.inferred-data.wrong-format.json +++ b/common/search/src/test/resources/test_documents/images.inferred-data.wrong-format.json @@ -1,76 +1,76 @@ { - "description": "an image with inferred data in the wrong format", - "createdAt": "2023-03-17T09:13:02.832741Z", - "id": "cap1allo", - "document": { - "modifiedTime": "2027-12-29T00:13:45Z", - "display": { - "id": "cap1allo", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "an image with inferred data in the wrong format", + "createdAt" : "2023-03-17T09:13:02.832741Z", + "id" : "cap1allo", + "document" : { + "modifiedTime" : "2027-12-29T00:13:45Z", + "display" : { + "id" : "cap1allo", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/n0t.jpg/info.json", - "credit": "Credit line: qRsGvQRNlt", - "linkText": "Link text: cC5IfN", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/n0t.jpg/info.json", + "credit" : "Credit line: qRsGvQRNlt", + "linkText" : "Link text: cC5IfN", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/n0t.jpg/info.json", - "credit": "Credit line: qRsGvQRNlt", - "linkText": "Link text: cC5IfN", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/n0t.jpg/info.json", + "credit" : "Credit line: qRsGvQRNlt", + "linkText" : "Link text: cC5IfN", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.8347602, - "averageColor": "#6F1F4D", - "source": { - "id": "gxhh6ohu", - "title": "title-F7UXrqfzss", - "contributors": [ + "aspectRatio" : 0.8347602, + "averageColor" : "#6F1F4D", + "source" : { + "id" : "gxhh6ohu", + "title" : "title-F7UXrqfzss", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "cap1allo", - "sourceIdentifier.value": "nyAtdgajcS", - "locations.license.id": [ + "query" : { + "id" : "cap1allo", + "sourceIdentifier.value" : "nyAtdgajcS", + "locations.license.id" : [ "cc-by" ], - "inferredData": { - "features": [ + "inferredData" : { + "features" : [ -0.0038104886, -0.004290749, 0.015628112, @@ -4168,7 +4168,7 @@ 0.009221715, 0.0042489874 ], - "palette": [ + "palette" : [ "4/0", "9/0", "2/0", @@ -4269,96 +4269,96 @@ "183/2", "265/2" ], - "averageColorHex": "#6F1F4D", - "binSizes": [ + "averageColorHex" : "#6F1F4D", + "binSizes" : [ [ 1 ] ], - "binMinima": [ + "binMinima" : [ 1.0 ], - "aspectRatio": 0.8347602 + "aspectRatio" : 0.8347602 }, - "source": { - "id": "gxhh6ohu", - "format.id": null, - "workType": "Standard", - "identifiers.value": [ + "source" : { + "id" : "gxhh6ohu", + "format.id" : null, + "workType" : "Standard", + "identifiers.value" : [ "xtq2tnsNWe", "TcZ2yVy8dM", "l15HHOaGqx" ], - "title": "title-F7UXrqfzss", - "alternativeTitles": [ + "title" : "title-F7UXrqfzss", + "alternativeTitles" : [ ], - "description": null, - "physicalDescription": null, - "edition": null, - "notes.contents": [ + "description" : null, + "physicalDescription" : null, + "edition" : null, + "notes.contents" : [ ], - "lettering": null, - "images.id": [ + "lettering" : null, + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "subjects.id": [ + "subjects.id" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.label": [ + "subjects.concepts.label" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.label": [ + "genres.concepts.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "languages.id": [ + "languages.id" : [ ], - "languages.label": [ + "languages.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "production.label": [ + "production.label" : [ ], - "production.dates.range.from": [ + "production.dates.range.from" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ], - "collectionPath.label": null, - "collectionPath.path": null, - "referenceNumber": null + "collectionPath.label" : null, + "collectionPath.path" : null, + "referenceNumber" : null } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } } diff --git a/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-1.json b/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-1.json index 79b6cba2e..e3ccabced 100644 --- a/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-1.json +++ b/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-1.json @@ -1,156 +1,159 @@ { - "description": "images with different subjects", - "createdAt": "2024-11-14T14:37:56.556502Z", - "id": "dytyeook", - "document": { - "modifiedTime": "1982-02-02T08:05:47Z", - "display": { - "id": "dytyeook", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different subjects", + "createdAt" : "2024-11-25T15:14:41.260639Z", + "id" : "dytyeook", + "document" : { + "modifiedTime" : "1982-02-02T08:05:47Z", + "display" : { + "id" : "dytyeook", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/VeE.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/VeE.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/VeE.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/VeE.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#D51DA1", - "source": { - "id": "bx1r3hyz", - "title": "title-28Q4nQtftL", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#D51DA1", + "source" : { + "id" : "bx1r3hyz", + "title" : "title-28Q4nQtftL", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ { - "id": "subject1", - "label": "Simple screwdrivers", - "concepts": [ + "id" : "subject1", + "label" : "Simple screwdrivers", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" } ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "dytyeook", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "dytyeook", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "bx1r3hyz", - "sourceIdentifier.value": "Sg4Me0dEc0", - "identifiers.value": [ + "id" : "bx1r3hyz", + "sourceIdentifier.value" : "Sg4Me0dEc0", + "identifiers.value" : [ "Sg4Me0dEc0" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-28Q4nQtftL" + "title" : "title-28Q4nQtftL" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ - "{\"label\":\"Simple screwdrivers\",\"concepts\":[],\"type\":\"Subject\"}" + "source.subjects" : [ + { + "id" : "subject1", + "label" : "Simple screwdrivers" + } ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ "Simple screwdrivers" ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ "subject1" ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ "y8ZBmObzMW" ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.009368617, 0.008767413, -0.016105441, @@ -4248,7 +4251,7 @@ -0.015791027, -0.0029328743 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.047706183, 0.004958375, 0.06683082, @@ -5251,8 +5254,8 @@ -0.058071397 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-2.json b/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-2.json index 2b01fff8c..f0c838003 100644 --- a/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-2.json +++ b/common/search/src/test/resources/test_documents/images.subjects.screwdrivers-2.json @@ -1,158 +1,161 @@ { - "description": "images with different subjects", - "createdAt": "2024-11-14T14:37:56.560672Z", - "id": "o2eny5un", - "document": { - "modifiedTime": "2032-02-29T09:36:29Z", - "display": { - "id": "o2eny5un", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different subjects", + "createdAt" : "2024-11-25T15:14:41.263740Z", + "id" : "o2eny5un", + "document" : { + "modifiedTime" : "2032-02-29T09:36:29Z", + "display" : { + "id" : "o2eny5un", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/lCM.jpg/info.json", - "credit": "Credit line: TPXQJURr", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/lCM.jpg/info.json", + "credit" : "Credit line: TPXQJURr", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/lCM.jpg/info.json", - "credit": "Credit line: TPXQJURr", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/lCM.jpg/info.json", + "credit" : "Credit line: TPXQJURr", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#F53850", - "source": { - "id": "zhq69pbg", - "title": "title-nrylbhuzNp", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#F53850", + "source" : { + "id" : "zhq69pbg", + "title" : "title-nrylbhuzNp", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ { - "id": "subject1", - "label": "Simple screwdrivers", - "concepts": [ + "id" : "subject1", + "label" : "Simple screwdrivers", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" } ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "o2eny5un", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "o2eny5un", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "zhq69pbg", - "sourceIdentifier.value": "TJdU5sqC9R", - "identifiers.value": [ + "id" : "zhq69pbg", + "sourceIdentifier.value" : "TJdU5sqC9R", + "identifiers.value" : [ "TJdU5sqC9R" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-nrylbhuzNp" + "title" : "title-nrylbhuzNp" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ - "{\"label\":\"Simple screwdrivers\",\"concepts\":[],\"type\":\"Subject\"}" + "source.subjects" : [ + { + "id" : "subject1", + "label" : "Simple screwdrivers" + } ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ "Simple screwdrivers" ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ "subject1" ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ "y8ZBmObzMW" ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.012124317, -0.021299876, -0.005733557, @@ -4250,7 +4253,7 @@ -0.03894818, 2.7688028E-4 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.029970823, -0.02675187, 0.014035577, @@ -5253,8 +5256,8 @@ 0.043071184 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.subjects.sounds.json b/common/search/src/test/resources/test_documents/images.subjects.sounds.json index cb1e48eea..1158e1dda 100644 --- a/common/search/src/test/resources/test_documents/images.subjects.sounds.json +++ b/common/search/src/test/resources/test_documents/images.subjects.sounds.json @@ -1,155 +1,158 @@ { - "description": "images with different subjects", - "createdAt": "2024-11-14T14:37:56.552107Z", - "id": "kzssqpi3", - "document": { - "modifiedTime": "1988-08-30T19:53:42Z", - "display": { - "id": "kzssqpi3", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different subjects", + "createdAt" : "2024-11-25T15:14:41.257309Z", + "id" : "kzssqpi3", + "document" : { + "modifiedTime" : "1988-08-30T19:53:42Z", + "display" : { + "id" : "kzssqpi3", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/cmY.jpg/info.json", - "linkText": "Link text: TnpH5i", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/cmY.jpg/info.json", + "linkText" : "Link text: TnpH5i", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/cmY.jpg/info.json", - "linkText": "Link text: TnpH5i", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/cmY.jpg/info.json", + "linkText" : "Link text: TnpH5i", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#16E474", - "source": { - "id": "tcqskq12", - "title": "title-TjuvcW2P6K", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#16E474", + "source" : { + "id" : "tcqskq12", + "title" : "title-TjuvcW2P6K", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ { - "label": "Square sounds", - "concepts": [ + "label" : "Square sounds", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" } ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "kzssqpi3", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "kzssqpi3", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "tcqskq12", - "sourceIdentifier.value": "nEWqpoAGwP", - "identifiers.value": [ + "id" : "tcqskq12", + "sourceIdentifier.value" : "nEWqpoAGwP", + "identifiers.value" : [ "nEWqpoAGwP" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-TjuvcW2P6K" + "title" : "title-TjuvcW2P6K" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ - "{\"label\":\"Square sounds\",\"concepts\":[],\"type\":\"Subject\"}" + "source.subjects" : [ + { + "id" : "Square sounds", + "label" : "Square sounds" + } ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ "Square sounds" ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.027123732, 0.024278343, 0.010769607, @@ -4247,7 +4250,7 @@ 0.018701838, -0.01027819 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0026479736, -0.03839519, -0.012416301, @@ -5250,8 +5253,8 @@ 0.049604274 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.subjects.squirrel,sample.json b/common/search/src/test/resources/test_documents/images.subjects.squirrel,sample.json index 5ad09c94d..5a72d0094 100644 --- a/common/search/src/test/resources/test_documents/images.subjects.squirrel,sample.json +++ b/common/search/src/test/resources/test_documents/images.subjects.squirrel,sample.json @@ -1,166 +1,172 @@ { - "description": "images with different subjects", - "createdAt": "2024-11-14T14:37:56.565016Z", - "id": "m3maupg3", - "document": { - "modifiedTime": "2047-03-03T17:12:17Z", - "display": { - "id": "m3maupg3", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different subjects", + "createdAt" : "2024-11-25T15:14:41.266591Z", + "id" : "m3maupg3", + "document" : { + "modifiedTime" : "2047-03-03T17:12:17Z", + "display" : { + "id" : "m3maupg3", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/7cV.jpg/info.json", - "credit": "Credit line: OYCYtD", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/7cV.jpg/info.json", + "credit" : "Credit line: OYCYtD", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/7cV.jpg/info.json", - "credit": "Credit line: OYCYtD", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/7cV.jpg/info.json", + "credit" : "Credit line: OYCYtD", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#C2504D", - "source": { - "id": "efyngkg4", - "title": "title-xah7C7EJsw", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#C2504D", + "source" : { + "id" : "efyngkg4", + "title" : "title-xah7C7EJsw", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ { - "label": "Squashed squirrels", - "concepts": [ + "label" : "Squashed squirrels", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" }, { - "id": "subject2", - "label": "Struck samples", - "concepts": [ + "id" : "subject2", + "label" : "Struck samples", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" } ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "m3maupg3", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "m3maupg3", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "efyngkg4", - "sourceIdentifier.value": "2bPmn3zVI7", - "identifiers.value": [ + "id" : "efyngkg4", + "sourceIdentifier.value" : "2bPmn3zVI7", + "identifiers.value" : [ "2bPmn3zVI7" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-xah7C7EJsw" + "title" : "title-xah7C7EJsw" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ - "{\"label\":\"Squashed squirrels\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"Struck samples\",\"concepts\":[],\"type\":\"Subject\"}" + "source.subjects" : [ + { + "id" : "Squashed squirrels", + "label" : "Squashed squirrels" + }, + { + "id" : "subject2", + "label" : "Struck samples" + } ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ "Squashed squirrels", "Struck samples" ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ "subject2" ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ "03y8UH48Sz" ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ -0.013064202, 0.027516874, 0.0038179387, @@ -4258,7 +4264,7 @@ 0.015030676, -4.7415524E-4 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -0.0026239895, -0.016358543, -0.0068920176, @@ -5261,8 +5267,8 @@ -0.042300895 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/images.subjects.squirrel,screwdriver.json b/common/search/src/test/resources/test_documents/images.subjects.squirrel,screwdriver.json index 81d3cc20c..a12033770 100644 --- a/common/search/src/test/resources/test_documents/images.subjects.squirrel,screwdriver.json +++ b/common/search/src/test/resources/test_documents/images.subjects.squirrel,screwdriver.json @@ -1,166 +1,172 @@ { - "description": "images with different subjects", - "createdAt": "2024-11-14T14:37:56.569804Z", - "id": "uiooocyh", - "document": { - "modifiedTime": "1937-08-06T16:15:53Z", - "display": { - "id": "uiooocyh", - "thumbnail": { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "description" : "images with different subjects", + "createdAt" : "2024-11-25T15:14:41.269600Z", + "id" : "uiooocyh", + "document" : { + "modifiedTime" : "1937-08-06T16:15:53Z", + "display" : { + "id" : "uiooocyh", + "thumbnail" : { + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/oJE.jpg/info.json", - "linkText": "Link text: T2JFX6mG", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/oJE.jpg/info.json", + "linkText" : "Link text: T2JFX6mG", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/oJE.jpg/info.json", - "linkText": "Link text: T2JFX6mG", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/oJE.jpg/info.json", + "linkText" : "Link text: T2JFX6mG", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "aspectRatio": 0.38759995, - "averageColor": "#95EC64", - "source": { - "id": "ogklj6ac", - "title": "title-4wqzKQH3tC", - "contributors": [ + "aspectRatio" : 0.38759995, + "averageColor" : "#95EC64", + "source" : { + "id" : "ogklj6ac", + "title" : "title-4wqzKQH3tC", + "contributors" : [ ], - "languages": [ + "languages" : [ ], - "genres": [ + "genres" : [ ], - "subjects": [ + "subjects" : [ { - "label": "Squashed squirrels", - "concepts": [ + "label" : "Squashed squirrels", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" }, { - "id": "subject1", - "label": "Simple screwdrivers", - "concepts": [ + "id" : "subject1", + "label" : "Simple screwdrivers", + "concepts" : [ ], - "type": "Subject" + "type" : "Subject" } ], - "type": "Work" + "type" : "Work" }, - "type": "Image" + "type" : "Image" }, - "query": { - "id": "uiooocyh", - "source": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "id" : "uiooocyh", + "source" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ogklj6ac", - "sourceIdentifier.value": "tosPIwbBKS", - "identifiers.value": [ + "id" : "ogklj6ac", + "sourceIdentifier.value" : "tosPIwbBKS", + "identifiers.value" : [ "tosPIwbBKS" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-4wqzKQH3tC" + "title" : "title-4wqzKQH3tC" } }, - "aggregatableValues": { - "locations.license": [ + "aggregatableValues" : { + "locations.license" : [ ], - "source.contributors.agent.label": [ + "source.contributors.agent" : [ ], - "source.genres.label": [ + "source.genres" : [ ], - "source.subjects.label": [ - "{\"label\":\"Squashed squirrels\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"Simple screwdrivers\",\"concepts\":[],\"type\":\"Subject\"}" + "source.subjects" : [ + { + "id" : "Squashed squirrels", + "label" : "Squashed squirrels" + }, + { + "id" : "subject1", + "label" : "Simple screwdrivers" + } ] }, - "filterableValues": { - "locations.license.id": [ + "filterableValues" : { + "locations.license.id" : [ "cc-by" ], - "source.contributors.agent.label": [ + "source.contributors.agent.label" : [ ], - "source.contributors.agent.id": [ + "source.contributors.agent.id" : [ ], - "source.contributors.agent.sourceIdentifier": [ + "source.contributors.agent.sourceIdentifier" : [ ], - "source.genres.label": [ + "source.genres.label" : [ ], - "source.genres.concepts.id": [ + "source.genres.concepts.id" : [ ], - "source.genres.concepts.sourceIdentifier": [ + "source.genres.concepts.sourceIdentifier" : [ ], - "source.subjects.label": [ + "source.subjects.label" : [ "Squashed squirrels", "Simple screwdrivers" ], - "source.subjects.concepts.id": [ + "source.subjects.concepts.id" : [ "subject1" ], - "source.subjects.concepts.sourceIdentifier": [ + "source.subjects.concepts.sourceIdentifier" : [ "y8ZBmObzMW" ], - "source.production.dates.range.from": [ + "source.production.dates.range.from" : [ ] }, - "vectorValues": { - "features": [ + "vectorValues" : { + "features" : [ 0.011131856, -0.010486431, -0.030248063, @@ -4258,7 +4264,7 @@ 0.011773305, -0.0022758727 ], - "paletteEmbedding": [ + "paletteEmbedding" : [ -6.3517386E-5, -0.025464978, -0.001912737, @@ -5261,8 +5267,8 @@ 0.025946626 ] }, - "debug": { - "indexedTime": "2001-01-01T01:01:01Z" + "debug" : { + "indexedTime" : "2001-01-01T01:01:01Z" } } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-production.1098.json b/common/search/src/test/resources/test_documents/work-production.1098.json index 22adae923..c4b0352bb 100644 --- a/common/search/src/test/resources/test_documents/work-production.1098.json +++ b/common/search/src/test/resources/test_documents/work-production.1098.json @@ -1,199 +1,202 @@ { - "description": "a work with a production event in 1098", - "createdAt": "2024-11-13T08:43:26.277829Z", - "id": "guav7chy", - "document": { - "debug": { - "source": { - "id": "guav7chy", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with a production event in 1098", + "createdAt" : "2024-11-25T15:15:12.138327Z", + "id" : "guav7chy", + "document" : { + "debug" : { + "source" : { + "id" : "guav7chy", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "W9fptfa5Xn" + "ontologyType" : "Work", + "value" : "W9fptfa5Xn" }, - "version": 36, - "modifiedTime": "1947-04-11T10:50:49Z" + "version" : 36, + "modifiedTime" : "1947-04-11T10:50:49Z" }, - "mergedTime": "1947-04-11T10:50:49Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1947-04-11T10:50:49Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "guav7chy", - "title": "Production event in 1098", - "alternativeTitles": [ + "display" : { + "id" : "guav7chy", + "title" : "Production event in 1098", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "W9fptfa5Xn", - "type": "Identifier" + "value" : "W9fptfa5Xn", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "O5NI3fmxMe7PvjOSdUDvO1WIV", - "places": [ + "label" : "O5NI3fmxMe7PvjOSdUDvO1WIV", + "places" : [ ], - "agents": [ + "agents" : [ ], - "dates": [ + "dates" : [ { - "label": "1098", - "type": "Period" + "label" : "1098", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "guav7chy", - "sourceIdentifier.value": "W9fptfa5Xn", - "identifiers.value": [ + "id" : "guav7chy", + "sourceIdentifier.value" : "W9fptfa5Xn", + "identifiers.value" : [ "W9fptfa5Xn" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1098" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1098" + "title" : "Production event in 1098" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1098\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1098", + "label" : "1098" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -27517622400000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "W9fptfa5Xn" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-production.1900.json b/common/search/src/test/resources/test_documents/work-production.1900.json index d6e0c3498..2f7dbdf4e 100644 --- a/common/search/src/test/resources/test_documents/work-production.1900.json +++ b/common/search/src/test/resources/test_documents/work-production.1900.json @@ -1,199 +1,202 @@ { - "description": "a work with a production event in 1900", - "createdAt": "2024-11-13T08:43:26.268138Z", - "id": "rbnro6wx", - "document": { - "debug": { - "source": { - "id": "rbnro6wx", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with a production event in 1900", + "createdAt" : "2024-11-25T15:15:12.128853Z", + "id" : "rbnro6wx", + "document" : { + "debug" : { + "source" : { + "id" : "rbnro6wx", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "akaUmx5H3i" + "ontologyType" : "Work", + "value" : "akaUmx5H3i" }, - "version": 53, - "modifiedTime": "1935-04-27T19:39:17Z" + "version" : 53, + "modifiedTime" : "1935-04-27T19:39:17Z" }, - "mergedTime": "1935-04-27T19:39:17Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1935-04-27T19:39:17Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "rbnro6wx", - "title": "Production event in 1900", - "alternativeTitles": [ + "display" : { + "id" : "rbnro6wx", + "title" : "Production event in 1900", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "akaUmx5H3i", - "type": "Identifier" + "value" : "akaUmx5H3i", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "gu6TgtWwNe2izyk21myzum5ko", - "places": [ + "label" : "gu6TgtWwNe2izyk21myzum5ko", + "places" : [ ], - "agents": [ + "agents" : [ ], - "dates": [ + "dates" : [ { - "label": "1900", - "type": "Period" + "label" : "1900", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "rbnro6wx", - "sourceIdentifier.value": "akaUmx5H3i", - "identifiers.value": [ + "id" : "rbnro6wx", + "sourceIdentifier.value" : "akaUmx5H3i", + "identifiers.value" : [ "akaUmx5H3i" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1900" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1900" + "title" : "Production event in 1900" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1900\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1900", + "label" : "1900" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -2208988800000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "akaUmx5H3i" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-production.1904.json b/common/search/src/test/resources/test_documents/work-production.1904.json index de21bdf06..0265ff03b 100644 --- a/common/search/src/test/resources/test_documents/work-production.1904.json +++ b/common/search/src/test/resources/test_documents/work-production.1904.json @@ -1,199 +1,202 @@ { - "description": "a work with a production event in 1904", - "createdAt": "2024-11-13T08:43:26.272823Z", - "id": "aiv95swj", - "document": { - "debug": { - "source": { - "id": "aiv95swj", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with a production event in 1904", + "createdAt" : "2024-11-25T15:15:12.134053Z", + "id" : "aiv95swj", + "document" : { + "debug" : { + "source" : { + "id" : "aiv95swj", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "h0QyLvGt20" + "ontologyType" : "Work", + "value" : "h0QyLvGt20" }, - "version": 38, - "modifiedTime": "1949-02-28T00:19:38Z" + "version" : 38, + "modifiedTime" : "1949-02-28T00:19:38Z" }, - "mergedTime": "1949-02-28T00:19:38Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1949-02-28T00:19:38Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "aiv95swj", - "title": "Production event in 1904", - "alternativeTitles": [ + "display" : { + "id" : "aiv95swj", + "title" : "Production event in 1904", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "h0QyLvGt20", - "type": "Identifier" + "value" : "h0QyLvGt20", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "gIdUKO9ELdlCtGqZpr8ZHyDFZ", - "places": [ + "label" : "gIdUKO9ELdlCtGqZpr8ZHyDFZ", + "places" : [ ], - "agents": [ + "agents" : [ ], - "dates": [ + "dates" : [ { - "label": "1904", - "type": "Period" + "label" : "1904", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "aiv95swj", - "sourceIdentifier.value": "h0QyLvGt20", - "identifiers.value": [ + "id" : "aiv95swj", + "sourceIdentifier.value" : "h0QyLvGt20", + "identifiers.value" : [ "h0QyLvGt20" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1904" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1904" + "title" : "Production event in 1904" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1904\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1904", + "label" : "1904" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -2082844800000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "h0QyLvGt20" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-production.1976.json b/common/search/src/test/resources/test_documents/work-production.1976.json index 0ebca2e44..37c6e0ec6 100644 --- a/common/search/src/test/resources/test_documents/work-production.1976.json +++ b/common/search/src/test/resources/test_documents/work-production.1976.json @@ -1,199 +1,202 @@ { - "description": "a work with a production event in 1976", - "createdAt": "2024-11-13T08:43:26.270486Z", - "id": "5vjghupy", - "document": { - "debug": { - "source": { - "id": "5vjghupy", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a work with a production event in 1976", + "createdAt" : "2024-11-25T15:15:12.131777Z", + "id" : "5vjghupy", + "document" : { + "debug" : { + "source" : { + "id" : "5vjghupy", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "xrdlOL8J49" + "ontologyType" : "Work", + "value" : "xrdlOL8J49" }, - "version": 83, - "modifiedTime": "1970-01-23T23:11:47Z" + "version" : 83, + "modifiedTime" : "1970-01-23T23:11:47Z" }, - "mergedTime": "1970-01-23T23:11:47Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1970-01-23T23:11:47Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "5vjghupy", - "title": "Production event in 1976", - "alternativeTitles": [ + "display" : { + "id" : "5vjghupy", + "title" : "Production event in 1976", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "xrdlOL8J49", - "type": "Identifier" + "value" : "xrdlOL8J49", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "boNJsc3AAjxHM3WnjuDFIT1sH", - "places": [ + "label" : "boNJsc3AAjxHM3WnjuDFIT1sH", + "places" : [ ], - "agents": [ + "agents" : [ ], - "dates": [ + "dates" : [ { - "label": "1976", - "type": "Period" + "label" : "1976", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "5vjghupy", - "sourceIdentifier.value": "xrdlOL8J49", - "identifiers.value": [ + "id" : "5vjghupy", + "sourceIdentifier.value" : "xrdlOL8J49", + "identifiers.value" : [ "xrdlOL8J49" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "1976" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 1976" + "title" : "Production event in 1976" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1976\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1976", + "label" : "1976" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ 189302400000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "xrdlOL8J49" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-production.2020.json b/common/search/src/test/resources/test_documents/work-production.2020.json index 5d404619a..e5ad48866 100644 --- a/common/search/src/test/resources/test_documents/work-production.2020.json +++ b/common/search/src/test/resources/test_documents/work-production.2020.json @@ -1,199 +1,202 @@ { - "description": "a work with a production event in 2020", - "createdAt": "2024-11-13T08:43:26.275334Z", - "id": "0fucriyr", - "document": { - "debug": { - "source": { - "id": "0fucriyr", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with a production event in 2020", + "createdAt" : "2024-11-25T15:15:12.136151Z", + "id" : "0fucriyr", + "document" : { + "debug" : { + "source" : { + "id" : "0fucriyr", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "KgSH5dUX0Z" + "ontologyType" : "Work", + "value" : "KgSH5dUX0Z" }, - "version": 14, - "modifiedTime": "1936-06-08T14:59:50Z" + "version" : 14, + "modifiedTime" : "1936-06-08T14:59:50Z" }, - "mergedTime": "1936-06-08T14:59:50Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1936-06-08T14:59:50Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "0fucriyr", - "title": "Production event in 2020", - "alternativeTitles": [ + "display" : { + "id" : "0fucriyr", + "title" : "Production event in 2020", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "KgSH5dUX0Z", - "type": "Identifier" + "value" : "KgSH5dUX0Z", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "qX1oaMinUSJLhD6RZ9qpj8A8L", - "places": [ + "label" : "qX1oaMinUSJLhD6RZ9qpj8A8L", + "places" : [ ], - "agents": [ + "agents" : [ ], - "dates": [ + "dates" : [ { - "label": "2020", - "type": "Period" + "label" : "2020", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "0fucriyr", - "sourceIdentifier.value": "KgSH5dUX0Z", - "identifiers.value": [ + "id" : "0fucriyr", + "sourceIdentifier.value" : "KgSH5dUX0Z", + "identifiers.value" : [ "KgSH5dUX0Z" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "2020" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "Production event in 2020" + "title" : "Production event in 2020" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"2020\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "2020", + "label" : "2020" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ 1577836800000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "KgSH5dUX0Z" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-thumbnail.json b/common/search/src/test/resources/test_documents/work-thumbnail.json index 39d6146ae..c0d043b0c 100644 --- a/common/search/src/test/resources/test_documents/work-thumbnail.json +++ b/common/search/src/test/resources/test_documents/work-thumbnail.json @@ -1,199 +1,199 @@ { - "description": "a work with a thumbnail", - "createdAt": "2024-11-13T08:43:26.254004Z", - "id": "sahqcluh", - "document": { - "debug": { - "source": { - "id": "sahqcluh", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a work with a thumbnail", + "createdAt" : "2024-11-25T15:15:12.112483Z", + "id" : "sahqcluh", + "document" : { + "debug" : { + "source" : { + "id" : "sahqcluh", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "rRRYGQYiF7" + "ontologyType" : "Work", + "value" : "rRRYGQYiF7" }, - "version": 9, - "modifiedTime": "2052-06-26T19:25:07Z" + "version" : 9, + "modifiedTime" : "2052-06-26T19:25:07Z" }, - "mergedTime": "2052-06-26T19:25:07Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2052-06-26T19:25:07Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "sahqcluh", - "title": "title-LSfnjHB2TS", - "alternativeTitles": [ + "display" : { + "id" : "sahqcluh", + "title" : "title-LSfnjHB2TS", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "rRRYGQYiF7", - "type": "Identifier" + "value" : "rRRYGQYiF7", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "thumbnail": { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "thumbnail" : { + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/547.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/547.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "sahqcluh", - "sourceIdentifier.value": "rRRYGQYiF7", - "identifiers.value": [ + "id" : "sahqcluh", + "sourceIdentifier.value" : "rRRYGQYiF7", + "identifiers.value" : [ "rRRYGQYiF7" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-LSfnjHB2TS" + "title" : "title-LSfnjHB2TS" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "rRRYGQYiF7" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-title-dodo.json b/common/search/src/test/resources/test_documents/work-title-dodo.json index 9214178c7..a46007b9b 100644 --- a/common/search/src/test/resources/test_documents/work-title-dodo.json +++ b/common/search/src/test/resources/test_documents/work-title-dodo.json @@ -1,183 +1,183 @@ { - "description": "a work with 'dodo' in the title", - "createdAt": "2024-11-13T08:43:26.256912Z", - "id": "ezagik4b", - "document": { - "debug": { - "source": { - "id": "ezagik4b", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a work with 'dodo' in the title", + "createdAt" : "2024-11-25T15:15:12.116127Z", + "id" : "ezagik4b", + "document" : { + "debug" : { + "source" : { + "id" : "ezagik4b", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "xg9OuzGali" + "ontologyType" : "Work", + "value" : "xg9OuzGali" }, - "version": 84, - "modifiedTime": "1965-10-11T02:36:15Z" + "version" : 84, + "modifiedTime" : "1965-10-11T02:36:15Z" }, - "mergedTime": "1965-10-11T02:36:15Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1965-10-11T02:36:15Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ezagik4b", - "title": "A drawing of a dodo", - "alternativeTitles": [ + "display" : { + "id" : "ezagik4b", + "title" : "A drawing of a dodo", + "alternativeTitles" : [ ], - "lettering": "A line of legible ligatures", - "contributors": [ + "lettering" : "A line of legible ligatures", + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "xg9OuzGali", - "type": "Identifier" + "value" : "xg9OuzGali", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ezagik4b", - "sourceIdentifier.value": "xg9OuzGali", - "identifiers.value": [ + "id" : "ezagik4b", + "sourceIdentifier.value" : "xg9OuzGali", + "identifiers.value" : [ "xg9OuzGali" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": "A line of legible ligatures", - "notes.contents": [ + "lettering" : "A line of legible ligatures", + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A drawing of a dodo" + "title" : "A drawing of a dodo" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "xg9OuzGali" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-title-mouse.json b/common/search/src/test/resources/test_documents/work-title-mouse.json index 7de9a58dd..391b00976 100644 --- a/common/search/src/test/resources/test_documents/work-title-mouse.json +++ b/common/search/src/test/resources/test_documents/work-title-mouse.json @@ -1,183 +1,183 @@ { - "description": "a work with 'mouse' in the title", - "createdAt": "2024-11-13T08:43:26.259339Z", - "id": "lnn17cwk", - "document": { - "debug": { - "source": { - "id": "lnn17cwk", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with 'mouse' in the title", + "createdAt" : "2024-11-25T15:15:12.118663Z", + "id" : "lnn17cwk", + "document" : { + "debug" : { + "source" : { + "id" : "lnn17cwk", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "EhPpSB8mq7" + "ontologyType" : "Work", + "value" : "EhPpSB8mq7" }, - "version": 64, - "modifiedTime": "2003-09-07T11:20:18Z" + "version" : 64, + "modifiedTime" : "2003-09-07T11:20:18Z" }, - "mergedTime": "2003-09-07T11:20:18Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2003-09-07T11:20:18Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "lnn17cwk", - "title": "A mezzotint of a mouse", - "alternativeTitles": [ + "display" : { + "id" : "lnn17cwk", + "title" : "A mezzotint of a mouse", + "alternativeTitles" : [ ], - "lettering": "A print of proportional penmanship", - "contributors": [ + "lettering" : "A print of proportional penmanship", + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "EhPpSB8mq7", - "type": "Identifier" + "value" : "EhPpSB8mq7", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "lnn17cwk", - "sourceIdentifier.value": "EhPpSB8mq7", - "identifiers.value": [ + "id" : "lnn17cwk", + "sourceIdentifier.value" : "EhPpSB8mq7", + "identifiers.value" : [ "EhPpSB8mq7" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": "A print of proportional penmanship", - "notes.contents": [ + "lettering" : "A print of proportional penmanship", + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A mezzotint of a mouse" + "title" : "A mezzotint of a mouse" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "EhPpSB8mq7" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work-with-edition-and-duration.json b/common/search/src/test/resources/test_documents/work-with-edition-and-duration.json index b06e0d96c..80765a762 100644 --- a/common/search/src/test/resources/test_documents/work-with-edition-and-duration.json +++ b/common/search/src/test/resources/test_documents/work-with-edition-and-duration.json @@ -1,184 +1,184 @@ { - "description": "a work with optional top-level fields", - "createdAt": "2024-11-13T08:43:26.245788Z", - "id": "gsruvqwf", - "document": { - "debug": { - "source": { - "id": "gsruvqwf", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with optional top-level fields", + "createdAt" : "2024-11-25T15:15:12.102983Z", + "id" : "gsruvqwf", + "document" : { + "debug" : { + "source" : { + "id" : "gsruvqwf", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "7YNi35xO0f" + "ontologyType" : "Work", + "value" : "7YNi35xO0f" }, - "version": 54, - "modifiedTime": "1967-09-14T08:19:27Z" + "version" : 54, + "modifiedTime" : "1967-09-14T08:19:27Z" }, - "mergedTime": "1967-09-14T08:19:27Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1967-09-14T08:19:27Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "gsruvqwf", - "title": "title-4pIj0kgXrt", - "alternativeTitles": [ + "display" : { + "id" : "gsruvqwf", + "title" : "title-4pIj0kgXrt", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "7YNi35xO0f", - "type": "Identifier" + "value" : "7YNi35xO0f", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "edition": "Special edition", - "notes": [ + "edition" : "Special edition", + "notes" : [ ], - "duration": 3600, - "formerFrequency": [ + "duration" : 3600, + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": "Special edition", - "genres.concepts.label": [ + "description" : null, + "edition" : "Special edition", + "genres.concepts.label" : [ ], - "id": "gsruvqwf", - "sourceIdentifier.value": "7YNi35xO0f", - "identifiers.value": [ + "id" : "gsruvqwf", + "sourceIdentifier.value" : "7YNi35xO0f", + "identifiers.value" : [ "7YNi35xO0f" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-4pIj0kgXrt" + "title" : "title-4pIj0kgXrt" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "7YNi35xO0f" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.invisible.title-mouse.json b/common/search/src/test/resources/test_documents/work.invisible.title-mouse.json index 1d8de4bc6..93aa6af6a 100644 --- a/common/search/src/test/resources/test_documents/work.invisible.title-mouse.json +++ b/common/search/src/test/resources/test_documents/work.invisible.title-mouse.json @@ -1,28 +1,28 @@ { - "description": "an invisible work with 'mouse' in the title", - "createdAt": "2024-02-16T15:36:44.232704Z", - "id": "ehd2s7ek", - "document": { - "debug": { - "source": { - "id": "ehd2s7ek", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "an invisible work with 'mouse' in the title", + "createdAt" : "2024-02-16T15:36:44.232704Z", + "id" : "ehd2s7ek", + "document" : { + "debug" : { + "source" : { + "id" : "ehd2s7ek", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "QAH5ZlILHM" + "ontologyType" : "Work", + "value" : "QAH5ZlILHM" }, - "version": 47, - "modifiedTime": "2006-12-05T07:13:26Z" + "version" : 47, + "modifiedTime" : "2006-12-05T07:13:26Z" }, - "mergedTime": "2006-12-05T07:13:26Z", - "indexedTime": "2001-01-01T01:01:01Z", - "invisibilityReasons": [ + "mergedTime" : "2006-12-05T07:13:26Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "invisibilityReasons" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Invisible" + "type" : "Invisible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.items-with-location-types.0.json b/common/search/src/test/resources/test_documents/work.items-with-location-types.0.json index 267b44c2f..a52b3b0d4 100644 --- a/common/search/src/test/resources/test_documents/work.items-with-location-types.0.json +++ b/common/search/src/test/resources/test_documents/work.items-with-location-types.0.json @@ -1,224 +1,227 @@ { - "description": "items with different location types", - "createdAt": "2024-11-13T08:43:26.563947Z", - "id": "4zaferi8", - "document": { - "debug": { - "source": { - "id": "4zaferi8", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "items with different location types", + "createdAt" : "2024-11-25T15:15:12.411403Z", + "id" : "4zaferi8", + "document" : { + "debug" : { + "source" : { + "id" : "4zaferi8", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "lfxMM8GfuD" + "ontologyType" : "Work", + "value" : "lfxMM8GfuD" }, - "version": 86, - "modifiedTime": "2038-12-13T02:35:56Z" + "version" : 86, + "modifiedTime" : "2038-12-13T02:35:56Z" }, - "mergedTime": "2038-12-13T02:35:56Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2038-12-13T02:35:56Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "4zaferi8", - "title": "title-7W1WKu978d", - "alternativeTitles": [ + "display" : { + "id" : "4zaferi8", + "title" : "title-7W1WKu978d", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "lfxMM8GfuD", - "type": "Identifier" + "value" : "lfxMM8GfuD", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "xato6wyi", - "identifiers": [ + "id" : "xato6wyi", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "aLacffLiQz", - "type": "Identifier" + "value" : "aLacffLiQz", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/n6e.jpg/info.json", - "linkText": "Link text: UShs8ZXp5K", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/n6e.jpg/info.json", + "linkText" : "Link text: UShs8ZXp5K", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "4zaferi8", - "sourceIdentifier.value": "lfxMM8GfuD", - "identifiers.value": [ + "id" : "4zaferi8", + "sourceIdentifier.value" : "lfxMM8GfuD", + "identifiers.value" : [ "lfxMM8GfuD" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "xato6wyi" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "aLacffLiQz" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-7W1WKu978d" + "title" : "title-7W1WKu978d" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "lfxMM8GfuD" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "xato6wyi" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "aLacffLiQz" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-image" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.items-with-location-types.1.json b/common/search/src/test/resources/test_documents/work.items-with-location-types.1.json index 3a03d4da4..87190b5ac 100644 --- a/common/search/src/test/resources/test_documents/work.items-with-location-types.1.json +++ b/common/search/src/test/resources/test_documents/work.items-with-location-types.1.json @@ -1,246 +1,252 @@ { - "description": "items with different location types", - "createdAt": "2024-11-13T08:43:26.564398Z", - "id": "pfnxzwsg", - "document": { - "debug": { - "source": { - "id": "pfnxzwsg", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "items with different location types", + "createdAt" : "2024-11-25T15:15:12.411843Z", + "id" : "pfnxzwsg", + "document" : { + "debug" : { + "source" : { + "id" : "pfnxzwsg", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "3WPG6KR1Dm" + "ontologyType" : "Work", + "value" : "3WPG6KR1Dm" }, - "version": 86, - "modifiedTime": "2009-12-08T11:45:37Z" + "version" : 86, + "modifiedTime" : "2009-12-08T11:45:37Z" }, - "mergedTime": "2009-12-08T11:45:37Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2009-12-08T11:45:37Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "pfnxzwsg", - "title": "title-KiQpo5xNC2", - "alternativeTitles": [ + "display" : { + "id" : "pfnxzwsg", + "title" : "title-KiQpo5xNC2", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "3WPG6KR1Dm", - "type": "Identifier" + "value" : "3WPG6KR1Dm", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "k2sxfzy9", - "identifiers": [ + "id" : "k2sxfzy9", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "dRJC6PIObm", - "type": "Identifier" + "value" : "dRJC6PIObm", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-image", - "label": "IIIF Image API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-image", + "label" : "IIIF Image API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/LKO.jpg/info.json", - "credit": "Credit line: PPIvUnh", - "linkText": "Link text: 2Z5Ks7", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/LKO.jpg/info.json", + "credit" : "Credit line: PPIvUnh", + "linkText" : "Link text: 2Z5Ks7", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" }, { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/7v4.jpg/info.json", - "linkText": "Link text: UCKKVOQ", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/7v4.jpg/info.json", + "linkText" : "Link text: UCKKVOQ", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "pfnxzwsg", - "sourceIdentifier.value": "3WPG6KR1Dm", - "identifiers.value": [ + "id" : "pfnxzwsg", + "sourceIdentifier.value" : "3WPG6KR1Dm", + "identifiers.value" : [ "3WPG6KR1Dm" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "k2sxfzy9" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "dRJC6PIObm" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-KiQpo5xNC2" + "title" : "title-KiQpo5xNC2" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "3WPG6KR1Dm" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by", "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "k2sxfzy9" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "dRJC6PIObm" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-image", "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.items-with-location-types.2.json b/common/search/src/test/resources/test_documents/work.items-with-location-types.2.json index b80978bdd..bb5b368a9 100644 --- a/common/search/src/test/resources/test_documents/work.items-with-location-types.2.json +++ b/common/search/src/test/resources/test_documents/work.items-with-location-types.2.json @@ -1,232 +1,238 @@ { - "description": "items with different location types", - "createdAt": "2024-11-13T08:43:26.564840Z", - "id": "gubhlxq1", - "document": { - "debug": { - "source": { - "id": "gubhlxq1", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "items with different location types", + "createdAt" : "2024-11-25T15:15:12.412254Z", + "id" : "gubhlxq1", + "document" : { + "debug" : { + "source" : { + "id" : "gubhlxq1", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "Qiy0B0TSmD" + "ontologyType" : "Work", + "value" : "Qiy0B0TSmD" }, - "version": 52, - "modifiedTime": "1954-07-26T16:28:04Z" + "version" : 52, + "modifiedTime" : "1954-07-26T16:28:04Z" }, - "mergedTime": "1954-07-26T16:28:04Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1954-07-26T16:28:04Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "gubhlxq1", - "title": "title-wO98EpYD0E", - "alternativeTitles": [ + "display" : { + "id" : "gubhlxq1", + "title" : "title-wO98EpYD0E", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "Qiy0B0TSmD", - "type": "Identifier" + "value" : "Qiy0B0TSmD", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "iptnnwys", - "identifiers": [ + "id" : "iptnnwys", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "EYydewbq2T", - "type": "Identifier" + "value" : "EYydewbq2T", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "closed-stores", - "label": "Closed stores", - "type": "LocationType" + "locationType" : { + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "LocationType" }, - "label": "locationLabel", - "license": { - "id": "ogl", - "label": "Open Government Licence", - "url": "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", - "type": "License" + "label" : "locationLabel", + "license" : { + "id" : "ogl", + "label" : "Open Government Licence", + "url" : "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", + "type" : "License" }, - "shelfmark": "Shelfmark: A6uWTQ", - "accessConditions": [ + "shelfmark" : "Shelfmark: A6uWTQ", + "accessConditions" : [ ], - "type": "PhysicalLocation" + "type" : "PhysicalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "closed-stores", - "label": "Closed stores", - "type": "Availability" + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "gubhlxq1", - "sourceIdentifier.value": "Qiy0B0TSmD", - "identifiers.value": [ + "id" : "gubhlxq1", + "sourceIdentifier.value" : "Qiy0B0TSmD", + "identifiers.value" : [ "Qiy0B0TSmD" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "iptnnwys" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "EYydewbq2T" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ "Shelfmark: A6uWTQ" ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-wO98EpYD0E" + "title" : "title-wO98EpYD0E" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"ogl\",\"label\":\"Open Government Licence\",\"url\":\"http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "ogl", + "label" : "Open Government Licence" + } ], - "availabilities": [ - "{\"id\":\"closed-stores\",\"label\":\"Closed stores\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "closed-stores", + "label" : "Closed stores" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Qiy0B0TSmD" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "ogl" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "iptnnwys" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "EYydewbq2T" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "closed-stores" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "closed-stores" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.visible.everything.0.json b/common/search/src/test/resources/test_documents/work.visible.everything.0.json index 0e1b01ba3..b1a5a5542 100644 --- a/common/search/src/test/resources/test_documents/work.visible.everything.0.json +++ b/common/search/src/test/resources/test_documents/work.visible.everything.0.json @@ -1,360 +1,360 @@ { - "description": "a list of work with all the include-able fields", - "createdAt": "2024-11-13T08:43:26.422796Z", - "id": "tmdfbk5k", - "document": { - "debug": { - "source": { - "id": "tmdfbk5k", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a list of work with all the include-able fields", + "createdAt" : "2024-11-25T15:15:12.282668Z", + "id" : "tmdfbk5k", + "document" : { + "debug" : { + "source" : { + "id" : "tmdfbk5k", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "Aic5qOhRoS" + "ontologyType" : "Work", + "value" : "Aic5qOhRoS" }, - "version": 12, - "modifiedTime": "2033-04-23T09:14:15Z" + "version" : 12, + "modifiedTime" : "2033-04-23T09:14:15Z" }, - "mergedTime": "2033-04-23T09:14:15Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2033-04-23T09:14:15Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "tmdfbk5k", - "title": "A work with all the include-able fields", - "alternativeTitles": [ + "display" : { + "id" : "tmdfbk5k", + "title" : "A work with all the include-able fields", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "person-eKZIqbV783", - "type": "Person" + "agent" : { + "label" : "person-eKZIqbV783", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "person-9SMhIH", - "type": "Person" + "agent" : { + "label" : "person-9SMhIH", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "Aic5qOhRoS", - "type": "Identifier" + "value" : "Aic5qOhRoS", + "type" : "Identifier" }, { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "UfcQYSxE7g", - "type": "Identifier" + "value" : "UfcQYSxE7g", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "RGOo9Fg6ic", - "concepts": [ + "label" : "RGOo9Fg6ic", + "concepts" : [ { - "label": "goKOwWLrIbnrzZj", - "type": "Concept" + "label" : "goKOwWLrIbnrzZj", + "type" : "Concept" }, { - "label": "i3JH82kKuArEtlV", - "type": "Concept" + "label" : "i3JH82kKuArEtlV", + "type" : "Concept" }, { - "label": "dV0jg08I834KKSX", - "type": "Concept" + "label" : "dV0jg08I834KKSX", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" }, { - "label": "k1WGWfqE6x", - "concepts": [ + "label" : "k1WGWfqE6x", + "concepts" : [ { - "label": "FakoqsVT1GlsNpY", - "type": "Concept" + "label" : "FakoqsVT1GlsNpY", + "type" : "Concept" }, { - "label": "pthDMBLQZhG54Nz", - "type": "Concept" + "label" : "pthDMBLQZhG54Nz", + "type" : "Concept" }, { - "label": "omzMOR7nUmbDY87", - "type": "Concept" + "label" : "omzMOR7nUmbDY87", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ { - "label": "Uw1LvlTE5c", - "concepts": [ + "label" : "Uw1LvlTE5c", + "concepts" : [ { - "id": "ihqr23gk", - "identifiers": [ + "id" : "ihqr23gk", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "4fR1f4tFlV", - "type": "Identifier" + "value" : "4fR1f4tFlV", + "type" : "Identifier" } ], - "label": "9tQdPt3acHhNKnN", - "type": "Genre" + "label" : "9tQdPt3acHhNKnN", + "type" : "Genre" }, { - "id": "nfnk1qv0", - "identifiers": [ + "id" : "nfnk1qv0", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "W3Gj5M4V6F", - "type": "Identifier" + "value" : "W3Gj5M4V6F", + "type" : "Identifier" } ], - "label": "bPiYMZquffyNPDg", - "type": "Concept" + "label" : "bPiYMZquffyNPDg", + "type" : "Concept" }, { - "id": "k1uu2kl5", - "identifiers": [ + "id" : "k1uu2kl5", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "MLX8biK5UW", - "type": "Identifier" + "value" : "MLX8biK5UW", + "type" : "Identifier" } ], - "label": "QXsRV8G10ObxxWE", - "type": "Concept" + "label" : "QXsRV8G10ObxxWE", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "9SVIX0fEgC", - "concepts": [ + "label" : "9SVIX0fEgC", + "concepts" : [ { - "id": "iwtb2h68", - "identifiers": [ + "id" : "iwtb2h68", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "8xazsI6am8", - "type": "Identifier" + "value" : "8xazsI6am8", + "type" : "Identifier" } ], - "label": "ssuRzRpFAch6oMg", - "type": "Genre" + "label" : "ssuRzRpFAch6oMg", + "type" : "Genre" }, { - "id": "fhynr11c", - "identifiers": [ + "id" : "fhynr11c", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "aEhJ0QNRzQ", - "type": "Identifier" + "value" : "aEhJ0QNRzQ", + "type" : "Identifier" } ], - "label": "9xxYEdUXSLHjmev", - "type": "Concept" + "label" : "9xxYEdUXSLHjmev", + "type" : "Concept" }, { - "id": "w5sj896l", - "identifiers": [ + "id" : "w5sj896l", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "4g2k9frr0x", - "type": "Identifier" + "value" : "4g2k9frr0x", + "type" : "Identifier" } ], - "label": "VoGuWXqO9eqzvro", - "type": "Concept" + "label" : "VoGuWXqO9eqzvro", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ { - "id": "a7xxlndb", - "identifiers": [ + "id" : "a7xxlndb", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "GWWFxlGgZX", - "type": "Identifier" + "value" : "GWWFxlGgZX", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/3jE.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/3jE.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "id": "ejk7jwcd", - "identifiers": [ + "id" : "ejk7jwcd", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "dG0mvvCJtU", - "type": "Identifier" + "value" : "dG0mvvCJtU", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/ds1.jpg/info.json", - "credit": "Credit line: MnIN8jLSj0", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/ds1.jpg/info.json", + "credit" : "Credit line: MnIN8jLSj0", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/OSl.jpg/info.json", - "credit": "Credit line: ZN9ToblN", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/OSl.jpg/info.json", + "credit" : "Credit line: ZN9ToblN", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ { - "note": "rYBxSAn4", - "enumeration": [ + "note" : "rYBxSAn4", + "enumeration" : [ "zRFFmVMv", "ez7JFZ7F", "x3e01Z", "12L0U9K" ], - "type": "Holdings" + "type" : "Holdings" }, { - "enumeration": [ + "enumeration" : [ "C1HRZomzs", "WpcRaAA6", "O9h5XJq", "Ym9tlQp1Q", "JoGECfaB" ], - "location": { - "locationType": { - "id": "closed-stores", - "label": "Closed stores", - "type": "LocationType" + "location" : { + "locationType" : { + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "LocationType" }, - "label": "locationLabel", - "license": { - "id": "pdm", - "label": "Public Domain Mark", - "url": "https://creativecommons.org/share-your-work/public-domain/pdm/", - "type": "License" + "label" : "locationLabel", + "license" : { + "id" : "pdm", + "label" : "Public Domain Mark", + "url" : "https://creativecommons.org/share-your-work/public-domain/pdm/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "PhysicalLocation" + "type" : "PhysicalLocation" }, - "type": "Holdings" + "type" : "Holdings" }, { - "note": "z3mr2Gbjg3", - "enumeration": [ + "note" : "z3mr2Gbjg3", + "enumeration" : [ "UHlycAdT2L", "laGIDVwG", "CtLHFeu", @@ -364,193 +364,193 @@ "bKjx1oRi6", "fEDi0YO" ], - "type": "Holdings" + "type" : "Holdings" } ], - "availabilities": [ + "availabilities" : [ { - "id": "closed-stores", - "label": "Closed stores", - "type": "Availability" + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "Availability" } ], - "production": [ + "production" : [ { - "label": "p8e8SuyMVHQTT2Iryhy1sdDDR", - "places": [ + "label" : "p8e8SuyMVHQTT2Iryhy1sdDDR", + "places" : [ { - "label": "CyKLQFKzgr", - "type": "Place" + "label" : "CyKLQFKzgr", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "o69PkIHAHM", - "type": "Person" + "label" : "o69PkIHAHM", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "2DH1A", - "type": "Period" + "label" : "2DH1A", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" }, { - "label": "Y5fj9BpOrhd8mwmov3fzhoiiC", - "places": [ + "label" : "Y5fj9BpOrhd8mwmov3fzhoiiC", + "places" : [ { - "label": "YEJhvwXauL", - "type": "Place" + "label" : "YEJhvwXauL", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "5GzybrlEoE", - "type": "Person" + "label" : "5GzybrlEoE", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "jgKFa", - "type": "Period" + "label" : "jgKFa", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ { - "id": "Dbd", - "label": "zJH1bfh", - "type": "Language" + "id" : "Dbd", + "label" : "zJH1bfh", + "type" : "Language" }, { - "id": "Kx4", - "label": "fSAq54gq", - "type": "Language" + "id" : "Kx4", + "label" : "fSAq54gq", + "type" : "Language" }, { - "id": "QEh", - "label": "QxoZn47", - "type": "Language" + "id" : "QEh", + "label" : "QxoZn47", + "type" : "Language" } ], - "notes": [ + "notes" : [ { - "contents": [ + "contents" : [ "AX01BTa4R" ], - "noteType": { - "id": "general-note", - "label": "Notes", - "type": "NoteType" + "noteType" : { + "id" : "general-note", + "label" : "Notes", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" }, { - "contents": [ + "contents" : [ "w1YfRQ9an", "5wdlW2gcpt" ], - "noteType": { - "id": "funding-info", - "label": "Funding information", - "type": "NoteType" + "noteType" : { + "id" : "funding-info", + "label" : "Funding information", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" }, { - "contents": [ + "contents" : [ "pneMkt" ], - "noteType": { - "id": "location-of-duplicates", - "label": "Location of duplicates", - "type": "NoteType" + "noteType" : { + "id" : "location-of-duplicates", + "label" : "Location of duplicates", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" } ], - "formerFrequency": [ + "formerFrequency" : [ "Published in 2001", "Published in 2002" ], - "designation": [ + "designation" : [ "Designation #1", "Designation #2", "Designation #3" ], - "images": [ + "images" : [ { - "id": "ihvpnycp", - "type": "Image" + "id" : "ihvpnycp", + "type" : "Image" }, { - "id": "rlgjqnwt", - "type": "Image" + "id" : "rlgjqnwt", + "type" : "Image" } ], - "parts": [ + "parts" : [ { - "id": "a7om88xm", - "title": "title-nN4RHJX7OP", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "a7om88xm", + "title" : "title-nN4RHJX7OP", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "partOf": [ + "partOf" : [ { - "id": "nrvdy0jg", - "title": "title-MS5Hy6x38N", - "partOf": [ + "id" : "nrvdy0jg", + "title" : "title-MS5Hy6x38N", + "partOf" : [ { - "id": "0cs6cerb", - "title": "title-b1iZslIT5y", - "totalParts": 1, - "totalDescendentParts": 5, - "type": "Work" + "id" : "0cs6cerb", + "title" : "title-b1iZslIT5y", + "totalParts" : 1, + "totalDescendentParts" : 5, + "type" : "Work" } ], - "totalParts": 3, - "totalDescendentParts": 4, - "type": "Work" + "totalParts" : 3, + "totalDescendentParts" : 4, + "type" : "Work" } ], - "precededBy": [ + "precededBy" : [ { - "id": "1gnd7b0m", - "title": "title-tnetMtnM6n", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "1gnd7b0m", + "title" : "title-tnetMtnM6n", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "succeededBy": [ + "succeededBy" : [ { - "id": "uxg4ed5m", - "title": "title-Ia7Ze4ZWUM", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "uxg4ed5m", + "title" : "title-Ia7Ze4ZWUM", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "person-eKZIqbV783", "person-9SMhIH" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "9tQdPt3acHhNKnN", "bPiYMZquffyNPDg", "QXsRV8G10ObxxWE", @@ -558,48 +558,48 @@ "9xxYEdUXSLHjmev", "VoGuWXqO9eqzvro" ], - "id": "tmdfbk5k", - "sourceIdentifier.value": "Aic5qOhRoS", - "identifiers.value": [ + "id" : "tmdfbk5k", + "sourceIdentifier.value" : "Aic5qOhRoS", + "identifiers.value" : [ "Aic5qOhRoS", "UfcQYSxE7g" ], - "images.id": [ + "images.id" : [ "ihvpnycp", "rlgjqnwt" ], - "images.identifiers.value": [ + "images.identifiers.value" : [ "7AFPJNgpli", "N8dAz61bAE" ], - "items.id": [ + "items.id" : [ "a7xxlndb", "ejk7jwcd" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "GWWFxlGgZX", "dG0mvvCJtU" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "zJH1bfh", "fSAq54gq", "QxoZn47" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ "AX01BTa4R", "w1YfRQ9an", "pneMkt", "5wdlW2gcpt" ], - "partOf.title": [ + "partOf.title" : [ "title-b1iZslIT5y", "title-MS5Hy6x38N" ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "CyKLQFKzgr", "o69PkIHAHM", "2DH1A", @@ -607,8 +607,8 @@ "5GzybrlEoE", "jgKFa" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "goKOwWLrIbnrzZj", "i3JH82kKuArEtlV", "dV0jg08I834KKSX", @@ -616,113 +616,152 @@ "pthDMBLQZhG54Nz", "omzMOR7nUmbDY87" ], - "title": "A work with all the include-able fields" + "title" : "A work with all the include-able fields" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Uw1LvlTE5c\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"9SVIX0fEgC\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "ihqr23gk", + "label" : "Uw1LvlTE5c" + }, + { + "id" : "iwtb2h68", + "label" : "9SVIX0fEgC" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"RGOo9Fg6ic\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"k1WGWfqE6x\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "RGOo9Fg6ic", + "label" : "RGOo9Fg6ic" + }, + { + "id" : "k1WGWfqE6x", + "label" : "k1WGWfqE6x" + } ], - "languages": [ - "{\"id\":\"Dbd\",\"label\":\"zJH1bfh\",\"type\":\"Language\"}", - "{\"id\":\"Kx4\",\"label\":\"fSAq54gq\",\"type\":\"Language\"}", - "{\"id\":\"QEh\",\"label\":\"QxoZn47\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "Dbd", + "label" : "zJH1bfh" + }, + { + "id" : "Kx4", + "label" : "fSAq54gq" + }, + { + "id" : "QEh", + "label" : "QxoZn47" + } ], - "contributors.agent.label": [ - "{\"label\":\"person-eKZIqbV783\",\"type\":\"Person\"}", - "{\"label\":\"person-9SMhIH\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "person-eKZIqbV783", + "label" : "person-eKZIqbV783" + }, + { + "id" : "person-9SMhIH", + "label" : "person-9SMhIH" + } ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ - "{\"id\":\"closed-stores\",\"label\":\"Closed stores\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "closed-stores", + "label" : "Closed stores" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "Dbd", "Kx4", "QEh" ], - "genres.label": [ + "genres.label" : [ "Uw1LvlTE5c", "9SVIX0fEgC" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "ihqr23gk", "iwtb2h68" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "4fR1f4tFlV", "8xazsI6am8" ], - "subjects.label": [ + "subjects.label" : [ "RGOo9Fg6ic", "k1WGWfqE6x" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "person-eKZIqbV783", "person-9SMhIH" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Aic5qOhRoS", "UfcQYSxE7g" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by", "cc-by", "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "a7xxlndb", "ejk7jwcd" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "GWWFxlGgZX", "dG0mvvCJtU" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation", "iiif-presentation", "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ "0cs6cerb", "nrvdy0jg" ], - "partOf.title": [ + "partOf.title" : [ "title-b1iZslIT5y", "title-MS5Hy6x38N" ], - "availabilities.id": [ + "availabilities.id" : [ "closed-stores" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.visible.everything.1.json b/common/search/src/test/resources/test_documents/work.visible.everything.1.json index a28a404c7..06d939317 100644 --- a/common/search/src/test/resources/test_documents/work.visible.everything.1.json +++ b/common/search/src/test/resources/test_documents/work.visible.everything.1.json @@ -1,322 +1,322 @@ { - "description": "a list of work with all the include-able fields", - "createdAt": "2024-11-13T08:43:26.426204Z", - "id": "dhzcyeul", - "document": { - "debug": { - "source": { - "id": "dhzcyeul", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a list of work with all the include-able fields", + "createdAt" : "2024-11-25T15:15:12.285355Z", + "id" : "dhzcyeul", + "document" : { + "debug" : { + "source" : { + "id" : "dhzcyeul", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "LMVvWxgXRS" + "ontologyType" : "Work", + "value" : "LMVvWxgXRS" }, - "version": 85, - "modifiedTime": "1954-10-07T06:00:15Z" + "version" : 85, + "modifiedTime" : "1954-10-07T06:00:15Z" }, - "mergedTime": "1954-10-07T06:00:15Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1954-10-07T06:00:15Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "dhzcyeul", - "title": "A work with all the include-able fields", - "alternativeTitles": [ + "display" : { + "id" : "dhzcyeul", + "title" : "A work with all the include-able fields", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "person-RLIsn6KqXf", - "type": "Person" + "agent" : { + "label" : "person-RLIsn6KqXf", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "person-MBn6NMM", - "type": "Person" + "agent" : { + "label" : "person-MBn6NMM", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "LMVvWxgXRS", - "type": "Identifier" + "value" : "LMVvWxgXRS", + "type" : "Identifier" }, { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "mD7jxioppl", - "type": "Identifier" + "value" : "mD7jxioppl", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "RbppKZMbAm", - "concepts": [ + "label" : "RbppKZMbAm", + "concepts" : [ { - "label": "0vPSF4EIy1m22EM", - "type": "Concept" + "label" : "0vPSF4EIy1m22EM", + "type" : "Concept" }, { - "label": "kmWOjlKvfRGKp22", - "type": "Concept" + "label" : "kmWOjlKvfRGKp22", + "type" : "Concept" }, { - "label": "pTPNg1Fb7hLZCWP", - "type": "Concept" + "label" : "pTPNg1Fb7hLZCWP", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" }, { - "label": "2ToHCa1Sqa", - "concepts": [ + "label" : "2ToHCa1Sqa", + "concepts" : [ { - "label": "QCD06AWAxFOW2wB", - "type": "Concept" + "label" : "QCD06AWAxFOW2wB", + "type" : "Concept" }, { - "label": "gqY0L1ZF1PYZIWO", - "type": "Concept" + "label" : "gqY0L1ZF1PYZIWO", + "type" : "Concept" }, { - "label": "P5xioqrw7OhiAUB", - "type": "Concept" + "label" : "P5xioqrw7OhiAUB", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ { - "label": "gzynPVyy1B", - "concepts": [ + "label" : "gzynPVyy1B", + "concepts" : [ { - "id": "moiqjbe6", - "identifiers": [ + "id" : "moiqjbe6", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "ZvMlY5yFST", - "type": "Identifier" + "value" : "ZvMlY5yFST", + "type" : "Identifier" } ], - "label": "G99aHcLRRBkyn24", - "type": "Genre" + "label" : "G99aHcLRRBkyn24", + "type" : "Genre" }, { - "id": "4hzy1cko", - "identifiers": [ + "id" : "4hzy1cko", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Lu2Xsatm0d", - "type": "Identifier" + "value" : "Lu2Xsatm0d", + "type" : "Identifier" } ], - "label": "WGXrGHlOd9kGPDW", - "type": "Concept" + "label" : "WGXrGHlOd9kGPDW", + "type" : "Concept" }, { - "id": "l6xajdgf", - "identifiers": [ + "id" : "l6xajdgf", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "f8JXFRL51H", - "type": "Identifier" + "value" : "f8JXFRL51H", + "type" : "Identifier" } ], - "label": "Zw7o2IL5cpTq2sz", - "type": "Concept" + "label" : "Zw7o2IL5cpTq2sz", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "aiqMvPe7X4", - "concepts": [ + "label" : "aiqMvPe7X4", + "concepts" : [ { - "id": "srn7yleu", - "identifiers": [ + "id" : "srn7yleu", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "97NLnSGT3O", - "type": "Identifier" + "value" : "97NLnSGT3O", + "type" : "Identifier" } ], - "label": "JLAgnoMEDJADyhg", - "type": "Genre" + "label" : "JLAgnoMEDJADyhg", + "type" : "Genre" }, { - "id": "oiribbou", - "identifiers": [ + "id" : "oiribbou", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "PAydChzshi", - "type": "Identifier" + "value" : "PAydChzshi", + "type" : "Identifier" } ], - "label": "DMpITHk4Fal6yyc", - "type": "Concept" + "label" : "DMpITHk4Fal6yyc", + "type" : "Concept" }, { - "id": "6cux209o", - "identifiers": [ + "id" : "6cux209o", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Pv8CsB8YxC", - "type": "Identifier" + "value" : "Pv8CsB8YxC", + "type" : "Identifier" } ], - "label": "7GkIFx8vXQyPLHO", - "type": "Concept" + "label" : "7GkIFx8vXQyPLHO", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ { - "id": "sr0le4q0", - "identifiers": [ + "id" : "sr0le4q0", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "HYZ1N6BwQR", - "type": "Identifier" + "value" : "HYZ1N6BwQR", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/6Hv.jpg/info.json", - "credit": "Credit line: RuVcAaaC", - "linkText": "Link text: 11Rp8W", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/6Hv.jpg/info.json", + "credit" : "Credit line: RuVcAaaC", + "linkText" : "Link text: 11Rp8W", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "id": "1wiqu97x", - "identifiers": [ + "id" : "1wiqu97x", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "fYVwu7Y7Y7", - "type": "Identifier" + "value" : "fYVwu7Y7Y7", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/K6C.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/K6C.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Up2.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Up2.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ { - "enumeration": [ + "enumeration" : [ "1BxLTcV6Wb", "WqoNZK", "xU3ERjrH", @@ -328,11 +328,11 @@ "FZmdTEa6", "UlrveN" ], - "type": "Holdings" + "type" : "Holdings" }, { - "note": "idk7LBY", - "enumeration": [ + "note" : "idk7LBY", + "enumeration" : [ "G0xMucB", "DkJGLGn", "8mfcQf", @@ -343,10 +343,10 @@ "7FN4wzU", "mSjqoeX" ], - "type": "Holdings" + "type" : "Holdings" }, { - "enumeration": [ + "enumeration" : [ "37zKdSgd", "TKdzCFovRO", "4WLHpAvI", @@ -354,188 +354,188 @@ "k4GLtR", "vuraPvkrZ" ], - "type": "Holdings" + "type" : "Holdings" } ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "u9wn3b70uQnR7JVa4h6zo4kiw", - "places": [ + "label" : "u9wn3b70uQnR7JVa4h6zo4kiw", + "places" : [ { - "label": "lz0oyrQVeB", - "type": "Place" + "label" : "lz0oyrQVeB", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "Y8dO1DZyoO", - "type": "Person" + "label" : "Y8dO1DZyoO", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "9NU3A", - "type": "Period" + "label" : "9NU3A", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" }, { - "label": "o80nLAWSy9B3e17RLNSLFMReQ", - "places": [ + "label" : "o80nLAWSy9B3e17RLNSLFMReQ", + "places" : [ { - "label": "prYosMnVGM", - "type": "Place" + "label" : "prYosMnVGM", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "JB4CuJFro7", - "type": "Person" + "label" : "JB4CuJFro7", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "SCKOJ", - "type": "Period" + "label" : "SCKOJ", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ { - "id": "LAJ", - "label": "BGyGwVoRP", - "type": "Language" + "id" : "LAJ", + "label" : "BGyGwVoRP", + "type" : "Language" }, { - "id": "6Il", - "label": "5rHofWvU", - "type": "Language" + "id" : "6Il", + "label" : "5rHofWvU", + "type" : "Language" }, { - "id": "NX2", - "label": "BmQh5YW", - "type": "Language" + "id" : "NX2", + "label" : "BmQh5YW", + "type" : "Language" } ], - "notes": [ + "notes" : [ { - "contents": [ + "contents" : [ "PxyMQW" ], - "noteType": { - "id": "location-of-duplicates", - "label": "Location of duplicates", - "type": "NoteType" + "noteType" : { + "id" : "location-of-duplicates", + "label" : "Location of duplicates", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" }, { - "contents": [ + "contents" : [ "lsrFBR8QS", "soceYh" ], - "noteType": { - "id": "funding-info", - "label": "Funding information", - "type": "NoteType" + "noteType" : { + "id" : "funding-info", + "label" : "Funding information", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" }, { - "contents": [ + "contents" : [ "BD4V4eC" ], - "noteType": { - "id": "general-note", - "label": "Notes", - "type": "NoteType" + "noteType" : { + "id" : "general-note", + "label" : "Notes", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" } ], - "formerFrequency": [ + "formerFrequency" : [ "Published in 2001", "Published in 2002" ], - "designation": [ + "designation" : [ "Designation #1", "Designation #2", "Designation #3" ], - "images": [ + "images" : [ { - "id": "9shcs9eq", - "type": "Image" + "id" : "9shcs9eq", + "type" : "Image" }, { - "id": "ogxkz2rm", - "type": "Image" + "id" : "ogxkz2rm", + "type" : "Image" } ], - "parts": [ + "parts" : [ { - "id": "maixrifi", - "title": "title-3dXkoMXh3J", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "maixrifi", + "title" : "title-3dXkoMXh3J", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "partOf": [ + "partOf" : [ { - "id": "epka3wv3", - "title": "title-tkdF7IF8nj", - "partOf": [ + "id" : "epka3wv3", + "title" : "title-tkdF7IF8nj", + "partOf" : [ { - "id": "wa2m1xn6", - "title": "title-4ssR420Vc5", - "totalParts": 1, - "totalDescendentParts": 5, - "type": "Work" + "id" : "wa2m1xn6", + "title" : "title-4ssR420Vc5", + "totalParts" : 1, + "totalDescendentParts" : 5, + "type" : "Work" } ], - "totalParts": 3, - "totalDescendentParts": 4, - "type": "Work" + "totalParts" : 3, + "totalDescendentParts" : 4, + "type" : "Work" } ], - "precededBy": [ + "precededBy" : [ { - "id": "5xcjfcic", - "title": "title-GMGKNlQnlw", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "5xcjfcic", + "title" : "title-GMGKNlQnlw", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "succeededBy": [ + "succeededBy" : [ { - "id": "i3vagkxa", - "title": "title-eG0HzUX6yZ", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "i3vagkxa", + "title" : "title-eG0HzUX6yZ", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "person-RLIsn6KqXf", "person-MBn6NMM" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "G99aHcLRRBkyn24", "WGXrGHlOd9kGPDW", "Zw7o2IL5cpTq2sz", @@ -543,48 +543,48 @@ "DMpITHk4Fal6yyc", "7GkIFx8vXQyPLHO" ], - "id": "dhzcyeul", - "sourceIdentifier.value": "LMVvWxgXRS", - "identifiers.value": [ + "id" : "dhzcyeul", + "sourceIdentifier.value" : "LMVvWxgXRS", + "identifiers.value" : [ "LMVvWxgXRS", "mD7jxioppl" ], - "images.id": [ + "images.id" : [ "9shcs9eq", "ogxkz2rm" ], - "images.identifiers.value": [ + "images.identifiers.value" : [ "CqOHUtD46Q", "RLuAZLda0D" ], - "items.id": [ + "items.id" : [ "sr0le4q0", "1wiqu97x" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "HYZ1N6BwQR", "fYVwu7Y7Y7" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "BGyGwVoRP", "5rHofWvU", "BmQh5YW" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ "PxyMQW", "lsrFBR8QS", "BD4V4eC", "soceYh" ], - "partOf.title": [ + "partOf.title" : [ "title-4ssR420Vc5", "title-tkdF7IF8nj" ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "lz0oyrQVeB", "Y8dO1DZyoO", "9NU3A", @@ -592,8 +592,8 @@ "JB4CuJFro7", "SCKOJ" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "0vPSF4EIy1m22EM", "kmWOjlKvfRGKp22", "pTPNg1Fb7hLZCWP", @@ -601,111 +601,147 @@ "gqY0L1ZF1PYZIWO", "P5xioqrw7OhiAUB" ], - "title": "A work with all the include-able fields" + "title" : "A work with all the include-able fields" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"gzynPVyy1B\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"aiqMvPe7X4\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "moiqjbe6", + "label" : "gzynPVyy1B" + }, + { + "id" : "srn7yleu", + "label" : "aiqMvPe7X4" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"RbppKZMbAm\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"2ToHCa1Sqa\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "RbppKZMbAm", + "label" : "RbppKZMbAm" + }, + { + "id" : "2ToHCa1Sqa", + "label" : "2ToHCa1Sqa" + } ], - "languages": [ - "{\"id\":\"LAJ\",\"label\":\"BGyGwVoRP\",\"type\":\"Language\"}", - "{\"id\":\"6Il\",\"label\":\"5rHofWvU\",\"type\":\"Language\"}", - "{\"id\":\"NX2\",\"label\":\"BmQh5YW\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "LAJ", + "label" : "BGyGwVoRP" + }, + { + "id" : "6Il", + "label" : "5rHofWvU" + }, + { + "id" : "NX2", + "label" : "BmQh5YW" + } ], - "contributors.agent.label": [ - "{\"label\":\"person-RLIsn6KqXf\",\"type\":\"Person\"}", - "{\"label\":\"person-MBn6NMM\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "person-RLIsn6KqXf", + "label" : "person-RLIsn6KqXf" + }, + { + "id" : "person-MBn6NMM", + "label" : "person-MBn6NMM" + } ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "LAJ", "6Il", "NX2" ], - "genres.label": [ + "genres.label" : [ "gzynPVyy1B", "aiqMvPe7X4" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "moiqjbe6", "srn7yleu" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "ZvMlY5yFST", "97NLnSGT3O" ], - "subjects.label": [ + "subjects.label" : [ "RbppKZMbAm", "2ToHCa1Sqa" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "person-RLIsn6KqXf", "person-MBn6NMM" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "LMVvWxgXRS", "mD7jxioppl" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by", "cc-by", "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "sr0le4q0", "1wiqu97x" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "HYZ1N6BwQR", "fYVwu7Y7Y7" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation", "iiif-presentation", "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ "wa2m1xn6", "epka3wv3" ], - "partOf.title": [ + "partOf.title" : [ "title-4ssR420Vc5", "title-tkdF7IF8nj" ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/work.visible.everything.2.json b/common/search/src/test/resources/test_documents/work.visible.everything.2.json index 84d2f6ada..d5065cd1e 100644 --- a/common/search/src/test/resources/test_documents/work.visible.everything.2.json +++ b/common/search/src/test/resources/test_documents/work.visible.everything.2.json @@ -1,325 +1,325 @@ { - "description": "a list of work with all the include-able fields", - "createdAt": "2024-11-13T08:43:26.428912Z", - "id": "kspmagtl", - "document": { - "debug": { - "source": { - "id": "kspmagtl", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a list of work with all the include-able fields", + "createdAt" : "2024-11-25T15:15:12.287236Z", + "id" : "kspmagtl", + "document" : { + "debug" : { + "source" : { + "id" : "kspmagtl", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "bWRaGNi2Hd" + "ontologyType" : "Work", + "value" : "bWRaGNi2Hd" }, - "version": 63, - "modifiedTime": "2040-10-31T18:04:56Z" + "version" : 63, + "modifiedTime" : "2040-10-31T18:04:56Z" }, - "mergedTime": "2040-10-31T18:04:56Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2040-10-31T18:04:56Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "kspmagtl", - "title": "A work with all the include-able fields", - "alternativeTitles": [ + "display" : { + "id" : "kspmagtl", + "title" : "A work with all the include-able fields", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "person-h9jhXW", - "type": "Person" + "agent" : { + "label" : "person-h9jhXW", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "person-QdWhUu", - "type": "Person" + "agent" : { + "label" : "person-QdWhUu", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "bWRaGNi2Hd", - "type": "Identifier" + "value" : "bWRaGNi2Hd", + "type" : "Identifier" }, { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "Hq3k05Fqag", - "type": "Identifier" + "value" : "Hq3k05Fqag", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "Uauios0IzD", - "concepts": [ + "label" : "Uauios0IzD", + "concepts" : [ { - "label": "AQA5geMZT0FFS0z", - "type": "Concept" + "label" : "AQA5geMZT0FFS0z", + "type" : "Concept" }, { - "label": "AAZGNVldxfQFhVc", - "type": "Concept" + "label" : "AAZGNVldxfQFhVc", + "type" : "Concept" }, { - "label": "tBFwsNPAX3Wg9bz", - "type": "Concept" + "label" : "tBFwsNPAX3Wg9bz", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" }, { - "label": "6n2QtjPUbf", - "concepts": [ + "label" : "6n2QtjPUbf", + "concepts" : [ { - "label": "ZXARrSCGUFES8H2", - "type": "Concept" + "label" : "ZXARrSCGUFES8H2", + "type" : "Concept" }, { - "label": "bLQeClXtepg6BQO", - "type": "Concept" + "label" : "bLQeClXtepg6BQO", + "type" : "Concept" }, { - "label": "O1Lux1bNFDaOKTs", - "type": "Concept" + "label" : "O1Lux1bNFDaOKTs", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ { - "label": "DKbwserVib", - "concepts": [ + "label" : "DKbwserVib", + "concepts" : [ { - "id": "co3t5a2c", - "identifiers": [ + "id" : "co3t5a2c", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "KLw3A3d2Sg", - "type": "Identifier" + "value" : "KLw3A3d2Sg", + "type" : "Identifier" } ], - "label": "tekEl0aPDS91lOa", - "type": "Genre" + "label" : "tekEl0aPDS91lOa", + "type" : "Genre" }, { - "id": "hovzih7d", - "identifiers": [ + "id" : "hovzih7d", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "9vtTXh5eC6", - "type": "Identifier" + "value" : "9vtTXh5eC6", + "type" : "Identifier" } ], - "label": "uUdynba2c8ykXyK", - "type": "Concept" + "label" : "uUdynba2c8ykXyK", + "type" : "Concept" }, { - "id": "hhpppssc", - "identifiers": [ + "id" : "hhpppssc", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "Jxv9xrQ6Lp", - "type": "Identifier" + "value" : "Jxv9xrQ6Lp", + "type" : "Identifier" } ], - "label": "oBEHnJZViPXHQHS", - "type": "Concept" + "label" : "oBEHnJZViPXHQHS", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "6uOUAue10N", - "concepts": [ + "label" : "6uOUAue10N", + "concepts" : [ { - "id": "vp7gvran", - "identifiers": [ + "id" : "vp7gvran", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "okW4LcPBC1", - "type": "Identifier" + "value" : "okW4LcPBC1", + "type" : "Identifier" } ], - "label": "RE2canCURCTNo7c", - "type": "Genre" + "label" : "RE2canCURCTNo7c", + "type" : "Genre" }, { - "id": "sheurc7f", - "identifiers": [ + "id" : "sheurc7f", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "Qgjny3fstP", - "type": "Identifier" + "value" : "Qgjny3fstP", + "type" : "Identifier" } ], - "label": "yjsJNyP6az68MBx", - "type": "Concept" + "label" : "yjsJNyP6az68MBx", + "type" : "Concept" }, { - "id": "heqgsnmx", - "identifiers": [ + "id" : "heqgsnmx", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "mrWJ5F5H7y", - "type": "Identifier" + "value" : "mrWJ5F5H7y", + "type" : "Identifier" } ], - "label": "vD5wGC18lSi8qtT", - "type": "Concept" + "label" : "vD5wGC18lSi8qtT", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ { - "id": "9indplmm", - "identifiers": [ + "id" : "9indplmm", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "KUpoh3lSc6", - "type": "Identifier" + "value" : "KUpoh3lSc6", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Xmb.jpg/info.json", - "linkText": "Link text: xc5d7pC4", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Xmb.jpg/info.json", + "linkText" : "Link text: xc5d7pC4", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "id": "b7xfovxp", - "identifiers": [ + "id" : "b7xfovxp", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "da6nNHPpdW", - "type": "Identifier" + "value" : "da6nNHPpdW", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/brm.jpg/info.json", - "linkText": "Link text: dfIBgxk", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/brm.jpg/info.json", + "linkText" : "Link text: dfIBgxk", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/4jA.jpg/info.json", - "credit": "Credit line: RMKkkMWH2", - "linkText": "Link text: lrGWJtd", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/4jA.jpg/info.json", + "credit" : "Credit line: RMKkkMWH2", + "linkText" : "Link text: lrGWJtd", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ { - "note": "MVhaLIuxnE", - "enumeration": [ + "note" : "MVhaLIuxnE", + "enumeration" : [ "ieDDRLFu", "yZOrDf50Hq", "LqcxXMND", @@ -330,19 +330,19 @@ "EN5U1Lj", "3YYXiwayO" ], - "type": "Holdings" + "type" : "Holdings" }, { - "note": "qavjz8rXQ", - "enumeration": [ + "note" : "qavjz8rXQ", + "enumeration" : [ "ESu6j0cajz", "IwEsWu", "kQm30wp" ], - "type": "Holdings" + "type" : "Holdings" }, { - "enumeration": [ + "enumeration" : [ "8y3h9IEu", "L1QHuLHN", "3UU0BuJ", @@ -352,188 +352,188 @@ "u9fWqc", "mcETEt4h" ], - "type": "Holdings" + "type" : "Holdings" } ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "4DIByCcllibcScRo1F5OxZThZ", - "places": [ + "label" : "4DIByCcllibcScRo1F5OxZThZ", + "places" : [ { - "label": "Zrd6sRqVgE", - "type": "Place" + "label" : "Zrd6sRqVgE", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "XdJnvNoiuf", - "type": "Person" + "label" : "XdJnvNoiuf", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "cLjO4", - "type": "Period" + "label" : "cLjO4", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" }, { - "label": "DmwtJxhAIELEnBrWrk5FvZCEK", - "places": [ + "label" : "DmwtJxhAIELEnBrWrk5FvZCEK", + "places" : [ { - "label": "kIZfsAkPwu", - "type": "Place" + "label" : "kIZfsAkPwu", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "nmldw7s12i", - "type": "Person" + "label" : "nmldw7s12i", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "KWNuy", - "type": "Period" + "label" : "KWNuy", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ { - "id": "BRh", - "label": "E6F0oBW", - "type": "Language" + "id" : "BRh", + "label" : "E6F0oBW", + "type" : "Language" }, { - "id": "52j", - "label": "TlqNXqK", - "type": "Language" + "id" : "52j", + "label" : "TlqNXqK", + "type" : "Language" }, { - "id": "K4Q", - "label": "hldbPB44o8", - "type": "Language" + "id" : "K4Q", + "label" : "hldbPB44o8", + "type" : "Language" } ], - "notes": [ + "notes" : [ { - "contents": [ + "contents" : [ "1009JS", "Gxz9bfcN5B" ], - "noteType": { - "id": "location-of-duplicates", - "label": "Location of duplicates", - "type": "NoteType" + "noteType" : { + "id" : "location-of-duplicates", + "label" : "Location of duplicates", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" }, { - "contents": [ + "contents" : [ "bf5YSWx" ], - "noteType": { - "id": "funding-info", - "label": "Funding information", - "type": "NoteType" + "noteType" : { + "id" : "funding-info", + "label" : "Funding information", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" }, { - "contents": [ + "contents" : [ "KatsdMX" ], - "noteType": { - "id": "general-note", - "label": "Notes", - "type": "NoteType" + "noteType" : { + "id" : "general-note", + "label" : "Notes", + "type" : "NoteType" }, - "type": "Note" + "type" : "Note" } ], - "formerFrequency": [ + "formerFrequency" : [ "Published in 2001", "Published in 2002" ], - "designation": [ + "designation" : [ "Designation #1", "Designation #2", "Designation #3" ], - "images": [ + "images" : [ { - "id": "6fuh8tqe", - "type": "Image" + "id" : "6fuh8tqe", + "type" : "Image" }, { - "id": "ej3tqgsk", - "type": "Image" + "id" : "ej3tqgsk", + "type" : "Image" } ], - "parts": [ + "parts" : [ { - "id": "srubvzw4", - "title": "title-QmyoWabAgX", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "srubvzw4", + "title" : "title-QmyoWabAgX", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "partOf": [ + "partOf" : [ { - "id": "vjvef8bd", - "title": "title-e1K5osW8hK", - "partOf": [ + "id" : "vjvef8bd", + "title" : "title-e1K5osW8hK", + "partOf" : [ { - "id": "ajgcgp8j", - "title": "title-ZZ4OU9Z1es", - "totalParts": 1, - "totalDescendentParts": 5, - "type": "Work" + "id" : "ajgcgp8j", + "title" : "title-ZZ4OU9Z1es", + "totalParts" : 1, + "totalDescendentParts" : 5, + "type" : "Work" } ], - "totalParts": 3, - "totalDescendentParts": 4, - "type": "Work" + "totalParts" : 3, + "totalDescendentParts" : 4, + "type" : "Work" } ], - "precededBy": [ + "precededBy" : [ { - "id": "t4fspoh5", - "title": "title-lAUKxcPeEW", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "t4fspoh5", + "title" : "title-lAUKxcPeEW", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "succeededBy": [ + "succeededBy" : [ { - "id": "fdoa7rpy", - "title": "title-iDfifsBwXA", - "totalParts": 0, - "totalDescendentParts": 0, - "type": "Work" + "id" : "fdoa7rpy", + "title" : "title-iDfifsBwXA", + "totalParts" : 0, + "totalDescendentParts" : 0, + "type" : "Work" } ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "person-h9jhXW", "person-QdWhUu" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "tekEl0aPDS91lOa", "uUdynba2c8ykXyK", "oBEHnJZViPXHQHS", @@ -541,48 +541,48 @@ "yjsJNyP6az68MBx", "vD5wGC18lSi8qtT" ], - "id": "kspmagtl", - "sourceIdentifier.value": "bWRaGNi2Hd", - "identifiers.value": [ + "id" : "kspmagtl", + "sourceIdentifier.value" : "bWRaGNi2Hd", + "identifiers.value" : [ "bWRaGNi2Hd", "Hq3k05Fqag" ], - "images.id": [ + "images.id" : [ "6fuh8tqe", "ej3tqgsk" ], - "images.identifiers.value": [ + "images.identifiers.value" : [ "1RAcTOrmRe", "AsAu4Ye9KY" ], - "items.id": [ + "items.id" : [ "9indplmm", "b7xfovxp" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "KUpoh3lSc6", "da6nNHPpdW" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "E6F0oBW", "TlqNXqK", "hldbPB44o8" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ "1009JS", "bf5YSWx", "KatsdMX", "Gxz9bfcN5B" ], - "partOf.title": [ + "partOf.title" : [ "title-ZZ4OU9Z1es", "title-e1K5osW8hK" ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "Zrd6sRqVgE", "XdJnvNoiuf", "cLjO4", @@ -590,8 +590,8 @@ "nmldw7s12i", "KWNuy" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "AQA5geMZT0FFS0z", "AAZGNVldxfQFhVc", "tBFwsNPAX3Wg9bz", @@ -599,111 +599,147 @@ "bLQeClXtepg6BQO", "O1Lux1bNFDaOKTs" ], - "title": "A work with all the include-able fields" + "title" : "A work with all the include-able fields" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"DKbwserVib\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"6uOUAue10N\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "co3t5a2c", + "label" : "DKbwserVib" + }, + { + "id" : "vp7gvran", + "label" : "6uOUAue10N" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"Uauios0IzD\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"6n2QtjPUbf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "Uauios0IzD", + "label" : "Uauios0IzD" + }, + { + "id" : "6n2QtjPUbf", + "label" : "6n2QtjPUbf" + } ], - "languages": [ - "{\"id\":\"BRh\",\"label\":\"E6F0oBW\",\"type\":\"Language\"}", - "{\"id\":\"52j\",\"label\":\"TlqNXqK\",\"type\":\"Language\"}", - "{\"id\":\"K4Q\",\"label\":\"hldbPB44o8\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "BRh", + "label" : "E6F0oBW" + }, + { + "id" : "52j", + "label" : "TlqNXqK" + }, + { + "id" : "K4Q", + "label" : "hldbPB44o8" + } ], - "contributors.agent.label": [ - "{\"label\":\"person-h9jhXW\",\"type\":\"Person\"}", - "{\"label\":\"person-QdWhUu\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "person-h9jhXW", + "label" : "person-h9jhXW" + }, + { + "id" : "person-QdWhUu", + "label" : "person-QdWhUu" + } ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "BRh", "52j", "K4Q" ], - "genres.label": [ + "genres.label" : [ "DKbwserVib", "6uOUAue10N" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "co3t5a2c", "vp7gvran" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "KLw3A3d2Sg", "okW4LcPBC1" ], - "subjects.label": [ + "subjects.label" : [ "Uauios0IzD", "6n2QtjPUbf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "person-h9jhXW", "person-QdWhUu" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "bWRaGNi2Hd", "Hq3k05Fqag" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by", "cc-by", "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "9indplmm", "b7xfovxp" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "KUpoh3lSc6", "da6nNHPpdW" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation", "iiif-presentation", "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ "ajgcgp8j", "vjvef8bd" ], - "partOf.title": [ + "partOf.title" : [ "title-ZZ4OU9Z1es", "title-e1K5osW8hK" ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.collection-path.NUFFINK.json b/common/search/src/test/resources/test_documents/works.collection-path.NUFFINK.json index e5ca4ab77..f11a7b991 100644 --- a/common/search/src/test/resources/test_documents/works.collection-path.NUFFINK.json +++ b/common/search/src/test/resources/test_documents/works.collection-path.NUFFINK.json @@ -1,182 +1,182 @@ { - "description": "a work with a collection path", - "createdAt": "2024-11-13T08:43:26.525864Z", - "id": "xngls6zs", - "document": { - "debug": { - "source": { - "id": "xngls6zs", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "a work with a collection path", + "createdAt" : "2024-11-25T15:15:12.374703Z", + "id" : "xngls6zs", + "document" : { + "debug" : { + "source" : { + "id" : "xngls6zs", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "cZctCb44q4" + "ontologyType" : "Work", + "value" : "cZctCb44q4" }, - "version": 33, - "modifiedTime": "2068-10-10T17:34:06Z" + "version" : 33, + "modifiedTime" : "2068-10-10T17:34:06Z" }, - "mergedTime": "2068-10-10T17:34:06Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2068-10-10T17:34:06Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "xngls6zs", - "title": "title-b24fkr6m6L", - "alternativeTitles": [ + "display" : { + "id" : "xngls6zs", + "title" : "title-b24fkr6m6L", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "cZctCb44q4", - "type": "Identifier" + "value" : "cZctCb44q4", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": "NUF/FINK", - "collectionPath.path": "NUFFINK", - "alternativeTitles": [ + "query" : { + "collectionPath.label" : "NUF/FINK", + "collectionPath.path" : "NUFFINK", + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "xngls6zs", - "sourceIdentifier.value": "cZctCb44q4", - "identifiers.value": [ + "id" : "xngls6zs", + "sourceIdentifier.value" : "cZctCb44q4", + "identifiers.value" : [ "cZctCb44q4" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-b24fkr6m6L" + "title" : "title-b24fkr6m6L" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "cZctCb44q4" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.collection-path.PPCRI.json b/common/search/src/test/resources/test_documents/works.collection-path.PPCRI.json index 34426efb5..6a4a7ebca 100644 --- a/common/search/src/test/resources/test_documents/works.collection-path.PPCRI.json +++ b/common/search/src/test/resources/test_documents/works.collection-path.PPCRI.json @@ -1,182 +1,182 @@ { - "description": "a work with a collection path", - "createdAt": "2024-11-13T08:43:26.524477Z", - "id": "ynrhjtvf", - "document": { - "debug": { - "source": { - "id": "ynrhjtvf", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "a work with a collection path", + "createdAt" : "2024-11-25T15:15:12.373247Z", + "id" : "ynrhjtvf", + "document" : { + "debug" : { + "source" : { + "id" : "ynrhjtvf", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "883LiigJ4Q" + "ontologyType" : "Work", + "value" : "883LiigJ4Q" }, - "version": 72, - "modifiedTime": "2059-06-02T08:31:27Z" + "version" : 72, + "modifiedTime" : "2059-06-02T08:31:27Z" }, - "mergedTime": "2059-06-02T08:31:27Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2059-06-02T08:31:27Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ynrhjtvf", - "title": "title-rHY8gLbwdH", - "alternativeTitles": [ + "display" : { + "id" : "ynrhjtvf", + "title" : "title-rHY8gLbwdH", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "883LiigJ4Q", - "type": "Identifier" + "value" : "883LiigJ4Q", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": "PP/CRI", - "collectionPath.path": "PPCRI", - "alternativeTitles": [ + "query" : { + "collectionPath.label" : "PP/CRI", + "collectionPath.path" : "PPCRI", + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ynrhjtvf", - "sourceIdentifier.value": "883LiigJ4Q", - "identifiers.value": [ + "id" : "ynrhjtvf", + "sourceIdentifier.value" : "883LiigJ4Q", + "identifiers.value" : [ "883LiigJ4Q" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-rHY8gLbwdH" + "title" : "title-rHY8gLbwdH" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "883LiigJ4Q" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.contributor.0.json b/common/search/src/test/resources/test_documents/works.contributor.0.json index b620babb6..ee86d89b7 100644 --- a/common/search/src/test/resources/test_documents/works.contributor.0.json +++ b/common/search/src/test/resources/test_documents/works.contributor.0.json @@ -1,195 +1,198 @@ { - "description": "works with different contributor", - "createdAt": "2024-11-13T08:43:26.504894Z", - "id": "5qgfzto1", - "document": { - "debug": { - "source": { - "id": "5qgfzto1", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with different contributor", + "createdAt" : "2024-11-25T15:15:12.357296Z", + "id" : "5qgfzto1", + "document" : { + "debug" : { + "source" : { + "id" : "5qgfzto1", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "x4HrV5FXFI" + "ontologyType" : "Work", + "value" : "x4HrV5FXFI" }, - "version": 28, - "modifiedTime": "1982-10-06T05:52:54Z" + "version" : 28, + "modifiedTime" : "1982-10-06T05:52:54Z" }, - "mergedTime": "1982-10-06T05:52:54Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1982-10-06T05:52:54Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "5qgfzto1", - "title": "title-LlO6qTl7yk", - "alternativeTitles": [ + "display" : { + "id" : "5qgfzto1", + "title" : "title-LlO6qTl7yk", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "47", - "type": "Agent" + "agent" : { + "label" : "47", + "type" : "Agent" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "x4HrV5FXFI", - "type": "Identifier" + "value" : "x4HrV5FXFI", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "47" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "5qgfzto1", - "sourceIdentifier.value": "x4HrV5FXFI", - "identifiers.value": [ + "id" : "5qgfzto1", + "sourceIdentifier.value" : "x4HrV5FXFI", + "identifiers.value" : [ "x4HrV5FXFI" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-LlO6qTl7yk" + "title" : "title-LlO6qTl7yk" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"47\",\"type\":\"Agent\"}" + "contributors.agent" : [ + { + "id" : "47", + "label" : "47" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "47" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "x4HrV5FXFI" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.contributor.1.json b/common/search/src/test/resources/test_documents/works.contributor.1.json index e7a09a975..a26a02d39 100644 --- a/common/search/src/test/resources/test_documents/works.contributor.1.json +++ b/common/search/src/test/resources/test_documents/works.contributor.1.json @@ -1,195 +1,198 @@ { - "description": "works with different contributor", - "createdAt": "2024-11-13T08:43:26.505699Z", - "id": "a8uyvixy", - "document": { - "debug": { - "source": { - "id": "a8uyvixy", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with different contributor", + "createdAt" : "2024-11-25T15:15:12.357718Z", + "id" : "a8uyvixy", + "document" : { + "debug" : { + "source" : { + "id" : "a8uyvixy", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "HfSgzBeJhd" + "ontologyType" : "Work", + "value" : "HfSgzBeJhd" }, - "version": 34, - "modifiedTime": "1959-06-29T05:37:32Z" + "version" : 34, + "modifiedTime" : "1959-06-29T05:37:32Z" }, - "mergedTime": "1959-06-29T05:37:32Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1959-06-29T05:37:32Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "a8uyvixy", - "title": "title-RHMdw5QCHJ", - "alternativeTitles": [ + "display" : { + "id" : "a8uyvixy", + "title" : "title-RHMdw5QCHJ", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "47", - "type": "Agent" + "agent" : { + "label" : "47", + "type" : "Agent" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "HfSgzBeJhd", - "type": "Identifier" + "value" : "HfSgzBeJhd", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "47" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "a8uyvixy", - "sourceIdentifier.value": "HfSgzBeJhd", - "identifiers.value": [ + "id" : "a8uyvixy", + "sourceIdentifier.value" : "HfSgzBeJhd", + "identifiers.value" : [ "HfSgzBeJhd" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-RHMdw5QCHJ" + "title" : "title-RHMdw5QCHJ" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"47\",\"type\":\"Agent\"}" + "contributors.agent" : [ + { + "id" : "47", + "label" : "47" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "47" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "HfSgzBeJhd" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.contributor.2.json b/common/search/src/test/resources/test_documents/works.contributor.2.json index e7bea8610..d2c0fea52 100644 --- a/common/search/src/test/resources/test_documents/works.contributor.2.json +++ b/common/search/src/test/resources/test_documents/works.contributor.2.json @@ -1,208 +1,214 @@ { - "description": "works with different contributor", - "createdAt": "2024-11-13T08:43:26.511704Z", - "id": "toypx23i", - "document": { - "debug": { - "source": { - "id": "toypx23i", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with different contributor", + "createdAt" : "2024-11-25T15:15:12.360200Z", + "id" : "toypx23i", + "document" : { + "debug" : { + "source" : { + "id" : "toypx23i", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "MhQvVMFf3I" + "ontologyType" : "Work", + "value" : "MhQvVMFf3I" }, - "version": 88, - "modifiedTime": "1988-05-28T08:48:11Z" + "version" : 88, + "modifiedTime" : "1988-05-28T08:48:11Z" }, - "mergedTime": "1988-05-28T08:48:11Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1988-05-28T08:48:11Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "toypx23i", - "title": "title-j3EHn02vGA", - "alternativeTitles": [ + "display" : { + "id" : "toypx23i", + "title" : "title-j3EHn02vGA", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "007", - "type": "Agent" + "agent" : { + "label" : "007", + "type" : "Agent" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "MI5", - "type": "Organisation" + "agent" : { + "label" : "MI5", + "type" : "Organisation" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "MhQvVMFf3I", - "type": "Identifier" + "value" : "MhQvVMFf3I", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "007", "MI5" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "toypx23i", - "sourceIdentifier.value": "MhQvVMFf3I", - "identifiers.value": [ + "id" : "toypx23i", + "sourceIdentifier.value" : "MhQvVMFf3I", + "identifiers.value" : [ "MhQvVMFf3I" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-j3EHn02vGA" + "title" : "title-j3EHn02vGA" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"007\",\"type\":\"Agent\"}", - "{\"label\":\"MI5\",\"type\":\"Organisation\"}" + "contributors.agent" : [ + { + "id" : "007", + "label" : "007" + }, + { + "id" : "MI5", + "label" : "MI5" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "007", "MI5" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "MhQvVMFf3I" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.contributor.3.json b/common/search/src/test/resources/test_documents/works.contributor.3.json index 515aeb7b7..371fb57fb 100644 --- a/common/search/src/test/resources/test_documents/works.contributor.3.json +++ b/common/search/src/test/resources/test_documents/works.contributor.3.json @@ -1,208 +1,214 @@ { - "description": "works with different contributor", - "createdAt": "2024-11-13T08:43:26.512223Z", - "id": "mudchggm", - "document": { - "debug": { - "source": { - "id": "mudchggm", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with different contributor", + "createdAt" : "2024-11-25T15:15:12.360637Z", + "id" : "mudchggm", + "document" : { + "debug" : { + "source" : { + "id" : "mudchggm", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "XCPwwavyjz" + "ontologyType" : "Work", + "value" : "XCPwwavyjz" }, - "version": 78, - "modifiedTime": "2002-10-09T11:02:18Z" + "version" : 78, + "modifiedTime" : "2002-10-09T11:02:18Z" }, - "mergedTime": "2002-10-09T11:02:18Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2002-10-09T11:02:18Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "mudchggm", - "title": "title-UfT3H8XnpE", - "alternativeTitles": [ + "display" : { + "id" : "mudchggm", + "title" : "title-UfT3H8XnpE", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "MI5", - "type": "Organisation" + "agent" : { + "label" : "MI5", + "type" : "Organisation" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "GCHQ", - "type": "Organisation" + "agent" : { + "label" : "GCHQ", + "type" : "Organisation" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "XCPwwavyjz", - "type": "Identifier" + "value" : "XCPwwavyjz", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "MI5", "GCHQ" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "mudchggm", - "sourceIdentifier.value": "XCPwwavyjz", - "identifiers.value": [ + "id" : "mudchggm", + "sourceIdentifier.value" : "XCPwwavyjz", + "identifiers.value" : [ "XCPwwavyjz" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-UfT3H8XnpE" + "title" : "title-UfT3H8XnpE" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"MI5\",\"type\":\"Organisation\"}", - "{\"label\":\"GCHQ\",\"type\":\"Organisation\"}" + "contributors.agent" : [ + { + "id" : "MI5", + "label" : "MI5" + }, + { + "id" : "GCHQ", + "label" : "GCHQ" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "MI5", "GCHQ" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "XCPwwavyjz" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.deleted.0.json b/common/search/src/test/resources/test_documents/works.deleted.0.json index 0b5f0b9b7..974b70249 100644 --- a/common/search/src/test/resources/test_documents/works.deleted.0.json +++ b/common/search/src/test/resources/test_documents/works.deleted.0.json @@ -1,30 +1,30 @@ { - "description": "an arbitrary list of deleted works", - "createdAt": "2024-05-15T08:17:25.230175Z", - "id": "pnwuzuig", - "document": { - "debug": { - "source": { - "id": "pnwuzuig", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "an arbitrary list of deleted works", + "createdAt" : "2024-05-15T08:17:25.230175Z", + "id" : "pnwuzuig", + "document" : { + "debug" : { + "source" : { + "id" : "pnwuzuig", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "h0Og1ZYVOG" + "ontologyType" : "Work", + "value" : "h0Og1ZYVOG" }, - "version": 15, - "modifiedTime": "1980-07-10T02:15:52Z" + "version" : 15, + "modifiedTime" : "1980-07-10T02:15:52Z" }, - "mergedTime": "1980-07-10T02:15:52Z", - "indexedTime": "2001-01-01T01:01:01Z", - "deletedReason": { - "info": "tests", - "type": "DeletedFromSource" + "mergedTime" : "1980-07-10T02:15:52Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "deletedReason" : { + "info" : "tests", + "type" : "DeletedFromSource" }, - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Deleted" + "type" : "Deleted" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.deleted.1.json b/common/search/src/test/resources/test_documents/works.deleted.1.json index d62718229..c6206b8d7 100644 --- a/common/search/src/test/resources/test_documents/works.deleted.1.json +++ b/common/search/src/test/resources/test_documents/works.deleted.1.json @@ -1,30 +1,30 @@ { - "description": "an arbitrary list of deleted works", - "createdAt": "2024-05-15T08:17:25.230436Z", - "id": "drwubxen", - "document": { - "debug": { - "source": { - "id": "drwubxen", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "an arbitrary list of deleted works", + "createdAt" : "2024-05-15T08:17:25.230436Z", + "id" : "drwubxen", + "document" : { + "debug" : { + "source" : { + "id" : "drwubxen", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "id6G7vla4o" + "ontologyType" : "Work", + "value" : "id6G7vla4o" }, - "version": 29, - "modifiedTime": "1966-04-26T05:44:05Z" + "version" : 29, + "modifiedTime" : "1966-04-26T05:44:05Z" }, - "mergedTime": "1966-04-26T05:44:05Z", - "indexedTime": "2001-01-01T01:01:01Z", - "deletedReason": { - "info": "tests", - "type": "DeletedFromSource" + "mergedTime" : "1966-04-26T05:44:05Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "deletedReason" : { + "info" : "tests", + "type" : "DeletedFromSource" }, - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Deleted" + "type" : "Deleted" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.deleted.2.json b/common/search/src/test/resources/test_documents/works.deleted.2.json index 38053ec40..8e3dcd7c0 100644 --- a/common/search/src/test/resources/test_documents/works.deleted.2.json +++ b/common/search/src/test/resources/test_documents/works.deleted.2.json @@ -1,30 +1,30 @@ { - "description": "an arbitrary list of deleted works", - "createdAt": "2024-02-16T15:36:44.111210Z", - "id": "93ber84x", - "document": { - "debug": { - "source": { - "id": "93ber84x", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "an arbitrary list of deleted works", + "createdAt" : "2024-02-16T15:36:44.111210Z", + "id" : "93ber84x", + "document" : { + "debug" : { + "source" : { + "id" : "93ber84x", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "pvk4zvFJHh" + "ontologyType" : "Work", + "value" : "pvk4zvFJHh" }, - "version": 33, - "modifiedTime": "2034-04-23T21:47:19Z" + "version" : 33, + "modifiedTime" : "2034-04-23T21:47:19Z" }, - "mergedTime": "2034-04-23T21:47:19Z", - "indexedTime": "2001-01-01T01:01:01Z", - "deletedReason": { - "info": "tests", - "type": "DeletedFromSource" + "mergedTime" : "2034-04-23T21:47:19Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "deletedReason" : { + "info" : "tests", + "type" : "DeletedFromSource" }, - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Deleted" + "type" : "Deleted" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.deleted.3.json b/common/search/src/test/resources/test_documents/works.deleted.3.json index 3f056b951..37433098f 100644 --- a/common/search/src/test/resources/test_documents/works.deleted.3.json +++ b/common/search/src/test/resources/test_documents/works.deleted.3.json @@ -1,30 +1,30 @@ { - "description": "an arbitrary list of deleted works", - "createdAt": "2024-02-16T15:36:44.111475Z", - "id": "0tkkvzgo", - "document": { - "debug": { - "source": { - "id": "0tkkvzgo", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "an arbitrary list of deleted works", + "createdAt" : "2024-02-16T15:36:44.111475Z", + "id" : "0tkkvzgo", + "document" : { + "debug" : { + "source" : { + "id" : "0tkkvzgo", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "ROtwcbnYKN" + "ontologyType" : "Work", + "value" : "ROtwcbnYKN" }, - "version": 97, - "modifiedTime": "2009-09-05T08:49:35Z" + "version" : 97, + "modifiedTime" : "2009-09-05T08:49:35Z" }, - "mergedTime": "2009-09-05T08:49:35Z", - "indexedTime": "2001-01-01T01:01:01Z", - "deletedReason": { - "info": "tests", - "type": "DeletedFromSource" + "mergedTime" : "2009-09-05T08:49:35Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "deletedReason" : { + "info" : "tests", + "type" : "DeletedFromSource" }, - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Deleted" + "type" : "Deleted" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.0.json b/common/search/src/test/resources/test_documents/works.every-format.0.json index 02828380e..77f67e084 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.0.json +++ b/common/search/src/test/resources/test_documents/works.every-format.0.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.528971Z", - "id": "w2ap82cs", - "document": { - "debug": { - "source": { - "id": "w2ap82cs", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.377499Z", + "id" : "w2ap82cs", + "document" : { + "debug" : { + "source" : { + "id" : "w2ap82cs", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "UZlr85jkfd" + "ontologyType" : "Work", + "value" : "UZlr85jkfd" }, - "version": 73, - "modifiedTime": "1966-01-30T11:53:55Z" + "version" : 73, + "modifiedTime" : "1966-01-30T11:53:55Z" }, - "mergedTime": "1966-01-30T11:53:55Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1966-01-30T11:53:55Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "w2ap82cs", - "title": "title-fkE2zvA5MJ", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "w2ap82cs", + "title" : "title-fkE2zvA5MJ", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "UZlr85jkfd", - "type": "Identifier" + "value" : "UZlr85jkfd", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "w2ap82cs", - "sourceIdentifier.value": "UZlr85jkfd", - "identifiers.value": [ + "id" : "w2ap82cs", + "sourceIdentifier.value" : "UZlr85jkfd", + "identifiers.value" : [ "UZlr85jkfd" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-fkE2zvA5MJ" + "title" : "title-fkE2zvA5MJ" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "UZlr85jkfd" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.1.json b/common/search/src/test/resources/test_documents/works.every-format.1.json index 44610656e..25b4b034b 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.1.json +++ b/common/search/src/test/resources/test_documents/works.every-format.1.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.529316Z", - "id": "jminkez1", - "document": { - "debug": { - "source": { - "id": "jminkez1", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.377830Z", + "id" : "jminkez1", + "document" : { + "debug" : { + "source" : { + "id" : "jminkez1", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "cxE29kiXIm" + "ontologyType" : "Work", + "value" : "cxE29kiXIm" }, - "version": 78, - "modifiedTime": "1999-04-12T11:49:15Z" + "version" : 78, + "modifiedTime" : "1999-04-12T11:49:15Z" }, - "mergedTime": "1999-04-12T11:49:15Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1999-04-12T11:49:15Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "jminkez1", - "title": "title-CI4wWGKP4h", - "alternativeTitles": [ - ], - "workType": { - "id": "q", - "label": "Digital Images", - "type": "Format" + "display" : { + "id" : "jminkez1", + "title" : "title-CI4wWGKP4h", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "q", + "label" : "Digital Images", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "cxE29kiXIm", - "type": "Identifier" + "value" : "cxE29kiXIm", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "jminkez1", - "sourceIdentifier.value": "cxE29kiXIm", - "identifiers.value": [ + "id" : "jminkez1", + "sourceIdentifier.value" : "cxE29kiXIm", + "identifiers.value" : [ "cxE29kiXIm" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-CI4wWGKP4h" + "title" : "title-CI4wWGKP4h" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"q\",\"label\":\"Digital Images\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "q", + "label" : "Digital Images" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "q", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "q", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "cxE29kiXIm" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.10.json b/common/search/src/test/resources/test_documents/works.every-format.10.json index 4d5ffa305..543e97c35 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.10.json +++ b/common/search/src/test/resources/test_documents/works.every-format.10.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.532374Z", - "id": "5lq8kfis", - "document": { - "debug": { - "source": { - "id": "5lq8kfis", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.381086Z", + "id" : "5lq8kfis", + "document" : { + "debug" : { + "source" : { + "id" : "5lq8kfis", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "ajAY87vuuJ" + "ontologyType" : "Work", + "value" : "ajAY87vuuJ" }, - "version": 22, - "modifiedTime": "1971-04-04T14:11:16Z" + "version" : 22, + "modifiedTime" : "1971-04-04T14:11:16Z" }, - "mergedTime": "1971-04-04T14:11:16Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1971-04-04T14:11:16Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "5lq8kfis", - "title": "title-yrogDQ417u", - "alternativeTitles": [ - ], - "workType": { - "id": "i", - "label": "Audio", - "type": "Format" + "display" : { + "id" : "5lq8kfis", + "title" : "title-yrogDQ417u", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "i", + "label" : "Audio", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "ajAY87vuuJ", - "type": "Identifier" + "value" : "ajAY87vuuJ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "5lq8kfis", - "sourceIdentifier.value": "ajAY87vuuJ", - "identifiers.value": [ + "id" : "5lq8kfis", + "sourceIdentifier.value" : "ajAY87vuuJ", + "identifiers.value" : [ "ajAY87vuuJ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-yrogDQ417u" + "title" : "title-yrogDQ417u" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"i\",\"label\":\"Audio\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "i", + "label" : "Audio" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "i", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "i", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ajAY87vuuJ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.11.json b/common/search/src/test/resources/test_documents/works.every-format.11.json index e4c4d287d..c9a24c480 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.11.json +++ b/common/search/src/test/resources/test_documents/works.every-format.11.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.532927Z", - "id": "kkzdnfal", - "document": { - "debug": { - "source": { - "id": "kkzdnfal", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.381505Z", + "id" : "kkzdnfal", + "document" : { + "debug" : { + "source" : { + "id" : "kkzdnfal", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "J1fupAzsfb" + "ontologyType" : "Work", + "value" : "J1fupAzsfb" }, - "version": 87, - "modifiedTime": "2033-08-12T07:52:47Z" + "version" : 87, + "modifiedTime" : "2033-08-12T07:52:47Z" }, - "mergedTime": "2033-08-12T07:52:47Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2033-08-12T07:52:47Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "kkzdnfal", - "title": "title-wOjYum0Yf1", - "alternativeTitles": [ - ], - "workType": { - "id": "g", - "label": "Videos", - "type": "Format" + "display" : { + "id" : "kkzdnfal", + "title" : "title-wOjYum0Yf1", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "g", + "label" : "Videos", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "J1fupAzsfb", - "type": "Identifier" + "value" : "J1fupAzsfb", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "kkzdnfal", - "sourceIdentifier.value": "J1fupAzsfb", - "identifiers.value": [ + "id" : "kkzdnfal", + "sourceIdentifier.value" : "J1fupAzsfb", + "identifiers.value" : [ "J1fupAzsfb" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-wOjYum0Yf1" + "title" : "title-wOjYum0Yf1" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"g\",\"label\":\"Videos\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "g", + "label" : "Videos" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "g", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "g", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "J1fupAzsfb" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.12.json b/common/search/src/test/resources/test_documents/works.every-format.12.json index 080be6282..bcb2d973b 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.12.json +++ b/common/search/src/test/resources/test_documents/works.every-format.12.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.533471Z", - "id": "02pauy4p", - "document": { - "debug": { - "source": { - "id": "02pauy4p", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.381870Z", + "id" : "02pauy4p", + "document" : { + "debug" : { + "source" : { + "id" : "02pauy4p", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "mZeIhkjzt3" + "ontologyType" : "Work", + "value" : "mZeIhkjzt3" }, - "version": 65, - "modifiedTime": "2046-09-07T08:09:38Z" + "version" : 65, + "modifiedTime" : "2046-09-07T08:09:38Z" }, - "mergedTime": "2046-09-07T08:09:38Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2046-09-07T08:09:38Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "02pauy4p", - "title": "title-8GcWiPpAX3", - "alternativeTitles": [ - ], - "workType": { - "id": "h", - "label": "Archives and manuscripts", - "type": "Format" + "display" : { + "id" : "02pauy4p", + "title" : "title-8GcWiPpAX3", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "h", + "label" : "Archives and manuscripts", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "mZeIhkjzt3", - "type": "Identifier" + "value" : "mZeIhkjzt3", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "02pauy4p", - "sourceIdentifier.value": "mZeIhkjzt3", - "identifiers.value": [ + "id" : "02pauy4p", + "sourceIdentifier.value" : "mZeIhkjzt3", + "identifiers.value" : [ "mZeIhkjzt3" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-8GcWiPpAX3" + "title" : "title-8GcWiPpAX3" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"h\",\"label\":\"Archives and manuscripts\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "h", + "label" : "Archives and manuscripts" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "h", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "h", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "mZeIhkjzt3" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.13.json b/common/search/src/test/resources/test_documents/works.every-format.13.json index d136ec5fe..6f78a233e 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.13.json +++ b/common/search/src/test/resources/test_documents/works.every-format.13.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.533855Z", - "id": "83tyy1gh", - "document": { - "debug": { - "source": { - "id": "83tyy1gh", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.382189Z", + "id" : "83tyy1gh", + "document" : { + "debug" : { + "source" : { + "id" : "83tyy1gh", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "qt38YgNxOY" + "ontologyType" : "Work", + "value" : "qt38YgNxOY" }, - "version": 96, - "modifiedTime": "1933-08-01T22:54:00Z" + "version" : 96, + "modifiedTime" : "1933-08-01T22:54:00Z" }, - "mergedTime": "1933-08-01T22:54:00Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1933-08-01T22:54:00Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "83tyy1gh", - "title": "title-sQ9rgmu63i", - "alternativeTitles": [ - ], - "workType": { - "id": "hdig", - "label": "Born-digital archives", - "type": "Format" + "display" : { + "id" : "83tyy1gh", + "title" : "title-sQ9rgmu63i", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "hdig", + "label" : "Born-digital archives", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "qt38YgNxOY", - "type": "Identifier" + "value" : "qt38YgNxOY", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "83tyy1gh", - "sourceIdentifier.value": "qt38YgNxOY", - "identifiers.value": [ + "id" : "83tyy1gh", + "sourceIdentifier.value" : "qt38YgNxOY", + "identifiers.value" : [ "qt38YgNxOY" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-sQ9rgmu63i" + "title" : "title-sQ9rgmu63i" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"hdig\",\"label\":\"Born-digital archives\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "hdig", + "label" : "Born-digital archives" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "hdig", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "hdig", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "qt38YgNxOY" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.14.json b/common/search/src/test/resources/test_documents/works.every-format.14.json index 011ac8787..8185e30c1 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.14.json +++ b/common/search/src/test/resources/test_documents/works.every-format.14.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.534193Z", - "id": "vwzsza7o", - "document": { - "debug": { - "source": { - "id": "vwzsza7o", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.382490Z", + "id" : "vwzsza7o", + "document" : { + "debug" : { + "source" : { + "id" : "vwzsza7o", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "DHZ5kGsC2N" + "ontologyType" : "Work", + "value" : "DHZ5kGsC2N" }, - "version": 76, - "modifiedTime": "2057-06-21T22:52:30Z" + "version" : 76, + "modifiedTime" : "2057-06-21T22:52:30Z" }, - "mergedTime": "2057-06-21T22:52:30Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2057-06-21T22:52:30Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "vwzsza7o", - "title": "title-Aa31SpT9St", - "alternativeTitles": [ - ], - "workType": { - "id": "n", - "label": "Film", - "type": "Format" + "display" : { + "id" : "vwzsza7o", + "title" : "title-Aa31SpT9St", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "n", + "label" : "Film", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "DHZ5kGsC2N", - "type": "Identifier" + "value" : "DHZ5kGsC2N", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "vwzsza7o", - "sourceIdentifier.value": "DHZ5kGsC2N", - "identifiers.value": [ + "id" : "vwzsza7o", + "sourceIdentifier.value" : "DHZ5kGsC2N", + "identifiers.value" : [ "DHZ5kGsC2N" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Aa31SpT9St" + "title" : "title-Aa31SpT9St" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"n\",\"label\":\"Film\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "n", + "label" : "Film" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "n", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "n", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "DHZ5kGsC2N" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.15.json b/common/search/src/test/resources/test_documents/works.every-format.15.json index 20c9a184a..cfcfedb4a 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.15.json +++ b/common/search/src/test/resources/test_documents/works.every-format.15.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.534540Z", - "id": "9vihnjwg", - "document": { - "debug": { - "source": { - "id": "9vihnjwg", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.382786Z", + "id" : "9vihnjwg", + "document" : { + "debug" : { + "source" : { + "id" : "9vihnjwg", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "oeggPvgjRA" + "ontologyType" : "Work", + "value" : "oeggPvgjRA" }, - "version": 48, - "modifiedTime": "2016-04-26T09:59:06Z" + "version" : 48, + "modifiedTime" : "2016-04-26T09:59:06Z" }, - "mergedTime": "2016-04-26T09:59:06Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2016-04-26T09:59:06Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "9vihnjwg", - "title": "title-tGLcg1WHGj", - "alternativeTitles": [ - ], - "workType": { - "id": "b", - "label": "Manuscripts", - "type": "Format" + "display" : { + "id" : "9vihnjwg", + "title" : "title-tGLcg1WHGj", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "b", + "label" : "Manuscripts", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "oeggPvgjRA", - "type": "Identifier" + "value" : "oeggPvgjRA", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "9vihnjwg", - "sourceIdentifier.value": "oeggPvgjRA", - "identifiers.value": [ + "id" : "9vihnjwg", + "sourceIdentifier.value" : "oeggPvgjRA", + "identifiers.value" : [ "oeggPvgjRA" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-tGLcg1WHGj" + "title" : "title-tGLcg1WHGj" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"b\",\"label\":\"Manuscripts\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "b", + "label" : "Manuscripts" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "b", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "b", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "oeggPvgjRA" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.16.json b/common/search/src/test/resources/test_documents/works.every-format.16.json index d42a5c8c3..280f1ffc2 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.16.json +++ b/common/search/src/test/resources/test_documents/works.every-format.16.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.534887Z", - "id": "4blsy3iy", - "document": { - "debug": { - "source": { - "id": "4blsy3iy", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.383095Z", + "id" : "4blsy3iy", + "document" : { + "debug" : { + "source" : { + "id" : "4blsy3iy", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "CwPK521Yf5" + "ontologyType" : "Work", + "value" : "CwPK521Yf5" }, - "version": 80, - "modifiedTime": "1989-12-01T18:27:04Z" + "version" : 80, + "modifiedTime" : "1989-12-01T18:27:04Z" }, - "mergedTime": "1989-12-01T18:27:04Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1989-12-01T18:27:04Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "4blsy3iy", - "title": "title-rQHICakdbo", - "alternativeTitles": [ - ], - "workType": { - "id": "c", - "label": "Music", - "type": "Format" + "display" : { + "id" : "4blsy3iy", + "title" : "title-rQHICakdbo", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "c", + "label" : "Music", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "CwPK521Yf5", - "type": "Identifier" + "value" : "CwPK521Yf5", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "4blsy3iy", - "sourceIdentifier.value": "CwPK521Yf5", - "identifiers.value": [ + "id" : "4blsy3iy", + "sourceIdentifier.value" : "CwPK521Yf5", + "identifiers.value" : [ "CwPK521Yf5" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-rQHICakdbo" + "title" : "title-rQHICakdbo" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"c\",\"label\":\"Music\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "c", + "label" : "Music" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "c", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "c", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "CwPK521Yf5" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.17.json b/common/search/src/test/resources/test_documents/works.every-format.17.json index a51ab53e4..4395670c8 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.17.json +++ b/common/search/src/test/resources/test_documents/works.every-format.17.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.535338Z", - "id": "9is9e3tz", - "document": { - "debug": { - "source": { - "id": "9is9e3tz", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.383421Z", + "id" : "9is9e3tz", + "document" : { + "debug" : { + "source" : { + "id" : "9is9e3tz", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "ZVe3xG7r6V" + "ontologyType" : "Work", + "value" : "ZVe3xG7r6V" }, - "version": 2, - "modifiedTime": "1948-09-05T03:31:20Z" + "version" : 2, + "modifiedTime" : "1948-09-05T03:31:20Z" }, - "mergedTime": "1948-09-05T03:31:20Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1948-09-05T03:31:20Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "9is9e3tz", - "title": "title-GYTcwsJblj", - "alternativeTitles": [ - ], - "workType": { - "id": "u", - "label": "Standing order", - "type": "Format" + "display" : { + "id" : "9is9e3tz", + "title" : "title-GYTcwsJblj", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "u", + "label" : "Standing order", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "ZVe3xG7r6V", - "type": "Identifier" + "value" : "ZVe3xG7r6V", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "9is9e3tz", - "sourceIdentifier.value": "ZVe3xG7r6V", - "identifiers.value": [ + "id" : "9is9e3tz", + "sourceIdentifier.value" : "ZVe3xG7r6V", + "identifiers.value" : [ "ZVe3xG7r6V" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-GYTcwsJblj" + "title" : "title-GYTcwsJblj" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"u\",\"label\":\"Standing order\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "u", + "label" : "Standing order" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "u", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "u", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ZVe3xG7r6V" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.18.json b/common/search/src/test/resources/test_documents/works.every-format.18.json index 2162576a1..65fc6331c 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.18.json +++ b/common/search/src/test/resources/test_documents/works.every-format.18.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.535809Z", - "id": "4pxxngz8", - "document": { - "debug": { - "source": { - "id": "4pxxngz8", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.383794Z", + "id" : "4pxxngz8", + "document" : { + "debug" : { + "source" : { + "id" : "4pxxngz8", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "u1GFI2XFVi" + "ontologyType" : "Work", + "value" : "u1GFI2XFVi" }, - "version": 98, - "modifiedTime": "2057-05-14T23:40:17Z" + "version" : 98, + "modifiedTime" : "2057-05-14T23:40:17Z" }, - "mergedTime": "2057-05-14T23:40:17Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2057-05-14T23:40:17Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "4pxxngz8", - "title": "title-nVQ1pSxSTQ", - "alternativeTitles": [ - ], - "workType": { - "id": "z", - "label": "Web sites", - "type": "Format" + "display" : { + "id" : "4pxxngz8", + "title" : "title-nVQ1pSxSTQ", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "z", + "label" : "Web sites", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "u1GFI2XFVi", - "type": "Identifier" + "value" : "u1GFI2XFVi", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "4pxxngz8", - "sourceIdentifier.value": "u1GFI2XFVi", - "identifiers.value": [ + "id" : "4pxxngz8", + "sourceIdentifier.value" : "u1GFI2XFVi", + "identifiers.value" : [ "u1GFI2XFVi" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-nVQ1pSxSTQ" + "title" : "title-nVQ1pSxSTQ" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"z\",\"label\":\"Web sites\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "z", + "label" : "Web sites" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "z", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "z", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "u1GFI2XFVi" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.19.json b/common/search/src/test/resources/test_documents/works.every-format.19.json index d20457c69..40e158845 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.19.json +++ b/common/search/src/test/resources/test_documents/works.every-format.19.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.536156Z", - "id": "pujta45z", - "document": { - "debug": { - "source": { - "id": "pujta45z", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.384106Z", + "id" : "pujta45z", + "document" : { + "debug" : { + "source" : { + "id" : "pujta45z", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "4EFefGhSS8" + "ontologyType" : "Work", + "value" : "4EFefGhSS8" }, - "version": 75, - "modifiedTime": "2013-08-30T03:43:43Z" + "version" : 75, + "modifiedTime" : "2013-08-30T03:43:43Z" }, - "mergedTime": "2013-08-30T03:43:43Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2013-08-30T03:43:43Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "pujta45z", - "title": "title-fq9upMxJZw", - "alternativeTitles": [ - ], - "workType": { - "id": "v", - "label": "E-books", - "type": "Format" + "display" : { + "id" : "pujta45z", + "title" : "title-fq9upMxJZw", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "v", + "label" : "E-books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "4EFefGhSS8", - "type": "Identifier" + "value" : "4EFefGhSS8", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "pujta45z", - "sourceIdentifier.value": "4EFefGhSS8", - "identifiers.value": [ + "id" : "pujta45z", + "sourceIdentifier.value" : "4EFefGhSS8", + "identifiers.value" : [ "4EFefGhSS8" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-fq9upMxJZw" + "title" : "title-fq9upMxJZw" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"v\",\"label\":\"E-books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "v", + "label" : "E-books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "v", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "v", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "4EFefGhSS8" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.2.json b/common/search/src/test/resources/test_documents/works.every-format.2.json index 282d72649..c2b534d32 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.2.json +++ b/common/search/src/test/resources/test_documents/works.every-format.2.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.529642Z", - "id": "cinepzd4", - "document": { - "debug": { - "source": { - "id": "cinepzd4", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.378155Z", + "id" : "cinepzd4", + "document" : { + "debug" : { + "source" : { + "id" : "cinepzd4", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "ALANM5eCQQ" + "ontologyType" : "Work", + "value" : "ALANM5eCQQ" }, - "version": 60, - "modifiedTime": "2011-07-10T12:40:11Z" + "version" : 60, + "modifiedTime" : "2011-07-10T12:40:11Z" }, - "mergedTime": "2011-07-10T12:40:11Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2011-07-10T12:40:11Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "cinepzd4", - "title": "title-eLKKcl3dhq", - "alternativeTitles": [ - ], - "workType": { - "id": "l", - "label": "Ephemera", - "type": "Format" + "display" : { + "id" : "cinepzd4", + "title" : "title-eLKKcl3dhq", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "l", + "label" : "Ephemera", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "ALANM5eCQQ", - "type": "Identifier" + "value" : "ALANM5eCQQ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "cinepzd4", - "sourceIdentifier.value": "ALANM5eCQQ", - "identifiers.value": [ + "id" : "cinepzd4", + "sourceIdentifier.value" : "ALANM5eCQQ", + "identifiers.value" : [ "ALANM5eCQQ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-eLKKcl3dhq" + "title" : "title-eLKKcl3dhq" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"l\",\"label\":\"Ephemera\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "l", + "label" : "Ephemera" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "l", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "l", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ALANM5eCQQ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.20.json b/common/search/src/test/resources/test_documents/works.every-format.20.json index 292eb66a9..0a5ab45da 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.20.json +++ b/common/search/src/test/resources/test_documents/works.every-format.20.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.536496Z", - "id": "qph7iot8", - "document": { - "debug": { - "source": { - "id": "qph7iot8", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.384501Z", + "id" : "qph7iot8", + "document" : { + "debug" : { + "source" : { + "id" : "qph7iot8", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "kQ4UxBoirz" + "ontologyType" : "Work", + "value" : "kQ4UxBoirz" }, - "version": 61, - "modifiedTime": "2068-04-15T09:23:35Z" + "version" : 61, + "modifiedTime" : "2068-04-15T09:23:35Z" }, - "mergedTime": "2068-04-15T09:23:35Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2068-04-15T09:23:35Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "qph7iot8", - "title": "title-GJFY3QKMnI", - "alternativeTitles": [ - ], - "workType": { - "id": "s", - "label": "E-sound", - "type": "Format" + "display" : { + "id" : "qph7iot8", + "title" : "title-GJFY3QKMnI", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "s", + "label" : "E-sound", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "kQ4UxBoirz", - "type": "Identifier" + "value" : "kQ4UxBoirz", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "qph7iot8", - "sourceIdentifier.value": "kQ4UxBoirz", - "identifiers.value": [ + "id" : "qph7iot8", + "sourceIdentifier.value" : "kQ4UxBoirz", + "identifiers.value" : [ "kQ4UxBoirz" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-GJFY3QKMnI" + "title" : "title-GJFY3QKMnI" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"s\",\"label\":\"E-sound\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "s", + "label" : "E-sound" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "s", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "s", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "kQ4UxBoirz" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.21.json b/common/search/src/test/resources/test_documents/works.every-format.21.json index dc7f47b94..b719bb4e7 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.21.json +++ b/common/search/src/test/resources/test_documents/works.every-format.21.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.536834Z", - "id": "3ygkb1yd", - "document": { - "debug": { - "source": { - "id": "3ygkb1yd", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.384874Z", + "id" : "3ygkb1yd", + "document" : { + "debug" : { + "source" : { + "id" : "3ygkb1yd", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "mTs82bfnk2" + "ontologyType" : "Work", + "value" : "mTs82bfnk2" }, - "version": 60, - "modifiedTime": "1961-01-11T18:15:01Z" + "version" : 60, + "modifiedTime" : "1961-01-11T18:15:01Z" }, - "mergedTime": "1961-01-11T18:15:01Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1961-01-11T18:15:01Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "3ygkb1yd", - "title": "title-XqL6hBi4EV", - "alternativeTitles": [ - ], - "workType": { - "id": "j", - "label": "E-journals", - "type": "Format" + "display" : { + "id" : "3ygkb1yd", + "title" : "title-XqL6hBi4EV", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "j", + "label" : "E-journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "mTs82bfnk2", - "type": "Identifier" + "value" : "mTs82bfnk2", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "3ygkb1yd", - "sourceIdentifier.value": "mTs82bfnk2", - "identifiers.value": [ + "id" : "3ygkb1yd", + "sourceIdentifier.value" : "mTs82bfnk2", + "identifiers.value" : [ "mTs82bfnk2" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-XqL6hBi4EV" + "title" : "title-XqL6hBi4EV" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"j\",\"label\":\"E-journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "j", + "label" : "E-journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "j", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "j", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "mTs82bfnk2" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.22.json b/common/search/src/test/resources/test_documents/works.every-format.22.json index 2972e6fa9..6d917b723 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.22.json +++ b/common/search/src/test/resources/test_documents/works.every-format.22.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.537188Z", - "id": "ccfchgq4", - "document": { - "debug": { - "source": { - "id": "ccfchgq4", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.385181Z", + "id" : "ccfchgq4", + "document" : { + "debug" : { + "source" : { + "id" : "ccfchgq4", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "a62zjJ09dk" + "ontologyType" : "Work", + "value" : "a62zjJ09dk" }, - "version": 89, - "modifiedTime": "1989-01-21T00:50:14Z" + "version" : 89, + "modifiedTime" : "1989-01-21T00:50:14Z" }, - "mergedTime": "1989-01-21T00:50:14Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1989-01-21T00:50:14Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ccfchgq4", - "title": "title-BGJ9vAPDvN", - "alternativeTitles": [ - ], - "workType": { - "id": "f", - "label": "E-videos", - "type": "Format" + "display" : { + "id" : "ccfchgq4", + "title" : "title-BGJ9vAPDvN", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "f", + "label" : "E-videos", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "a62zjJ09dk", - "type": "Identifier" + "value" : "a62zjJ09dk", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ccfchgq4", - "sourceIdentifier.value": "a62zjJ09dk", - "identifiers.value": [ + "id" : "ccfchgq4", + "sourceIdentifier.value" : "a62zjJ09dk", + "identifiers.value" : [ "a62zjJ09dk" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-BGJ9vAPDvN" + "title" : "title-BGJ9vAPDvN" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"f\",\"label\":\"E-videos\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "f", + "label" : "E-videos" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "f", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "f", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "a62zjJ09dk" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.23.json b/common/search/src/test/resources/test_documents/works.every-format.23.json index 759f92f9f..ed87af152 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.23.json +++ b/common/search/src/test/resources/test_documents/works.every-format.23.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.537535Z", - "id": "cgfghm8m", - "document": { - "debug": { - "source": { - "id": "cgfghm8m", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.385477Z", + "id" : "cgfghm8m", + "document" : { + "debug" : { + "source" : { + "id" : "cgfghm8m", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "mh0pYazvpR" + "ontologyType" : "Work", + "value" : "mh0pYazvpR" }, - "version": 37, - "modifiedTime": "1945-01-10T19:58:56Z" + "version" : 37, + "modifiedTime" : "1945-01-10T19:58:56Z" }, - "mergedTime": "1945-01-10T19:58:56Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1945-01-10T19:58:56Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "cgfghm8m", - "title": "title-oOAv5vdS0Y", - "alternativeTitles": [ - ], - "workType": { - "id": "x", - "label": "Manuscripts", - "type": "Format" + "display" : { + "id" : "cgfghm8m", + "title" : "title-oOAv5vdS0Y", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "x", + "label" : "Manuscripts", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "mh0pYazvpR", - "type": "Identifier" + "value" : "mh0pYazvpR", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "cgfghm8m", - "sourceIdentifier.value": "mh0pYazvpR", - "identifiers.value": [ + "id" : "cgfghm8m", + "sourceIdentifier.value" : "mh0pYazvpR", + "identifiers.value" : [ "mh0pYazvpR" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-oOAv5vdS0Y" + "title" : "title-oOAv5vdS0Y" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"x\",\"label\":\"Manuscripts\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "x", + "label" : "Manuscripts" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "x", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "x", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "mh0pYazvpR" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.3.json b/common/search/src/test/resources/test_documents/works.every-format.3.json index ae17597a0..642f0a375 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.3.json +++ b/common/search/src/test/resources/test_documents/works.every-format.3.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.529965Z", - "id": "btrlxjc4", - "document": { - "debug": { - "source": { - "id": "btrlxjc4", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.378468Z", + "id" : "btrlxjc4", + "document" : { + "debug" : { + "source" : { + "id" : "btrlxjc4", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "oZVNybADYL" + "ontologyType" : "Work", + "value" : "oZVNybADYL" }, - "version": 5, - "modifiedTime": "1936-05-06T07:13:48Z" + "version" : 5, + "modifiedTime" : "1936-05-06T07:13:48Z" }, - "mergedTime": "1936-05-06T07:13:48Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1936-05-06T07:13:48Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "btrlxjc4", - "title": "title-v7ilrP0gOL", - "alternativeTitles": [ - ], - "workType": { - "id": "e", - "label": "Maps", - "type": "Format" + "display" : { + "id" : "btrlxjc4", + "title" : "title-v7ilrP0gOL", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "e", + "label" : "Maps", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "oZVNybADYL", - "type": "Identifier" + "value" : "oZVNybADYL", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "btrlxjc4", - "sourceIdentifier.value": "oZVNybADYL", - "identifiers.value": [ + "id" : "btrlxjc4", + "sourceIdentifier.value" : "oZVNybADYL", + "identifiers.value" : [ "oZVNybADYL" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-v7ilrP0gOL" + "title" : "title-v7ilrP0gOL" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"e\",\"label\":\"Maps\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "e", + "label" : "Maps" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "e", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "e", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "oZVNybADYL" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.4.json b/common/search/src/test/resources/test_documents/works.every-format.4.json index 81613698f..49ae77be2 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.4.json +++ b/common/search/src/test/resources/test_documents/works.every-format.4.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.530281Z", - "id": "ifz9zadf", - "document": { - "debug": { - "source": { - "id": "ifz9zadf", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.378783Z", + "id" : "ifz9zadf", + "document" : { + "debug" : { + "source" : { + "id" : "ifz9zadf", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "MZkkqME2t4" + "ontologyType" : "Work", + "value" : "MZkkqME2t4" }, - "version": 33, - "modifiedTime": "2033-01-05T00:41:56Z" + "version" : 33, + "modifiedTime" : "2033-01-05T00:41:56Z" }, - "mergedTime": "2033-01-05T00:41:56Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2033-01-05T00:41:56Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ifz9zadf", - "title": "title-zprDQS25hn", - "alternativeTitles": [ - ], - "workType": { - "id": "k", - "label": "Pictures", - "type": "Format" + "display" : { + "id" : "ifz9zadf", + "title" : "title-zprDQS25hn", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "k", + "label" : "Pictures", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "MZkkqME2t4", - "type": "Identifier" + "value" : "MZkkqME2t4", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ifz9zadf", - "sourceIdentifier.value": "MZkkqME2t4", - "identifiers.value": [ + "id" : "ifz9zadf", + "sourceIdentifier.value" : "MZkkqME2t4", + "identifiers.value" : [ "MZkkqME2t4" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-zprDQS25hn" + "title" : "title-zprDQS25hn" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"k\",\"label\":\"Pictures\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "k", + "label" : "Pictures" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "k", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "k", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "MZkkqME2t4" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.5.json b/common/search/src/test/resources/test_documents/works.every-format.5.json index 72b137a3d..2d1eb412c 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.5.json +++ b/common/search/src/test/resources/test_documents/works.every-format.5.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.530610Z", - "id": "xlcpwdx8", - "document": { - "debug": { - "source": { - "id": "xlcpwdx8", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.379099Z", + "id" : "xlcpwdx8", + "document" : { + "debug" : { + "source" : { + "id" : "xlcpwdx8", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "QBSkLFL8Cz" + "ontologyType" : "Work", + "value" : "QBSkLFL8Cz" }, - "version": 26, - "modifiedTime": "1970-09-11T12:17:13Z" + "version" : 26, + "modifiedTime" : "1970-09-11T12:17:13Z" }, - "mergedTime": "1970-09-11T12:17:13Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1970-09-11T12:17:13Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "xlcpwdx8", - "title": "title-If124qX5kM", - "alternativeTitles": [ - ], - "workType": { - "id": "w", - "label": "Student dissertations", - "type": "Format" + "display" : { + "id" : "xlcpwdx8", + "title" : "title-If124qX5kM", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "w", + "label" : "Student dissertations", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "QBSkLFL8Cz", - "type": "Identifier" + "value" : "QBSkLFL8Cz", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "xlcpwdx8", - "sourceIdentifier.value": "QBSkLFL8Cz", - "identifiers.value": [ + "id" : "xlcpwdx8", + "sourceIdentifier.value" : "QBSkLFL8Cz", + "identifiers.value" : [ "QBSkLFL8Cz" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-If124qX5kM" + "title" : "title-If124qX5kM" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"w\",\"label\":\"Student dissertations\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "w", + "label" : "Student dissertations" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "w", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "w", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "QBSkLFL8Cz" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.6.json b/common/search/src/test/resources/test_documents/works.every-format.6.json index 9ab5892e8..a2c21baab 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.6.json +++ b/common/search/src/test/resources/test_documents/works.every-format.6.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.530973Z", - "id": "cmz25207", - "document": { - "debug": { - "source": { - "id": "cmz25207", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.379691Z", + "id" : "cmz25207", + "document" : { + "debug" : { + "source" : { + "id" : "cmz25207", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "pmMJGY9dht" + "ontologyType" : "Work", + "value" : "pmMJGY9dht" }, - "version": 54, - "modifiedTime": "2057-11-24T19:37:10Z" + "version" : 54, + "modifiedTime" : "2057-11-24T19:37:10Z" }, - "mergedTime": "2057-11-24T19:37:10Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2057-11-24T19:37:10Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "cmz25207", - "title": "title-hUTLc5Rq9A", - "alternativeTitles": [ - ], - "workType": { - "id": "r", - "label": "3-D Objects", - "type": "Format" + "display" : { + "id" : "cmz25207", + "title" : "title-hUTLc5Rq9A", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "r", + "label" : "3-D Objects", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "pmMJGY9dht", - "type": "Identifier" + "value" : "pmMJGY9dht", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "cmz25207", - "sourceIdentifier.value": "pmMJGY9dht", - "identifiers.value": [ + "id" : "cmz25207", + "sourceIdentifier.value" : "pmMJGY9dht", + "identifiers.value" : [ "pmMJGY9dht" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-hUTLc5Rq9A" + "title" : "title-hUTLc5Rq9A" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"r\",\"label\":\"3-D Objects\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "r", + "label" : "3-D Objects" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "r", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "r", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "pmMJGY9dht" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.7.json b/common/search/src/test/resources/test_documents/works.every-format.7.json index 8f7a5b144..7b59721a9 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.7.json +++ b/common/search/src/test/resources/test_documents/works.every-format.7.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.531314Z", - "id": "6qjgnqbc", - "document": { - "debug": { - "source": { - "id": "6qjgnqbc", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.380093Z", + "id" : "6qjgnqbc", + "document" : { + "debug" : { + "source" : { + "id" : "6qjgnqbc", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "Nr737MdPwA" + "ontologyType" : "Work", + "value" : "Nr737MdPwA" }, - "version": 47, - "modifiedTime": "1984-05-15T14:09:35Z" + "version" : 47, + "modifiedTime" : "1984-05-15T14:09:35Z" }, - "mergedTime": "1984-05-15T14:09:35Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1984-05-15T14:09:35Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "6qjgnqbc", - "title": "title-URSdB22MDV", - "alternativeTitles": [ - ], - "workType": { - "id": "m", - "label": "CD-Roms", - "type": "Format" + "display" : { + "id" : "6qjgnqbc", + "title" : "title-URSdB22MDV", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "m", + "label" : "CD-Roms", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "Nr737MdPwA", - "type": "Identifier" + "value" : "Nr737MdPwA", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "6qjgnqbc", - "sourceIdentifier.value": "Nr737MdPwA", - "identifiers.value": [ + "id" : "6qjgnqbc", + "sourceIdentifier.value" : "Nr737MdPwA", + "identifiers.value" : [ "Nr737MdPwA" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-URSdB22MDV" + "title" : "title-URSdB22MDV" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"m\",\"label\":\"CD-Roms\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "m", + "label" : "CD-Roms" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "m", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "m", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Nr737MdPwA" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.8.json b/common/search/src/test/resources/test_documents/works.every-format.8.json index 8128c70d2..06bbdf02c 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.8.json +++ b/common/search/src/test/resources/test_documents/works.every-format.8.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.531681Z", - "id": "cwpfpixj", - "document": { - "debug": { - "source": { - "id": "cwpfpixj", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.380460Z", + "id" : "cwpfpixj", + "document" : { + "debug" : { + "source" : { + "id" : "cwpfpixj", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "D1YQhdjF03" + "ontologyType" : "Work", + "value" : "D1YQhdjF03" }, - "version": 69, - "modifiedTime": "1978-04-30T17:23:35Z" + "version" : 69, + "modifiedTime" : "1978-04-30T17:23:35Z" }, - "mergedTime": "1978-04-30T17:23:35Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1978-04-30T17:23:35Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "cwpfpixj", - "title": "title-f39tAr4kG6", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "cwpfpixj", + "title" : "title-f39tAr4kG6", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "D1YQhdjF03", - "type": "Identifier" + "value" : "D1YQhdjF03", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "cwpfpixj", - "sourceIdentifier.value": "D1YQhdjF03", - "identifiers.value": [ + "id" : "cwpfpixj", + "sourceIdentifier.value" : "D1YQhdjF03", + "identifiers.value" : [ "D1YQhdjF03" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-f39tAr4kG6" + "title" : "title-f39tAr4kG6" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "D1YQhdjF03" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.every-format.9.json b/common/search/src/test/resources/test_documents/works.every-format.9.json index 652dbe191..f24a237d5 100644 --- a/common/search/src/test/resources/test_documents/works.every-format.9.json +++ b/common/search/src/test/resources/test_documents/works.every-format.9.json @@ -1,188 +1,191 @@ { - "description": "works with every format", - "createdAt": "2024-11-13T08:43:26.532035Z", - "id": "6visru7m", - "document": { - "debug": { - "source": { - "id": "6visru7m", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with every format", + "createdAt" : "2024-11-25T15:15:12.380782Z", + "id" : "6visru7m", + "document" : { + "debug" : { + "source" : { + "id" : "6visru7m", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "ifN5hzpvxV" + "ontologyType" : "Work", + "value" : "ifN5hzpvxV" }, - "version": 58, - "modifiedTime": "1993-10-03T02:48:28Z" + "version" : 58, + "modifiedTime" : "1993-10-03T02:48:28Z" }, - "mergedTime": "1993-10-03T02:48:28Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1993-10-03T02:48:28Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "6visru7m", - "title": "title-Eoau6TjOf0", - "alternativeTitles": [ - ], - "workType": { - "id": "p", - "label": "Mixed materials", - "type": "Format" + "display" : { + "id" : "6visru7m", + "title" : "title-Eoau6TjOf0", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "p", + "label" : "Mixed materials", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "ifN5hzpvxV", - "type": "Identifier" + "value" : "ifN5hzpvxV", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "6visru7m", - "sourceIdentifier.value": "ifN5hzpvxV", - "identifiers.value": [ + "id" : "6visru7m", + "sourceIdentifier.value" : "ifN5hzpvxV", + "identifiers.value" : [ "ifN5hzpvxV" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-Eoau6TjOf0" + "title" : "title-Eoau6TjOf0" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"p\",\"label\":\"Mixed materials\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "p", + "label" : "Mixed materials" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "p", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "p", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ifN5hzpvxV" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.0.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.0.json index ce72832ac..d4856147b 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.0.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.0.json @@ -1,239 +1,242 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.635345Z", - "id": "e9alfxx5", - "document": { - "debug": { - "source": { - "id": "e9alfxx5", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.481446Z", + "id" : "e9alfxx5", + "document" : { + "debug" : { + "source" : { + "id" : "e9alfxx5", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "I95Gazclr9" + "ontologyType" : "Work", + "value" : "I95Gazclr9" }, - "version": 99, - "modifiedTime": "2029-10-27T02:35:11Z" + "version" : 99, + "modifiedTime" : "2029-10-27T02:35:11Z" }, - "mergedTime": "2029-10-27T02:35:11Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2029-10-27T02:35:11Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "e9alfxx5", - "title": "title-bPGXaLqwYH", - "alternativeTitles": [ + "display" : { + "id" : "e9alfxx5", + "title" : "title-bPGXaLqwYH", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "I95Gazclr9", - "type": "Identifier" + "value" : "I95Gazclr9", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "8tetlds3", - "identifiers": [ + "id" : "8tetlds3", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "TJcj7uta7H", - "type": "Identifier" + "value" : "TJcj7uta7H", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/sk7.jpg/info.json", - "credit": "Credit line: VBr7VL", - "linkText": "Link text: fab67TffQN", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/sk7.jpg/info.json", + "credit" : "Credit line: VBr7VL", + "linkText" : "Link text: fab67TffQN", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "restricted", - "label": "Restricted", - "type": "AccessStatus" + "status" : { + "id" : "restricted", + "label" : "Restricted", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "e9alfxx5", - "sourceIdentifier.value": "I95Gazclr9", - "identifiers.value": [ + "id" : "e9alfxx5", + "sourceIdentifier.value" : "I95Gazclr9", + "identifiers.value" : [ "I95Gazclr9" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "8tetlds3" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "TJcj7uta7H" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-bPGXaLqwYH" + "title" : "title-bPGXaLqwYH" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "I95Gazclr9" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "restricted" ], - "items.id": [ + "items.id" : [ "8tetlds3" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "TJcj7uta7H" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.1.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.1.json index 8612aebe8..07f12631b 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.1.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.1.json @@ -1,239 +1,242 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.635802Z", - "id": "xmya3fco", - "document": { - "debug": { - "source": { - "id": "xmya3fco", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.482072Z", + "id" : "xmya3fco", + "document" : { + "debug" : { + "source" : { + "id" : "xmya3fco", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "2KTE1hWM7i" + "ontologyType" : "Work", + "value" : "2KTE1hWM7i" }, - "version": 3, - "modifiedTime": "2013-12-02T22:04:38Z" + "version" : 3, + "modifiedTime" : "2013-12-02T22:04:38Z" }, - "mergedTime": "2013-12-02T22:04:38Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2013-12-02T22:04:38Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "xmya3fco", - "title": "title-y1hoMJJvcU", - "alternativeTitles": [ + "display" : { + "id" : "xmya3fco", + "title" : "title-y1hoMJJvcU", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "2KTE1hWM7i", - "type": "Identifier" + "value" : "2KTE1hWM7i", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "p5y6nhmj", - "identifiers": [ + "id" : "p5y6nhmj", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "383Pmg46QE", - "type": "Identifier" + "value" : "383Pmg46QE", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/hxo.jpg/info.json", - "credit": "Credit line: VFqtU49", - "linkText": "Link text: vqxD7y5YI", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/hxo.jpg/info.json", + "credit" : "Credit line: VFqtU49", + "linkText" : "Link text: vqxD7y5YI", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "restricted", - "label": "Restricted", - "type": "AccessStatus" + "status" : { + "id" : "restricted", + "label" : "Restricted", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "xmya3fco", - "sourceIdentifier.value": "2KTE1hWM7i", - "identifiers.value": [ + "id" : "xmya3fco", + "sourceIdentifier.value" : "2KTE1hWM7i", + "identifiers.value" : [ "2KTE1hWM7i" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "p5y6nhmj" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "383Pmg46QE" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-y1hoMJJvcU" + "title" : "title-y1hoMJJvcU" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "2KTE1hWM7i" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "restricted" ], - "items.id": [ + "items.id" : [ "p5y6nhmj" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "383Pmg46QE" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.2.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.2.json index a7a5ac5d7..7c9227308 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.2.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.2.json @@ -1,238 +1,241 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.636180Z", - "id": "1pknkhek", - "document": { - "debug": { - "source": { - "id": "1pknkhek", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.482483Z", + "id" : "1pknkhek", + "document" : { + "debug" : { + "source" : { + "id" : "1pknkhek", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "eKWAvLy8mU" + "ontologyType" : "Work", + "value" : "eKWAvLy8mU" }, - "version": 87, - "modifiedTime": "1954-11-04T23:55:41Z" + "version" : 87, + "modifiedTime" : "1954-11-04T23:55:41Z" }, - "mergedTime": "1954-11-04T23:55:41Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1954-11-04T23:55:41Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "1pknkhek", - "title": "title-l7z2IaIyPh", - "alternativeTitles": [ + "display" : { + "id" : "1pknkhek", + "title" : "title-l7z2IaIyPh", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "eKWAvLy8mU", - "type": "Identifier" + "value" : "eKWAvLy8mU", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "ojhcs580", - "identifiers": [ + "id" : "ojhcs580", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "NPfAWzhVvX", - "type": "Identifier" + "value" : "NPfAWzhVvX", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/dmV.jpg/info.json", - "linkText": "Link text: 9ffwz2O", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/dmV.jpg/info.json", + "linkText" : "Link text: 9ffwz2O", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "closed", - "label": "Closed", - "type": "AccessStatus" + "status" : { + "id" : "closed", + "label" : "Closed", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "1pknkhek", - "sourceIdentifier.value": "eKWAvLy8mU", - "identifiers.value": [ + "id" : "1pknkhek", + "sourceIdentifier.value" : "eKWAvLy8mU", + "identifiers.value" : [ "eKWAvLy8mU" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "ojhcs580" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "NPfAWzhVvX" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-l7z2IaIyPh" + "title" : "title-l7z2IaIyPh" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "eKWAvLy8mU" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "closed" ], - "items.id": [ + "items.id" : [ "ojhcs580" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "NPfAWzhVvX" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.3.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.3.json index 4bb320597..e855dc3ca 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.3.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.3.json @@ -1,245 +1,251 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.636580Z", - "id": "f1p8iujf", - "document": { - "debug": { - "source": { - "id": "f1p8iujf", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.482956Z", + "id" : "f1p8iujf", + "document" : { + "debug" : { + "source" : { + "id" : "f1p8iujf", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "3dCafwzrSa" + "ontologyType" : "Work", + "value" : "3dCafwzrSa" }, - "version": 96, - "modifiedTime": "2028-04-10T13:33:03Z" + "version" : 96, + "modifiedTime" : "2028-04-10T13:33:03Z" }, - "mergedTime": "2028-04-10T13:33:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2028-04-10T13:33:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "f1p8iujf", - "title": "title-YmrG23dzV6", - "alternativeTitles": [ + "display" : { + "id" : "f1p8iujf", + "title" : "title-YmrG23dzV6", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "3dCafwzrSa", - "type": "Identifier" + "value" : "3dCafwzrSa", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "oz1fy94z", - "identifiers": [ + "id" : "oz1fy94z", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "rLthDeNIu1", - "type": "Identifier" + "value" : "rLthDeNIu1", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/XTq.jpg/info.json", - "linkText": "Link text: nmb6il", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/XTq.jpg/info.json", + "linkText" : "Link text: nmb6il", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "open", - "label": "Open", - "type": "AccessStatus" + "status" : { + "id" : "open", + "label" : "Open", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "online", - "label": "Online", - "type": "Availability" + "id" : "online", + "label" : "Online", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "f1p8iujf", - "sourceIdentifier.value": "3dCafwzrSa", - "identifiers.value": [ + "id" : "f1p8iujf", + "sourceIdentifier.value" : "3dCafwzrSa", + "identifiers.value" : [ "3dCafwzrSa" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "oz1fy94z" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "rLthDeNIu1" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-YmrG23dzV6" + "title" : "title-YmrG23dzV6" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ - "{\"id\":\"online\",\"label\":\"Online\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "online", + "label" : "Online" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "3dCafwzrSa" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "open" ], - "items.id": [ + "items.id" : [ "oz1fy94z" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "rLthDeNIu1" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "online" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.4.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.4.json index 0fddac72d..506d7f0ff 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.4.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.4.json @@ -1,245 +1,251 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.636957Z", - "id": "n2u7aru7", - "document": { - "debug": { - "source": { - "id": "n2u7aru7", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.483422Z", + "id" : "n2u7aru7", + "document" : { + "debug" : { + "source" : { + "id" : "n2u7aru7", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "HrklHuS07i" + "ontologyType" : "Work", + "value" : "HrklHuS07i" }, - "version": 73, - "modifiedTime": "1979-09-22T19:35:19Z" + "version" : 73, + "modifiedTime" : "1979-09-22T19:35:19Z" }, - "mergedTime": "1979-09-22T19:35:19Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1979-09-22T19:35:19Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "n2u7aru7", - "title": "title-CiTs5auwvX", - "alternativeTitles": [ + "display" : { + "id" : "n2u7aru7", + "title" : "title-CiTs5auwvX", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "HrklHuS07i", - "type": "Identifier" + "value" : "HrklHuS07i", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "9xyhqdqn", - "identifiers": [ + "id" : "9xyhqdqn", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "XRANbEFIYK", - "type": "Identifier" + "value" : "XRANbEFIYK", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/SKp.jpg/info.json", - "linkText": "Link text: X5AiO63s6", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/SKp.jpg/info.json", + "linkText" : "Link text: X5AiO63s6", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "open-with-advisory", - "label": "Open with advisory", - "type": "AccessStatus" + "status" : { + "id" : "open-with-advisory", + "label" : "Open with advisory", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "online", - "label": "Online", - "type": "Availability" + "id" : "online", + "label" : "Online", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "n2u7aru7", - "sourceIdentifier.value": "HrklHuS07i", - "identifiers.value": [ + "id" : "n2u7aru7", + "sourceIdentifier.value" : "HrklHuS07i", + "identifiers.value" : [ "HrklHuS07i" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "9xyhqdqn" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "XRANbEFIYK" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-CiTs5auwvX" + "title" : "title-CiTs5auwvX" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ - "{\"id\":\"online\",\"label\":\"Online\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "online", + "label" : "Online" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "HrklHuS07i" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "open-with-advisory" ], - "items.id": [ + "items.id" : [ "9xyhqdqn" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "XRANbEFIYK" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "online" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.5.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.5.json index d2ef97cb0..d2ca1e1fc 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.5.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.5.json @@ -1,245 +1,251 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.637339Z", - "id": "8ezcyfql", - "document": { - "debug": { - "source": { - "id": "8ezcyfql", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.483991Z", + "id" : "8ezcyfql", + "document" : { + "debug" : { + "source" : { + "id" : "8ezcyfql", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "uDZSkVVbac" + "ontologyType" : "Work", + "value" : "uDZSkVVbac" }, - "version": 71, - "modifiedTime": "1955-12-31T01:30:20Z" + "version" : 71, + "modifiedTime" : "1955-12-31T01:30:20Z" }, - "mergedTime": "1955-12-31T01:30:20Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1955-12-31T01:30:20Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "8ezcyfql", - "title": "title-GTOMLJUBPs", - "alternativeTitles": [ + "display" : { + "id" : "8ezcyfql", + "title" : "title-GTOMLJUBPs", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "uDZSkVVbac", - "type": "Identifier" + "value" : "uDZSkVVbac", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "rk57syon", - "identifiers": [ + "id" : "rk57syon", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "rNNX4MZClE", - "type": "Identifier" + "value" : "rNNX4MZClE", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/vH8.jpg/info.json", - "linkText": "Link text: h1czKSHpT0", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/vH8.jpg/info.json", + "linkText" : "Link text: h1czKSHpT0", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "licensed-resources", - "label": "Licensed resources", - "type": "AccessStatus" + "status" : { + "id" : "licensed-resources", + "label" : "Licensed resources", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "online", - "label": "Online", - "type": "Availability" + "id" : "online", + "label" : "Online", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "8ezcyfql", - "sourceIdentifier.value": "uDZSkVVbac", - "identifiers.value": [ + "id" : "8ezcyfql", + "sourceIdentifier.value" : "uDZSkVVbac", + "identifiers.value" : [ "uDZSkVVbac" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "rk57syon" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "rNNX4MZClE" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-GTOMLJUBPs" + "title" : "title-GTOMLJUBPs" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ - "{\"id\":\"online\",\"label\":\"Online\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "online", + "label" : "Online" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "uDZSkVVbac" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "licensed-resources" ], - "items.id": [ + "items.id" : [ "rk57syon" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "rNNX4MZClE" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "online" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.6.json b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.6.json index 73d4401c8..49a8058f2 100644 --- a/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.6.json +++ b/common/search/src/test/resources/test_documents/works.examples.access-status-filters-tests.6.json @@ -1,238 +1,241 @@ { - "description": "examples for the access status tests", - "createdAt": "2024-11-13T08:43:26.637708Z", - "id": "dulkq8ny", - "document": { - "debug": { - "source": { - "id": "dulkq8ny", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the access status tests", + "createdAt" : "2024-11-25T15:15:12.484700Z", + "id" : "dulkq8ny", + "document" : { + "debug" : { + "source" : { + "id" : "dulkq8ny", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "HeUBhh45MM" + "ontologyType" : "Work", + "value" : "HeUBhh45MM" }, - "version": 16, - "modifiedTime": "2044-10-23T23:53:45Z" + "version" : 16, + "modifiedTime" : "2044-10-23T23:53:45Z" }, - "mergedTime": "2044-10-23T23:53:45Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2044-10-23T23:53:45Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "dulkq8ny", - "title": "title-jzx3mO0u9h", - "alternativeTitles": [ + "display" : { + "id" : "dulkq8ny", + "title" : "title-jzx3mO0u9h", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "HeUBhh45MM", - "type": "Identifier" + "value" : "HeUBhh45MM", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "sfx1ndk3", - "identifiers": [ + "id" : "sfx1ndk3", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "ONjKwKKAUF", - "type": "Identifier" + "value" : "ONjKwKKAUF", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/wtG.jpg/info.json", - "credit": "Credit line: O1husne0", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/wtG.jpg/info.json", + "credit" : "Credit line: O1husne0", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "manual-request", - "label": "Manual request", - "type": "AccessMethod" + "method" : { + "id" : "manual-request", + "label" : "Manual request", + "type" : "AccessMethod" }, - "status": { - "id": "licensed-resources", - "label": "Licensed resources", - "type": "AccessStatus" + "status" : { + "id" : "licensed-resources", + "label" : "Licensed resources", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "dulkq8ny", - "sourceIdentifier.value": "HeUBhh45MM", - "identifiers.value": [ + "id" : "dulkq8ny", + "sourceIdentifier.value" : "HeUBhh45MM", + "identifiers.value" : [ "HeUBhh45MM" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "sfx1ndk3" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "ONjKwKKAUF" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-jzx3mO0u9h" + "title" : "title-jzx3mO0u9h" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "HeUBhh45MM" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "licensed-resources" ], - "items.id": [ + "items.id" : [ "sfx1ndk3" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "ONjKwKKAUF" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.0.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.0.json index 47e4109e5..956a17fb0 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.0.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.0.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.570117Z", - "id": "vu0ulwn0", - "document": { - "debug": { - "source": { - "id": "vu0ulwn0", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.417330Z", + "id" : "vu0ulwn0", + "document" : { + "debug" : { + "source" : { + "id" : "vu0ulwn0", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "MOpZRqzugp" + "ontologyType" : "Work", + "value" : "MOpZRqzugp" }, - "version": 58, - "modifiedTime": "1999-06-22T21:21:08Z" + "version" : 58, + "modifiedTime" : "1999-06-22T21:21:08Z" }, - "mergedTime": "1999-06-22T21:21:08Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1999-06-22T21:21:08Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "vu0ulwn0", - "title": "title-8F6gzFFn0M", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "vu0ulwn0", + "title" : "title-8F6gzFFn0M", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "MOpZRqzugp", - "type": "Identifier" + "value" : "MOpZRqzugp", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "6rJpSUKd2d", - "concepts": [ + "label" : "6rJpSUKd2d", + "concepts" : [ { - "label": "biOiRlog5DCYVH5", - "type": "Concept" + "label" : "biOiRlog5DCYVH5", + "type" : "Concept" }, { - "label": "TP1tcWDr9iToVJb", - "type": "Concept" + "label" : "TP1tcWDr9iToVJb", + "type" : "Concept" }, { - "label": "p9ESZHkohLBqVqY", - "type": "Concept" + "label" : "p9ESZHkohLBqVqY", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "vu0ulwn0", - "sourceIdentifier.value": "MOpZRqzugp", - "identifiers.value": [ + "id" : "vu0ulwn0", + "sourceIdentifier.value" : "MOpZRqzugp", + "identifiers.value" : [ "MOpZRqzugp" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "biOiRlog5DCYVH5", "TP1tcWDr9iToVJb", "p9ESZHkohLBqVqY" ], - "title": "title-8F6gzFFn0M" + "title" : "title-8F6gzFFn0M" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"6rJpSUKd2d\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "6rJpSUKd2d", + "label" : "6rJpSUKd2d" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "6rJpSUKd2d" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "MOpZRqzugp" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.1.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.1.json index e21154f19..de9e67d33 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.1.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.1.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.570591Z", - "id": "k9rmsgky", - "document": { - "debug": { - "source": { - "id": "k9rmsgky", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.417729Z", + "id" : "k9rmsgky", + "document" : { + "debug" : { + "source" : { + "id" : "k9rmsgky", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "Sw2fZgItN5" + "ontologyType" : "Work", + "value" : "Sw2fZgItN5" }, - "version": 75, - "modifiedTime": "1939-02-16T16:18:24Z" + "version" : 75, + "modifiedTime" : "1939-02-16T16:18:24Z" }, - "mergedTime": "1939-02-16T16:18:24Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1939-02-16T16:18:24Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "k9rmsgky", - "title": "title-11WyiVFCED", - "alternativeTitles": [ - ], - "workType": { - "id": "q", - "label": "Digital Images", - "type": "Format" + "display" : { + "id" : "k9rmsgky", + "title" : "title-11WyiVFCED", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "q", + "label" : "Digital Images", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "Sw2fZgItN5", - "type": "Identifier" + "value" : "Sw2fZgItN5", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "6rJpSUKd2d", - "concepts": [ + "label" : "6rJpSUKd2d", + "concepts" : [ { - "label": "biOiRlog5DCYVH5", - "type": "Concept" + "label" : "biOiRlog5DCYVH5", + "type" : "Concept" }, { - "label": "TP1tcWDr9iToVJb", - "type": "Concept" + "label" : "TP1tcWDr9iToVJb", + "type" : "Concept" }, { - "label": "p9ESZHkohLBqVqY", - "type": "Concept" + "label" : "p9ESZHkohLBqVqY", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "k9rmsgky", - "sourceIdentifier.value": "Sw2fZgItN5", - "identifiers.value": [ + "id" : "k9rmsgky", + "sourceIdentifier.value" : "Sw2fZgItN5", + "identifiers.value" : [ "Sw2fZgItN5" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "biOiRlog5DCYVH5", "TP1tcWDr9iToVJb", "p9ESZHkohLBqVqY" ], - "title": "title-11WyiVFCED" + "title" : "title-11WyiVFCED" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"q\",\"label\":\"Digital Images\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "q", + "label" : "Digital Images" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"6rJpSUKd2d\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "6rJpSUKd2d", + "label" : "6rJpSUKd2d" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "q", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "q", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "6rJpSUKd2d" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Sw2fZgItN5" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.10.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.10.json index 9de391e0a..6d146571e 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.10.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.10.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.574762Z", - "id": "lusxgqii", - "document": { - "debug": { - "source": { - "id": "lusxgqii", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.421401Z", + "id" : "lusxgqii", + "document" : { + "debug" : { + "source" : { + "id" : "lusxgqii", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "SVR3x3Cael" + "ontologyType" : "Work", + "value" : "SVR3x3Cael" }, - "version": 38, - "modifiedTime": "1998-04-06T11:45:48Z" + "version" : 38, + "modifiedTime" : "1998-04-06T11:45:48Z" }, - "mergedTime": "1998-04-06T11:45:48Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1998-04-06T11:45:48Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "lusxgqii", - "title": "title-3BP7HD59gW", - "alternativeTitles": [ - ], - "workType": { - "id": "i", - "label": "Audio", - "type": "Format" + "display" : { + "id" : "lusxgqii", + "title" : "title-3BP7HD59gW", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "i", + "label" : "Audio", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "SVR3x3Cael", - "type": "Identifier" + "value" : "SVR3x3Cael", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "S4hioTvwQl", - "concepts": [ + "label" : "S4hioTvwQl", + "concepts" : [ { - "label": "eJkqVbD7mxTT1Dn", - "type": "Concept" + "label" : "eJkqVbD7mxTT1Dn", + "type" : "Concept" }, { - "label": "ad9SceRNaTElZtf", - "type": "Concept" + "label" : "ad9SceRNaTElZtf", + "type" : "Concept" }, { - "label": "G4qEc4MTvdPAcgp", - "type": "Concept" + "label" : "G4qEc4MTvdPAcgp", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "lusxgqii", - "sourceIdentifier.value": "SVR3x3Cael", - "identifiers.value": [ + "id" : "lusxgqii", + "sourceIdentifier.value" : "SVR3x3Cael", + "identifiers.value" : [ "SVR3x3Cael" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "eJkqVbD7mxTT1Dn", "ad9SceRNaTElZtf", "G4qEc4MTvdPAcgp" ], - "title": "title-3BP7HD59gW" + "title" : "title-3BP7HD59gW" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"i\",\"label\":\"Audio\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "i", + "label" : "Audio" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"S4hioTvwQl\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "S4hioTvwQl", + "label" : "S4hioTvwQl" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "i", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "i", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "S4hioTvwQl" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "SVR3x3Cael" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.11.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.11.json index 49129e7d0..c448d8395 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.11.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.11.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.575582Z", - "id": "uwotqemj", - "document": { - "debug": { - "source": { - "id": "uwotqemj", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.421737Z", + "id" : "uwotqemj", + "document" : { + "debug" : { + "source" : { + "id" : "uwotqemj", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "w4lFJUZazq" + "ontologyType" : "Work", + "value" : "w4lFJUZazq" }, - "version": 90, - "modifiedTime": "2017-05-26T17:27:26Z" + "version" : 90, + "modifiedTime" : "2017-05-26T17:27:26Z" }, - "mergedTime": "2017-05-26T17:27:26Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2017-05-26T17:27:26Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "uwotqemj", - "title": "title-yTPyW5z3uV", - "alternativeTitles": [ - ], - "workType": { - "id": "g", - "label": "Videos", - "type": "Format" + "display" : { + "id" : "uwotqemj", + "title" : "title-yTPyW5z3uV", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "g", + "label" : "Videos", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "w4lFJUZazq", - "type": "Identifier" + "value" : "w4lFJUZazq", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "S4hioTvwQl", - "concepts": [ + "label" : "S4hioTvwQl", + "concepts" : [ { - "label": "eJkqVbD7mxTT1Dn", - "type": "Concept" + "label" : "eJkqVbD7mxTT1Dn", + "type" : "Concept" }, { - "label": "ad9SceRNaTElZtf", - "type": "Concept" + "label" : "ad9SceRNaTElZtf", + "type" : "Concept" }, { - "label": "G4qEc4MTvdPAcgp", - "type": "Concept" + "label" : "G4qEc4MTvdPAcgp", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "uwotqemj", - "sourceIdentifier.value": "w4lFJUZazq", - "identifiers.value": [ + "id" : "uwotqemj", + "sourceIdentifier.value" : "w4lFJUZazq", + "identifiers.value" : [ "w4lFJUZazq" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "eJkqVbD7mxTT1Dn", "ad9SceRNaTElZtf", "G4qEc4MTvdPAcgp" ], - "title": "title-yTPyW5z3uV" + "title" : "title-yTPyW5z3uV" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"g\",\"label\":\"Videos\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "g", + "label" : "Videos" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"S4hioTvwQl\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "S4hioTvwQl", + "label" : "S4hioTvwQl" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "g", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "g", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "S4hioTvwQl" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "w4lFJUZazq" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.12.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.12.json index aefdd2e18..0ce1a5dfe 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.12.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.12.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.576430Z", - "id": "tbkbsxzf", - "document": { - "debug": { - "source": { - "id": "tbkbsxzf", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.422085Z", + "id" : "tbkbsxzf", + "document" : { + "debug" : { + "source" : { + "id" : "tbkbsxzf", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "5HlMPZzhLJ" + "ontologyType" : "Work", + "value" : "5HlMPZzhLJ" }, - "version": 50, - "modifiedTime": "2003-11-07T03:23:26Z" + "version" : 50, + "modifiedTime" : "2003-11-07T03:23:26Z" }, - "mergedTime": "2003-11-07T03:23:26Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2003-11-07T03:23:26Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "tbkbsxzf", - "title": "title-7HDIlUXQf0", - "alternativeTitles": [ - ], - "workType": { - "id": "h", - "label": "Archives and manuscripts", - "type": "Format" + "display" : { + "id" : "tbkbsxzf", + "title" : "title-7HDIlUXQf0", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "h", + "label" : "Archives and manuscripts", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "5HlMPZzhLJ", - "type": "Identifier" + "value" : "5HlMPZzhLJ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "fIbfVPkqaf", - "concepts": [ + "label" : "fIbfVPkqaf", + "concepts" : [ { - "label": "Pgpz7am59I9Cwkj", - "type": "Concept" + "label" : "Pgpz7am59I9Cwkj", + "type" : "Concept" }, { - "label": "zoIhNdLDgGiVW1m", - "type": "Concept" + "label" : "zoIhNdLDgGiVW1m", + "type" : "Concept" }, { - "label": "Q40pgbiIgGzgYBC", - "type": "Concept" + "label" : "Q40pgbiIgGzgYBC", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "tbkbsxzf", - "sourceIdentifier.value": "5HlMPZzhLJ", - "identifiers.value": [ + "id" : "tbkbsxzf", + "sourceIdentifier.value" : "5HlMPZzhLJ", + "identifiers.value" : [ "5HlMPZzhLJ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "Pgpz7am59I9Cwkj", "zoIhNdLDgGiVW1m", "Q40pgbiIgGzgYBC" ], - "title": "title-7HDIlUXQf0" + "title" : "title-7HDIlUXQf0" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"h\",\"label\":\"Archives and manuscripts\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "h", + "label" : "Archives and manuscripts" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"fIbfVPkqaf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "fIbfVPkqaf", + "label" : "fIbfVPkqaf" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "h", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "h", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "fIbfVPkqaf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "5HlMPZzhLJ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.13.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.13.json index 9ea65a4a9..dc0d0879f 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.13.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.13.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.576975Z", - "id": "qr2rdsof", - "document": { - "debug": { - "source": { - "id": "qr2rdsof", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.422473Z", + "id" : "qr2rdsof", + "document" : { + "debug" : { + "source" : { + "id" : "qr2rdsof", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "b5lYlQvQzS" + "ontologyType" : "Work", + "value" : "b5lYlQvQzS" }, - "version": 25, - "modifiedTime": "1934-10-12T18:01:51Z" + "version" : 25, + "modifiedTime" : "1934-10-12T18:01:51Z" }, - "mergedTime": "1934-10-12T18:01:51Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1934-10-12T18:01:51Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "qr2rdsof", - "title": "title-PTXo35aec2", - "alternativeTitles": [ - ], - "workType": { - "id": "hdig", - "label": "Born-digital archives", - "type": "Format" + "display" : { + "id" : "qr2rdsof", + "title" : "title-PTXo35aec2", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "hdig", + "label" : "Born-digital archives", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "b5lYlQvQzS", - "type": "Identifier" + "value" : "b5lYlQvQzS", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "fIbfVPkqaf", - "concepts": [ + "label" : "fIbfVPkqaf", + "concepts" : [ { - "label": "Pgpz7am59I9Cwkj", - "type": "Concept" + "label" : "Pgpz7am59I9Cwkj", + "type" : "Concept" }, { - "label": "zoIhNdLDgGiVW1m", - "type": "Concept" + "label" : "zoIhNdLDgGiVW1m", + "type" : "Concept" }, { - "label": "Q40pgbiIgGzgYBC", - "type": "Concept" + "label" : "Q40pgbiIgGzgYBC", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "qr2rdsof", - "sourceIdentifier.value": "b5lYlQvQzS", - "identifiers.value": [ + "id" : "qr2rdsof", + "sourceIdentifier.value" : "b5lYlQvQzS", + "identifiers.value" : [ "b5lYlQvQzS" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "Pgpz7am59I9Cwkj", "zoIhNdLDgGiVW1m", "Q40pgbiIgGzgYBC" ], - "title": "title-PTXo35aec2" + "title" : "title-PTXo35aec2" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"hdig\",\"label\":\"Born-digital archives\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "hdig", + "label" : "Born-digital archives" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"fIbfVPkqaf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "fIbfVPkqaf", + "label" : "fIbfVPkqaf" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "hdig", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "hdig", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "fIbfVPkqaf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "b5lYlQvQzS" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.14.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.14.json index 0f12fd9f8..c27df4367 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.14.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.14.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.577496Z", - "id": "5klfzrze", - "document": { - "debug": { - "source": { - "id": "5klfzrze", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.422878Z", + "id" : "5klfzrze", + "document" : { + "debug" : { + "source" : { + "id" : "5klfzrze", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "Iw5fNUyylf" + "ontologyType" : "Work", + "value" : "Iw5fNUyylf" }, - "version": 52, - "modifiedTime": "1983-11-07T09:48:39Z" + "version" : 52, + "modifiedTime" : "1983-11-07T09:48:39Z" }, - "mergedTime": "1983-11-07T09:48:39Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1983-11-07T09:48:39Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "5klfzrze", - "title": "title-XXZiS5MlN0", - "alternativeTitles": [ - ], - "workType": { - "id": "n", - "label": "Film", - "type": "Format" + "display" : { + "id" : "5klfzrze", + "title" : "title-XXZiS5MlN0", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "n", + "label" : "Film", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Iw5fNUyylf", - "type": "Identifier" + "value" : "Iw5fNUyylf", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "fIbfVPkqaf", - "concepts": [ + "label" : "fIbfVPkqaf", + "concepts" : [ { - "label": "Pgpz7am59I9Cwkj", - "type": "Concept" + "label" : "Pgpz7am59I9Cwkj", + "type" : "Concept" }, { - "label": "zoIhNdLDgGiVW1m", - "type": "Concept" + "label" : "zoIhNdLDgGiVW1m", + "type" : "Concept" }, { - "label": "Q40pgbiIgGzgYBC", - "type": "Concept" + "label" : "Q40pgbiIgGzgYBC", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "5klfzrze", - "sourceIdentifier.value": "Iw5fNUyylf", - "identifiers.value": [ + "id" : "5klfzrze", + "sourceIdentifier.value" : "Iw5fNUyylf", + "identifiers.value" : [ "Iw5fNUyylf" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "Pgpz7am59I9Cwkj", "zoIhNdLDgGiVW1m", "Q40pgbiIgGzgYBC" ], - "title": "title-XXZiS5MlN0" + "title" : "title-XXZiS5MlN0" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"n\",\"label\":\"Film\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "n", + "label" : "Film" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"fIbfVPkqaf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "fIbfVPkqaf", + "label" : "fIbfVPkqaf" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "n", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "n", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "fIbfVPkqaf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Iw5fNUyylf" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.15.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.15.json index b6f0a17bf..87cf3f36c 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.15.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.15.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.578031Z", - "id": "lwpiautl", - "document": { - "debug": { - "source": { - "id": "lwpiautl", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.423268Z", + "id" : "lwpiautl", + "document" : { + "debug" : { + "source" : { + "id" : "lwpiautl", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "2tqCcLh1PJ" + "ontologyType" : "Work", + "value" : "2tqCcLh1PJ" }, - "version": 33, - "modifiedTime": "2049-05-05T22:23:19Z" + "version" : 33, + "modifiedTime" : "2049-05-05T22:23:19Z" }, - "mergedTime": "2049-05-05T22:23:19Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2049-05-05T22:23:19Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "lwpiautl", - "title": "title-kWyW6CgVzw", - "alternativeTitles": [ - ], - "workType": { - "id": "b", - "label": "Manuscripts", - "type": "Format" + "display" : { + "id" : "lwpiautl", + "title" : "title-kWyW6CgVzw", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "b", + "label" : "Manuscripts", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "2tqCcLh1PJ", - "type": "Identifier" + "value" : "2tqCcLh1PJ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "fIbfVPkqaf", - "concepts": [ + "label" : "fIbfVPkqaf", + "concepts" : [ { - "label": "Pgpz7am59I9Cwkj", - "type": "Concept" + "label" : "Pgpz7am59I9Cwkj", + "type" : "Concept" }, { - "label": "zoIhNdLDgGiVW1m", - "type": "Concept" + "label" : "zoIhNdLDgGiVW1m", + "type" : "Concept" }, { - "label": "Q40pgbiIgGzgYBC", - "type": "Concept" + "label" : "Q40pgbiIgGzgYBC", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "lwpiautl", - "sourceIdentifier.value": "2tqCcLh1PJ", - "identifiers.value": [ + "id" : "lwpiautl", + "sourceIdentifier.value" : "2tqCcLh1PJ", + "identifiers.value" : [ "2tqCcLh1PJ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "Pgpz7am59I9Cwkj", "zoIhNdLDgGiVW1m", "Q40pgbiIgGzgYBC" ], - "title": "title-kWyW6CgVzw" + "title" : "title-kWyW6CgVzw" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"b\",\"label\":\"Manuscripts\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "b", + "label" : "Manuscripts" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"fIbfVPkqaf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "fIbfVPkqaf", + "label" : "fIbfVPkqaf" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "b", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "b", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "fIbfVPkqaf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "2tqCcLh1PJ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.16.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.16.json index 384c2d77f..f124adcf9 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.16.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.16.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.578486Z", - "id": "ior3tm3c", - "document": { - "debug": { - "source": { - "id": "ior3tm3c", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.423639Z", + "id" : "ior3tm3c", + "document" : { + "debug" : { + "source" : { + "id" : "ior3tm3c", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "FndKxMxs7k" + "ontologyType" : "Work", + "value" : "FndKxMxs7k" }, - "version": 73, - "modifiedTime": "1966-09-05T20:54:00Z" + "version" : 73, + "modifiedTime" : "1966-09-05T20:54:00Z" }, - "mergedTime": "1966-09-05T20:54:00Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1966-09-05T20:54:00Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ior3tm3c", - "title": "title-Oqp5RA4f5g", - "alternativeTitles": [ - ], - "workType": { - "id": "c", - "label": "Music", - "type": "Format" + "display" : { + "id" : "ior3tm3c", + "title" : "title-Oqp5RA4f5g", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "c", + "label" : "Music", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "FndKxMxs7k", - "type": "Identifier" + "value" : "FndKxMxs7k", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "fIbfVPkqaf", - "concepts": [ + "label" : "fIbfVPkqaf", + "concepts" : [ { - "label": "Pgpz7am59I9Cwkj", - "type": "Concept" + "label" : "Pgpz7am59I9Cwkj", + "type" : "Concept" }, { - "label": "zoIhNdLDgGiVW1m", - "type": "Concept" + "label" : "zoIhNdLDgGiVW1m", + "type" : "Concept" }, { - "label": "Q40pgbiIgGzgYBC", - "type": "Concept" + "label" : "Q40pgbiIgGzgYBC", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ior3tm3c", - "sourceIdentifier.value": "FndKxMxs7k", - "identifiers.value": [ + "id" : "ior3tm3c", + "sourceIdentifier.value" : "FndKxMxs7k", + "identifiers.value" : [ "FndKxMxs7k" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "Pgpz7am59I9Cwkj", "zoIhNdLDgGiVW1m", "Q40pgbiIgGzgYBC" ], - "title": "title-Oqp5RA4f5g" + "title" : "title-Oqp5RA4f5g" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"c\",\"label\":\"Music\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "c", + "label" : "Music" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"fIbfVPkqaf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "fIbfVPkqaf", + "label" : "fIbfVPkqaf" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "c", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "c", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "fIbfVPkqaf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "FndKxMxs7k" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.17.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.17.json index f2f53b7cb..2b0511eb6 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.17.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.17.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.578921Z", - "id": "bpisihnt", - "document": { - "debug": { - "source": { - "id": "bpisihnt", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.423987Z", + "id" : "bpisihnt", + "document" : { + "debug" : { + "source" : { + "id" : "bpisihnt", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "IptlxE0qlB" + "ontologyType" : "Work", + "value" : "IptlxE0qlB" }, - "version": 96, - "modifiedTime": "1998-11-30T20:57:58Z" + "version" : 96, + "modifiedTime" : "1998-11-30T20:57:58Z" }, - "mergedTime": "1998-11-30T20:57:58Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1998-11-30T20:57:58Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "bpisihnt", - "title": "title-JBs3eSemcG", - "alternativeTitles": [ - ], - "workType": { - "id": "u", - "label": "Standing order", - "type": "Format" + "display" : { + "id" : "bpisihnt", + "title" : "title-JBs3eSemcG", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "u", + "label" : "Standing order", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "IptlxE0qlB", - "type": "Identifier" + "value" : "IptlxE0qlB", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "fIbfVPkqaf", - "concepts": [ + "label" : "fIbfVPkqaf", + "concepts" : [ { - "label": "Pgpz7am59I9Cwkj", - "type": "Concept" + "label" : "Pgpz7am59I9Cwkj", + "type" : "Concept" }, { - "label": "zoIhNdLDgGiVW1m", - "type": "Concept" + "label" : "zoIhNdLDgGiVW1m", + "type" : "Concept" }, { - "label": "Q40pgbiIgGzgYBC", - "type": "Concept" + "label" : "Q40pgbiIgGzgYBC", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "bpisihnt", - "sourceIdentifier.value": "IptlxE0qlB", - "identifiers.value": [ + "id" : "bpisihnt", + "sourceIdentifier.value" : "IptlxE0qlB", + "identifiers.value" : [ "IptlxE0qlB" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "Pgpz7am59I9Cwkj", "zoIhNdLDgGiVW1m", "Q40pgbiIgGzgYBC" ], - "title": "title-JBs3eSemcG" + "title" : "title-JBs3eSemcG" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"u\",\"label\":\"Standing order\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "u", + "label" : "Standing order" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"fIbfVPkqaf\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "fIbfVPkqaf", + "label" : "fIbfVPkqaf" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "u", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "u", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "fIbfVPkqaf" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "IptlxE0qlB" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.18.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.18.json index 0801043d7..913a2a6f8 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.18.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.18.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.579361Z", - "id": "gms4hdjm", - "document": { - "debug": { - "source": { - "id": "gms4hdjm", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.424327Z", + "id" : "gms4hdjm", + "document" : { + "debug" : { + "source" : { + "id" : "gms4hdjm", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "Xd87ZYKrzx" + "ontologyType" : "Work", + "value" : "Xd87ZYKrzx" }, - "version": 78, - "modifiedTime": "2057-03-30T08:52:31Z" + "version" : 78, + "modifiedTime" : "2057-03-30T08:52:31Z" }, - "mergedTime": "2057-03-30T08:52:31Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2057-03-30T08:52:31Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "gms4hdjm", - "title": "title-ToBweq2UFK", - "alternativeTitles": [ - ], - "workType": { - "id": "z", - "label": "Web sites", - "type": "Format" + "display" : { + "id" : "gms4hdjm", + "title" : "title-ToBweq2UFK", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "z", + "label" : "Web sites", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "Xd87ZYKrzx", - "type": "Identifier" + "value" : "Xd87ZYKrzx", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "hQnFei9OwD", - "concepts": [ + "label" : "hQnFei9OwD", + "concepts" : [ { - "label": "HmXSsBa8UqTG3Gu", - "type": "Concept" + "label" : "HmXSsBa8UqTG3Gu", + "type" : "Concept" }, { - "label": "W07LA7wtXxMtg7d", - "type": "Concept" + "label" : "W07LA7wtXxMtg7d", + "type" : "Concept" }, { - "label": "koPI8hxmCeKjABF", - "type": "Concept" + "label" : "koPI8hxmCeKjABF", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "gms4hdjm", - "sourceIdentifier.value": "Xd87ZYKrzx", - "identifiers.value": [ + "id" : "gms4hdjm", + "sourceIdentifier.value" : "Xd87ZYKrzx", + "identifiers.value" : [ "Xd87ZYKrzx" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "HmXSsBa8UqTG3Gu", "W07LA7wtXxMtg7d", "koPI8hxmCeKjABF" ], - "title": "title-ToBweq2UFK" + "title" : "title-ToBweq2UFK" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"z\",\"label\":\"Web sites\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "z", + "label" : "Web sites" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"hQnFei9OwD\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "hQnFei9OwD", + "label" : "hQnFei9OwD" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "z", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "z", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "hQnFei9OwD" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Xd87ZYKrzx" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.19.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.19.json index befe52759..1013e6cb5 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.19.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.19.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.579805Z", - "id": "kw3kldau", - "document": { - "debug": { - "source": { - "id": "kw3kldau", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.424679Z", + "id" : "kw3kldau", + "document" : { + "debug" : { + "source" : { + "id" : "kw3kldau", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "lzYfNgtG1S" + "ontologyType" : "Work", + "value" : "lzYfNgtG1S" }, - "version": 8, - "modifiedTime": "1959-09-06T22:36:54Z" + "version" : 8, + "modifiedTime" : "1959-09-06T22:36:54Z" }, - "mergedTime": "1959-09-06T22:36:54Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1959-09-06T22:36:54Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "kw3kldau", - "title": "title-4GKNsXvX3N", - "alternativeTitles": [ - ], - "workType": { - "id": "v", - "label": "E-books", - "type": "Format" + "display" : { + "id" : "kw3kldau", + "title" : "title-4GKNsXvX3N", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "v", + "label" : "E-books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "lzYfNgtG1S", - "type": "Identifier" + "value" : "lzYfNgtG1S", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "hQnFei9OwD", - "concepts": [ + "label" : "hQnFei9OwD", + "concepts" : [ { - "label": "HmXSsBa8UqTG3Gu", - "type": "Concept" + "label" : "HmXSsBa8UqTG3Gu", + "type" : "Concept" }, { - "label": "W07LA7wtXxMtg7d", - "type": "Concept" + "label" : "W07LA7wtXxMtg7d", + "type" : "Concept" }, { - "label": "koPI8hxmCeKjABF", - "type": "Concept" + "label" : "koPI8hxmCeKjABF", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "kw3kldau", - "sourceIdentifier.value": "lzYfNgtG1S", - "identifiers.value": [ + "id" : "kw3kldau", + "sourceIdentifier.value" : "lzYfNgtG1S", + "identifiers.value" : [ "lzYfNgtG1S" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "HmXSsBa8UqTG3Gu", "W07LA7wtXxMtg7d", "koPI8hxmCeKjABF" ], - "title": "title-4GKNsXvX3N" + "title" : "title-4GKNsXvX3N" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"v\",\"label\":\"E-books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "v", + "label" : "E-books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"hQnFei9OwD\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "hQnFei9OwD", + "label" : "hQnFei9OwD" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "v", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "v", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "hQnFei9OwD" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "lzYfNgtG1S" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.2.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.2.json index 6aaa13f12..7bbd01c23 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.2.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.2.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.571063Z", - "id": "zh75axbz", - "document": { - "debug": { - "source": { - "id": "zh75axbz", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.418307Z", + "id" : "zh75axbz", + "document" : { + "debug" : { + "source" : { + "id" : "zh75axbz", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "4ElQJncU8p" + "ontologyType" : "Work", + "value" : "4ElQJncU8p" }, - "version": 97, - "modifiedTime": "1962-06-27T00:05:10Z" + "version" : 97, + "modifiedTime" : "1962-06-27T00:05:10Z" }, - "mergedTime": "1962-06-27T00:05:10Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1962-06-27T00:05:10Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "zh75axbz", - "title": "title-v3a33KTr4g", - "alternativeTitles": [ - ], - "workType": { - "id": "l", - "label": "Ephemera", - "type": "Format" + "display" : { + "id" : "zh75axbz", + "title" : "title-v3a33KTr4g", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "l", + "label" : "Ephemera", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "4ElQJncU8p", - "type": "Identifier" + "value" : "4ElQJncU8p", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "6rJpSUKd2d", - "concepts": [ + "label" : "6rJpSUKd2d", + "concepts" : [ { - "label": "biOiRlog5DCYVH5", - "type": "Concept" + "label" : "biOiRlog5DCYVH5", + "type" : "Concept" }, { - "label": "TP1tcWDr9iToVJb", - "type": "Concept" + "label" : "TP1tcWDr9iToVJb", + "type" : "Concept" }, { - "label": "p9ESZHkohLBqVqY", - "type": "Concept" + "label" : "p9ESZHkohLBqVqY", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "zh75axbz", - "sourceIdentifier.value": "4ElQJncU8p", - "identifiers.value": [ + "id" : "zh75axbz", + "sourceIdentifier.value" : "4ElQJncU8p", + "identifiers.value" : [ "4ElQJncU8p" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "biOiRlog5DCYVH5", "TP1tcWDr9iToVJb", "p9ESZHkohLBqVqY" ], - "title": "title-v3a33KTr4g" + "title" : "title-v3a33KTr4g" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"l\",\"label\":\"Ephemera\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "l", + "label" : "Ephemera" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"6rJpSUKd2d\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "6rJpSUKd2d", + "label" : "6rJpSUKd2d" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "l", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "l", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "6rJpSUKd2d" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "4ElQJncU8p" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.20.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.20.json index 600288852..d80c03f64 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.20.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.20.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.580295Z", - "id": "lmxtr1wn", - "document": { - "debug": { - "source": { - "id": "lmxtr1wn", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.425042Z", + "id" : "lmxtr1wn", + "document" : { + "debug" : { + "source" : { + "id" : "lmxtr1wn", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "IXCFVccBcF" + "ontologyType" : "Work", + "value" : "IXCFVccBcF" }, - "version": 47, - "modifiedTime": "2040-03-06T15:16:33Z" + "version" : 47, + "modifiedTime" : "2040-03-06T15:16:33Z" }, - "mergedTime": "2040-03-06T15:16:33Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2040-03-06T15:16:33Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "lmxtr1wn", - "title": "title-mlLNPr0YHU", - "alternativeTitles": [ - ], - "workType": { - "id": "s", - "label": "E-sound", - "type": "Format" + "display" : { + "id" : "lmxtr1wn", + "title" : "title-mlLNPr0YHU", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "s", + "label" : "E-sound", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "IXCFVccBcF", - "type": "Identifier" + "value" : "IXCFVccBcF", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "hQnFei9OwD", - "concepts": [ + "label" : "hQnFei9OwD", + "concepts" : [ { - "label": "HmXSsBa8UqTG3Gu", - "type": "Concept" + "label" : "HmXSsBa8UqTG3Gu", + "type" : "Concept" }, { - "label": "W07LA7wtXxMtg7d", - "type": "Concept" + "label" : "W07LA7wtXxMtg7d", + "type" : "Concept" }, { - "label": "koPI8hxmCeKjABF", - "type": "Concept" + "label" : "koPI8hxmCeKjABF", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "lmxtr1wn", - "sourceIdentifier.value": "IXCFVccBcF", - "identifiers.value": [ + "id" : "lmxtr1wn", + "sourceIdentifier.value" : "IXCFVccBcF", + "identifiers.value" : [ "IXCFVccBcF" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "HmXSsBa8UqTG3Gu", "W07LA7wtXxMtg7d", "koPI8hxmCeKjABF" ], - "title": "title-mlLNPr0YHU" + "title" : "title-mlLNPr0YHU" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"s\",\"label\":\"E-sound\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "s", + "label" : "E-sound" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"hQnFei9OwD\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "hQnFei9OwD", + "label" : "hQnFei9OwD" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "s", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "s", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "hQnFei9OwD" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "IXCFVccBcF" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.21.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.21.json index b263c1394..30a115234 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.21.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.21.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.580736Z", - "id": "exjvuylz", - "document": { - "debug": { - "source": { - "id": "exjvuylz", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.425544Z", + "id" : "exjvuylz", + "document" : { + "debug" : { + "source" : { + "id" : "exjvuylz", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "7V2pOSQnJO" + "ontologyType" : "Work", + "value" : "7V2pOSQnJO" }, - "version": 50, - "modifiedTime": "1971-07-30T21:22:12Z" + "version" : 50, + "modifiedTime" : "1971-07-30T21:22:12Z" }, - "mergedTime": "1971-07-30T21:22:12Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1971-07-30T21:22:12Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "exjvuylz", - "title": "title-BDWIViYo3q", - "alternativeTitles": [ - ], - "workType": { - "id": "j", - "label": "E-journals", - "type": "Format" + "display" : { + "id" : "exjvuylz", + "title" : "title-BDWIViYo3q", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "j", + "label" : "E-journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "7V2pOSQnJO", - "type": "Identifier" + "value" : "7V2pOSQnJO", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "hQnFei9OwD", - "concepts": [ + "label" : "hQnFei9OwD", + "concepts" : [ { - "label": "HmXSsBa8UqTG3Gu", - "type": "Concept" + "label" : "HmXSsBa8UqTG3Gu", + "type" : "Concept" }, { - "label": "W07LA7wtXxMtg7d", - "type": "Concept" + "label" : "W07LA7wtXxMtg7d", + "type" : "Concept" }, { - "label": "koPI8hxmCeKjABF", - "type": "Concept" + "label" : "koPI8hxmCeKjABF", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "exjvuylz", - "sourceIdentifier.value": "7V2pOSQnJO", - "identifiers.value": [ + "id" : "exjvuylz", + "sourceIdentifier.value" : "7V2pOSQnJO", + "identifiers.value" : [ "7V2pOSQnJO" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "HmXSsBa8UqTG3Gu", "W07LA7wtXxMtg7d", "koPI8hxmCeKjABF" ], - "title": "title-BDWIViYo3q" + "title" : "title-BDWIViYo3q" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"j\",\"label\":\"E-journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "j", + "label" : "E-journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"hQnFei9OwD\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "hQnFei9OwD", + "label" : "hQnFei9OwD" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "j", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "j", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "hQnFei9OwD" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "7V2pOSQnJO" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.22.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.22.json index 81d212727..c695a0703 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.22.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.22.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.581174Z", - "id": "fnqpflgg", - "document": { - "debug": { - "source": { - "id": "fnqpflgg", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.426Z", + "id" : "fnqpflgg", + "document" : { + "debug" : { + "source" : { + "id" : "fnqpflgg", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "J0y4QwQTlr" + "ontologyType" : "Work", + "value" : "J0y4QwQTlr" }, - "version": 57, - "modifiedTime": "1967-06-20T04:44:31Z" + "version" : 57, + "modifiedTime" : "1967-06-20T04:44:31Z" }, - "mergedTime": "1967-06-20T04:44:31Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1967-06-20T04:44:31Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "fnqpflgg", - "title": "title-RAV0ZsJywt", - "alternativeTitles": [ - ], - "workType": { - "id": "f", - "label": "E-videos", - "type": "Format" + "display" : { + "id" : "fnqpflgg", + "title" : "title-RAV0ZsJywt", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "f", + "label" : "E-videos", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "J0y4QwQTlr", - "type": "Identifier" + "value" : "J0y4QwQTlr", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "hQnFei9OwD", - "concepts": [ + "label" : "hQnFei9OwD", + "concepts" : [ { - "label": "HmXSsBa8UqTG3Gu", - "type": "Concept" + "label" : "HmXSsBa8UqTG3Gu", + "type" : "Concept" }, { - "label": "W07LA7wtXxMtg7d", - "type": "Concept" + "label" : "W07LA7wtXxMtg7d", + "type" : "Concept" }, { - "label": "koPI8hxmCeKjABF", - "type": "Concept" + "label" : "koPI8hxmCeKjABF", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "fnqpflgg", - "sourceIdentifier.value": "J0y4QwQTlr", - "identifiers.value": [ + "id" : "fnqpflgg", + "sourceIdentifier.value" : "J0y4QwQTlr", + "identifiers.value" : [ "J0y4QwQTlr" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "HmXSsBa8UqTG3Gu", "W07LA7wtXxMtg7d", "koPI8hxmCeKjABF" ], - "title": "title-RAV0ZsJywt" + "title" : "title-RAV0ZsJywt" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"f\",\"label\":\"E-videos\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "f", + "label" : "E-videos" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"hQnFei9OwD\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "hQnFei9OwD", + "label" : "hQnFei9OwD" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "f", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "f", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "hQnFei9OwD" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "J0y4QwQTlr" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.23.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.23.json index 18d00cc93..1614a8a11 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.23.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.23.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.581599Z", - "id": "y6iujg4j", - "document": { - "debug": { - "source": { - "id": "y6iujg4j", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.426364Z", + "id" : "y6iujg4j", + "document" : { + "debug" : { + "source" : { + "id" : "y6iujg4j", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "xGjZEnp6i2" + "ontologyType" : "Work", + "value" : "xGjZEnp6i2" }, - "version": 42, - "modifiedTime": "2052-01-06T08:18:52Z" + "version" : 42, + "modifiedTime" : "2052-01-06T08:18:52Z" }, - "mergedTime": "2052-01-06T08:18:52Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2052-01-06T08:18:52Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "y6iujg4j", - "title": "title-CRDZnkaHR8", - "alternativeTitles": [ - ], - "workType": { - "id": "x", - "label": "Manuscripts", - "type": "Format" + "display" : { + "id" : "y6iujg4j", + "title" : "title-CRDZnkaHR8", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "x", + "label" : "Manuscripts", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "xGjZEnp6i2", - "type": "Identifier" + "value" : "xGjZEnp6i2", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "hQnFei9OwD", - "concepts": [ + "label" : "hQnFei9OwD", + "concepts" : [ { - "label": "HmXSsBa8UqTG3Gu", - "type": "Concept" + "label" : "HmXSsBa8UqTG3Gu", + "type" : "Concept" }, { - "label": "W07LA7wtXxMtg7d", - "type": "Concept" + "label" : "W07LA7wtXxMtg7d", + "type" : "Concept" }, { - "label": "koPI8hxmCeKjABF", - "type": "Concept" + "label" : "koPI8hxmCeKjABF", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "y6iujg4j", - "sourceIdentifier.value": "xGjZEnp6i2", - "identifiers.value": [ + "id" : "y6iujg4j", + "sourceIdentifier.value" : "xGjZEnp6i2", + "identifiers.value" : [ "xGjZEnp6i2" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "HmXSsBa8UqTG3Gu", "W07LA7wtXxMtg7d", "koPI8hxmCeKjABF" ], - "title": "title-CRDZnkaHR8" + "title" : "title-CRDZnkaHR8" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"x\",\"label\":\"Manuscripts\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "x", + "label" : "Manuscripts" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"hQnFei9OwD\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "hQnFei9OwD", + "label" : "hQnFei9OwD" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "x", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "x", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "hQnFei9OwD" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "xGjZEnp6i2" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.3.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.3.json index 14fbb411d..d1d2d44b4 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.3.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.3.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.571573Z", - "id": "z92kvukz", - "document": { - "debug": { - "source": { - "id": "z92kvukz", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.418780Z", + "id" : "z92kvukz", + "document" : { + "debug" : { + "source" : { + "id" : "z92kvukz", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "8YItYtyWP3" + "ontologyType" : "Work", + "value" : "8YItYtyWP3" }, - "version": 56, - "modifiedTime": "2024-03-02T14:57:12Z" + "version" : 56, + "modifiedTime" : "2024-03-02T14:57:12Z" }, - "mergedTime": "2024-03-02T14:57:12Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2024-03-02T14:57:12Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "z92kvukz", - "title": "title-4ht9Z95L7c", - "alternativeTitles": [ - ], - "workType": { - "id": "e", - "label": "Maps", - "type": "Format" + "display" : { + "id" : "z92kvukz", + "title" : "title-4ht9Z95L7c", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "e", + "label" : "Maps", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "8YItYtyWP3", - "type": "Identifier" + "value" : "8YItYtyWP3", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "6rJpSUKd2d", - "concepts": [ + "label" : "6rJpSUKd2d", + "concepts" : [ { - "label": "biOiRlog5DCYVH5", - "type": "Concept" + "label" : "biOiRlog5DCYVH5", + "type" : "Concept" }, { - "label": "TP1tcWDr9iToVJb", - "type": "Concept" + "label" : "TP1tcWDr9iToVJb", + "type" : "Concept" }, { - "label": "p9ESZHkohLBqVqY", - "type": "Concept" + "label" : "p9ESZHkohLBqVqY", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "z92kvukz", - "sourceIdentifier.value": "8YItYtyWP3", - "identifiers.value": [ + "id" : "z92kvukz", + "sourceIdentifier.value" : "8YItYtyWP3", + "identifiers.value" : [ "8YItYtyWP3" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "biOiRlog5DCYVH5", "TP1tcWDr9iToVJb", "p9ESZHkohLBqVqY" ], - "title": "title-4ht9Z95L7c" + "title" : "title-4ht9Z95L7c" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"e\",\"label\":\"Maps\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "e", + "label" : "Maps" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"6rJpSUKd2d\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "6rJpSUKd2d", + "label" : "6rJpSUKd2d" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "e", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "e", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "6rJpSUKd2d" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "8YItYtyWP3" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.4.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.4.json index 61f5f6ba2..7dafd30b6 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.4.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.4.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.572042Z", - "id": "m9cvkukq", - "document": { - "debug": { - "source": { - "id": "m9cvkukq", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.419207Z", + "id" : "m9cvkukq", + "document" : { + "debug" : { + "source" : { + "id" : "m9cvkukq", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "66BwUadwA2" + "ontologyType" : "Work", + "value" : "66BwUadwA2" }, - "version": 1, - "modifiedTime": "1938-04-20T22:56:50Z" + "version" : 1, + "modifiedTime" : "1938-04-20T22:56:50Z" }, - "mergedTime": "1938-04-20T22:56:50Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1938-04-20T22:56:50Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "m9cvkukq", - "title": "title-ogxZlpWaXi", - "alternativeTitles": [ - ], - "workType": { - "id": "k", - "label": "Pictures", - "type": "Format" + "display" : { + "id" : "m9cvkukq", + "title" : "title-ogxZlpWaXi", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "k", + "label" : "Pictures", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "66BwUadwA2", - "type": "Identifier" + "value" : "66BwUadwA2", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "6rJpSUKd2d", - "concepts": [ + "label" : "6rJpSUKd2d", + "concepts" : [ { - "label": "biOiRlog5DCYVH5", - "type": "Concept" + "label" : "biOiRlog5DCYVH5", + "type" : "Concept" }, { - "label": "TP1tcWDr9iToVJb", - "type": "Concept" + "label" : "TP1tcWDr9iToVJb", + "type" : "Concept" }, { - "label": "p9ESZHkohLBqVqY", - "type": "Concept" + "label" : "p9ESZHkohLBqVqY", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "m9cvkukq", - "sourceIdentifier.value": "66BwUadwA2", - "identifiers.value": [ + "id" : "m9cvkukq", + "sourceIdentifier.value" : "66BwUadwA2", + "identifiers.value" : [ "66BwUadwA2" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "biOiRlog5DCYVH5", "TP1tcWDr9iToVJb", "p9ESZHkohLBqVqY" ], - "title": "title-ogxZlpWaXi" + "title" : "title-ogxZlpWaXi" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"k\",\"label\":\"Pictures\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "k", + "label" : "Pictures" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"6rJpSUKd2d\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "6rJpSUKd2d", + "label" : "6rJpSUKd2d" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "k", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "k", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "6rJpSUKd2d" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "66BwUadwA2" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.5.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.5.json index f3c69cc50..c2093d1b0 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.5.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.5.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.572515Z", - "id": "n4dq7ypg", - "document": { - "debug": { - "source": { - "id": "n4dq7ypg", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.419611Z", + "id" : "n4dq7ypg", + "document" : { + "debug" : { + "source" : { + "id" : "n4dq7ypg", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "dBoRzqlD5L" + "ontologyType" : "Work", + "value" : "dBoRzqlD5L" }, - "version": 37, - "modifiedTime": "1962-10-07T16:30:13Z" + "version" : 37, + "modifiedTime" : "1962-10-07T16:30:13Z" }, - "mergedTime": "1962-10-07T16:30:13Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1962-10-07T16:30:13Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "n4dq7ypg", - "title": "title-B2SlRRldG9", - "alternativeTitles": [ - ], - "workType": { - "id": "w", - "label": "Student dissertations", - "type": "Format" + "display" : { + "id" : "n4dq7ypg", + "title" : "title-B2SlRRldG9", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "w", + "label" : "Student dissertations", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "dBoRzqlD5L", - "type": "Identifier" + "value" : "dBoRzqlD5L", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "6rJpSUKd2d", - "concepts": [ + "label" : "6rJpSUKd2d", + "concepts" : [ { - "label": "biOiRlog5DCYVH5", - "type": "Concept" + "label" : "biOiRlog5DCYVH5", + "type" : "Concept" }, { - "label": "TP1tcWDr9iToVJb", - "type": "Concept" + "label" : "TP1tcWDr9iToVJb", + "type" : "Concept" }, { - "label": "p9ESZHkohLBqVqY", - "type": "Concept" + "label" : "p9ESZHkohLBqVqY", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "n4dq7ypg", - "sourceIdentifier.value": "dBoRzqlD5L", - "identifiers.value": [ + "id" : "n4dq7ypg", + "sourceIdentifier.value" : "dBoRzqlD5L", + "identifiers.value" : [ "dBoRzqlD5L" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "biOiRlog5DCYVH5", "TP1tcWDr9iToVJb", "p9ESZHkohLBqVqY" ], - "title": "title-B2SlRRldG9" + "title" : "title-B2SlRRldG9" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"w\",\"label\":\"Student dissertations\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "w", + "label" : "Student dissertations" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"6rJpSUKd2d\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "6rJpSUKd2d", + "label" : "6rJpSUKd2d" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "w", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "w", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "6rJpSUKd2d" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "dBoRzqlD5L" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.6.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.6.json index 746b9cba7..d51aa1651 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.6.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.6.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.572946Z", - "id": "4cicdqpx", - "document": { - "debug": { - "source": { - "id": "4cicdqpx", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.420Z", + "id" : "4cicdqpx", + "document" : { + "debug" : { + "source" : { + "id" : "4cicdqpx", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "FU0kYbman5" + "ontologyType" : "Work", + "value" : "FU0kYbman5" }, - "version": 16, - "modifiedTime": "2048-11-03T20:54:50Z" + "version" : 16, + "modifiedTime" : "2048-11-03T20:54:50Z" }, - "mergedTime": "2048-11-03T20:54:50Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2048-11-03T20:54:50Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "4cicdqpx", - "title": "title-AZqajt54m4", - "alternativeTitles": [ - ], - "workType": { - "id": "r", - "label": "3-D Objects", - "type": "Format" + "display" : { + "id" : "4cicdqpx", + "title" : "title-AZqajt54m4", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "r", + "label" : "3-D Objects", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "FU0kYbman5", - "type": "Identifier" + "value" : "FU0kYbman5", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "S4hioTvwQl", - "concepts": [ + "label" : "S4hioTvwQl", + "concepts" : [ { - "label": "eJkqVbD7mxTT1Dn", - "type": "Concept" + "label" : "eJkqVbD7mxTT1Dn", + "type" : "Concept" }, { - "label": "ad9SceRNaTElZtf", - "type": "Concept" + "label" : "ad9SceRNaTElZtf", + "type" : "Concept" }, { - "label": "G4qEc4MTvdPAcgp", - "type": "Concept" + "label" : "G4qEc4MTvdPAcgp", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "4cicdqpx", - "sourceIdentifier.value": "FU0kYbman5", - "identifiers.value": [ + "id" : "4cicdqpx", + "sourceIdentifier.value" : "FU0kYbman5", + "identifiers.value" : [ "FU0kYbman5" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "eJkqVbD7mxTT1Dn", "ad9SceRNaTElZtf", "G4qEc4MTvdPAcgp" ], - "title": "title-AZqajt54m4" + "title" : "title-AZqajt54m4" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"r\",\"label\":\"3-D Objects\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "r", + "label" : "3-D Objects" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"S4hioTvwQl\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "S4hioTvwQl", + "label" : "S4hioTvwQl" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "r", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "r", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "S4hioTvwQl" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "FU0kYbman5" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.7.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.7.json index 44f39b854..cf12a6e33 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.7.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.7.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.573376Z", - "id": "p7zbfaov", - "document": { - "debug": { - "source": { - "id": "p7zbfaov", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.420361Z", + "id" : "p7zbfaov", + "document" : { + "debug" : { + "source" : { + "id" : "p7zbfaov", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "pYub9JXopb" + "ontologyType" : "Work", + "value" : "pYub9JXopb" }, - "version": 85, - "modifiedTime": "1944-12-17T09:08:30Z" + "version" : 85, + "modifiedTime" : "1944-12-17T09:08:30Z" }, - "mergedTime": "1944-12-17T09:08:30Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1944-12-17T09:08:30Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "p7zbfaov", - "title": "title-IZx0zgHgbz", - "alternativeTitles": [ - ], - "workType": { - "id": "m", - "label": "CD-Roms", - "type": "Format" + "display" : { + "id" : "p7zbfaov", + "title" : "title-IZx0zgHgbz", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "m", + "label" : "CD-Roms", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "pYub9JXopb", - "type": "Identifier" + "value" : "pYub9JXopb", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "S4hioTvwQl", - "concepts": [ + "label" : "S4hioTvwQl", + "concepts" : [ { - "label": "eJkqVbD7mxTT1Dn", - "type": "Concept" + "label" : "eJkqVbD7mxTT1Dn", + "type" : "Concept" }, { - "label": "ad9SceRNaTElZtf", - "type": "Concept" + "label" : "ad9SceRNaTElZtf", + "type" : "Concept" }, { - "label": "G4qEc4MTvdPAcgp", - "type": "Concept" + "label" : "G4qEc4MTvdPAcgp", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "p7zbfaov", - "sourceIdentifier.value": "pYub9JXopb", - "identifiers.value": [ + "id" : "p7zbfaov", + "sourceIdentifier.value" : "pYub9JXopb", + "identifiers.value" : [ "pYub9JXopb" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "eJkqVbD7mxTT1Dn", "ad9SceRNaTElZtf", "G4qEc4MTvdPAcgp" ], - "title": "title-IZx0zgHgbz" + "title" : "title-IZx0zgHgbz" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"m\",\"label\":\"CD-Roms\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "m", + "label" : "CD-Roms" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"S4hioTvwQl\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "S4hioTvwQl", + "label" : "S4hioTvwQl" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "m", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "m", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "S4hioTvwQl" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "pYub9JXopb" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.8.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.8.json index 0853a5652..b38a2bf6d 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.8.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.8.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.573820Z", - "id": "nuuq84cr", - "document": { - "debug": { - "source": { - "id": "nuuq84cr", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.420712Z", + "id" : "nuuq84cr", + "document" : { + "debug" : { + "source" : { + "id" : "nuuq84cr", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "IzLCv3sMYa" + "ontologyType" : "Work", + "value" : "IzLCv3sMYa" }, - "version": 39, - "modifiedTime": "1954-05-22T01:33:53Z" + "version" : 39, + "modifiedTime" : "1954-05-22T01:33:53Z" }, - "mergedTime": "1954-05-22T01:33:53Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1954-05-22T01:33:53Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "nuuq84cr", - "title": "title-J5Ue8m3HVu", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "nuuq84cr", + "title" : "title-J5Ue8m3HVu", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "IzLCv3sMYa", - "type": "Identifier" + "value" : "IzLCv3sMYa", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "S4hioTvwQl", - "concepts": [ + "label" : "S4hioTvwQl", + "concepts" : [ { - "label": "eJkqVbD7mxTT1Dn", - "type": "Concept" + "label" : "eJkqVbD7mxTT1Dn", + "type" : "Concept" }, { - "label": "ad9SceRNaTElZtf", - "type": "Concept" + "label" : "ad9SceRNaTElZtf", + "type" : "Concept" }, { - "label": "G4qEc4MTvdPAcgp", - "type": "Concept" + "label" : "G4qEc4MTvdPAcgp", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "nuuq84cr", - "sourceIdentifier.value": "IzLCv3sMYa", - "identifiers.value": [ + "id" : "nuuq84cr", + "sourceIdentifier.value" : "IzLCv3sMYa", + "identifiers.value" : [ "IzLCv3sMYa" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "eJkqVbD7mxTT1Dn", "ad9SceRNaTElZtf", "G4qEc4MTvdPAcgp" ], - "title": "title-J5Ue8m3HVu" + "title" : "title-J5Ue8m3HVu" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"S4hioTvwQl\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "S4hioTvwQl", + "label" : "S4hioTvwQl" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "S4hioTvwQl" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "IzLCv3sMYa" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.9.json b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.9.json index d72a362f7..f548869b7 100644 --- a/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.9.json +++ b/common/search/src/test/resources/test_documents/works.examples.aggregation-with-filters-tests.9.json @@ -1,211 +1,217 @@ { - "description": "examples for the aggregation-with-filters tests", - "createdAt": "2024-11-13T08:43:26.574285Z", - "id": "x1muoi8t", - "document": { - "debug": { - "source": { - "id": "x1muoi8t", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the aggregation-with-filters tests", + "createdAt" : "2024-11-25T15:15:12.421062Z", + "id" : "x1muoi8t", + "document" : { + "debug" : { + "source" : { + "id" : "x1muoi8t", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "s4RY14qUDX" + "ontologyType" : "Work", + "value" : "s4RY14qUDX" }, - "version": 10, - "modifiedTime": "2033-02-03T15:52:28Z" + "version" : 10, + "modifiedTime" : "2033-02-03T15:52:28Z" }, - "mergedTime": "2033-02-03T15:52:28Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2033-02-03T15:52:28Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "x1muoi8t", - "title": "title-8uFRfKD3vr", - "alternativeTitles": [ - ], - "workType": { - "id": "p", - "label": "Mixed materials", - "type": "Format" + "display" : { + "id" : "x1muoi8t", + "title" : "title-8uFRfKD3vr", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "p", + "label" : "Mixed materials", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "s4RY14qUDX", - "type": "Identifier" + "value" : "s4RY14qUDX", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "S4hioTvwQl", - "concepts": [ + "label" : "S4hioTvwQl", + "concepts" : [ { - "label": "eJkqVbD7mxTT1Dn", - "type": "Concept" + "label" : "eJkqVbD7mxTT1Dn", + "type" : "Concept" }, { - "label": "ad9SceRNaTElZtf", - "type": "Concept" + "label" : "ad9SceRNaTElZtf", + "type" : "Concept" }, { - "label": "G4qEc4MTvdPAcgp", - "type": "Concept" + "label" : "G4qEc4MTvdPAcgp", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "x1muoi8t", - "sourceIdentifier.value": "s4RY14qUDX", - "identifiers.value": [ + "id" : "x1muoi8t", + "sourceIdentifier.value" : "s4RY14qUDX", + "identifiers.value" : [ "s4RY14qUDX" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "eJkqVbD7mxTT1Dn", "ad9SceRNaTElZtf", "G4qEc4MTvdPAcgp" ], - "title": "title-8uFRfKD3vr" + "title" : "title-8uFRfKD3vr" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"p\",\"label\":\"Mixed materials\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "p", + "label" : "Mixed materials" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"S4hioTvwQl\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "S4hioTvwQl", + "label" : "S4hioTvwQl" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "p", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "p", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "S4hioTvwQl" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "s4RY14qUDX" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.availabilities.closed-only.json b/common/search/src/test/resources/test_documents/works.examples.availabilities.closed-only.json index c3fb60772..885aee71c 100644 --- a/common/search/src/test/resources/test_documents/works.examples.availabilities.closed-only.json +++ b/common/search/src/test/resources/test_documents/works.examples.availabilities.closed-only.json @@ -1,232 +1,238 @@ { - "description": "examples for availabilities tests", - "createdAt": "2024-11-13T08:43:26.655994Z", - "id": "iopgf0nj", - "document": { - "debug": { - "source": { - "id": "iopgf0nj", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for availabilities tests", + "createdAt" : "2024-11-25T15:15:12.508878Z", + "id" : "iopgf0nj", + "document" : { + "debug" : { + "source" : { + "id" : "iopgf0nj", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "3glZntXsvt" + "ontologyType" : "Work", + "value" : "3glZntXsvt" }, - "version": 64, - "modifiedTime": "1940-10-05T05:45:04Z" + "version" : 64, + "modifiedTime" : "1940-10-05T05:45:04Z" }, - "mergedTime": "1940-10-05T05:45:04Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1940-10-05T05:45:04Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "iopgf0nj", - "title": "title-tuZQUd4A61", - "alternativeTitles": [ + "display" : { + "id" : "iopgf0nj", + "title" : "title-tuZQUd4A61", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "3glZntXsvt", - "type": "Identifier" + "value" : "3glZntXsvt", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "wpw7kqmd", - "identifiers": [ + "id" : "wpw7kqmd", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "vOEvkncTXy", - "type": "Identifier" + "value" : "vOEvkncTXy", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "closed-stores", - "label": "Closed stores", - "type": "LocationType" + "locationType" : { + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "LocationType" }, - "label": "locationLabel", - "license": { - "id": "ogl", - "label": "Open Government Licence", - "url": "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", - "type": "License" + "label" : "locationLabel", + "license" : { + "id" : "ogl", + "label" : "Open Government Licence", + "url" : "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", + "type" : "License" }, - "shelfmark": "Shelfmark: UIgSWmx", - "accessConditions": [ + "shelfmark" : "Shelfmark: UIgSWmx", + "accessConditions" : [ ], - "type": "PhysicalLocation" + "type" : "PhysicalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "closed-stores", - "label": "Closed stores", - "type": "Availability" + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "iopgf0nj", - "sourceIdentifier.value": "3glZntXsvt", - "identifiers.value": [ + "id" : "iopgf0nj", + "sourceIdentifier.value" : "3glZntXsvt", + "identifiers.value" : [ "3glZntXsvt" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "wpw7kqmd" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "vOEvkncTXy" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ "Shelfmark: UIgSWmx" ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-tuZQUd4A61" + "title" : "title-tuZQUd4A61" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"ogl\",\"label\":\"Open Government Licence\",\"url\":\"http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "ogl", + "label" : "Open Government Licence" + } ], - "availabilities": [ - "{\"id\":\"closed-stores\",\"label\":\"Closed stores\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "closed-stores", + "label" : "Closed stores" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "3glZntXsvt" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "ogl" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "wpw7kqmd" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "vOEvkncTXy" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "closed-stores" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "closed-stores" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.availabilities.everywhere.json b/common/search/src/test/resources/test_documents/works.examples.availabilities.everywhere.json index cc8b7e1b9..9b070a868 100644 --- a/common/search/src/test/resources/test_documents/works.examples.availabilities.everywhere.json +++ b/common/search/src/test/resources/test_documents/works.examples.availabilities.everywhere.json @@ -1,321 +1,336 @@ { - "description": "examples for availabilities tests", - "createdAt": "2024-11-13T08:43:26.660241Z", - "id": "9stpxl39", - "document": { - "debug": { - "source": { - "id": "9stpxl39", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for availabilities tests", + "createdAt" : "2024-11-25T15:15:12.516547Z", + "id" : "9stpxl39", + "document" : { + "debug" : { + "source" : { + "id" : "9stpxl39", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "iOhIDpmZQS" + "ontologyType" : "Work", + "value" : "iOhIDpmZQS" }, - "version": 90, - "modifiedTime": "2053-10-10T09:57:01Z" + "version" : 90, + "modifiedTime" : "2053-10-10T09:57:01Z" }, - "mergedTime": "2053-10-10T09:57:01Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2053-10-10T09:57:01Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "9stpxl39", - "title": "title-ZJBZp7GTBM", - "alternativeTitles": [ + "display" : { + "id" : "9stpxl39", + "title" : "title-ZJBZp7GTBM", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "iOhIDpmZQS", - "type": "Identifier" + "value" : "iOhIDpmZQS", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "qdr9gb06", - "identifiers": [ + "id" : "qdr9gb06", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "szcI3pLB8w", - "type": "Identifier" + "value" : "szcI3pLB8w", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "closed-stores", - "label": "Closed stores", - "type": "LocationType" + "locationType" : { + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "LocationType" }, - "label": "locationLabel", - "license": { - "id": "pdm", - "label": "Public Domain Mark", - "url": "https://creativecommons.org/share-your-work/public-domain/pdm/", - "type": "License" + "label" : "locationLabel", + "license" : { + "id" : "pdm", + "label" : "Public Domain Mark", + "url" : "https://creativecommons.org/share-your-work/public-domain/pdm/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "PhysicalLocation" + "type" : "PhysicalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "id": "y1i7iplx", - "identifiers": [ + "id" : "y1i7iplx", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "9QmlF92mk9", - "type": "Identifier" + "value" : "9QmlF92mk9", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "open-shelves", - "label": "Open shelves", - "type": "LocationType" + "locationType" : { + "id" : "open-shelves", + "label" : "Open shelves", + "type" : "LocationType" }, - "label": "locationLabel", - "shelfmark": "Shelfmark: cCc2QL7V8", - "accessConditions": [ + "label" : "locationLabel", + "shelfmark" : "Shelfmark: cCc2QL7V8", + "accessConditions" : [ ], - "type": "PhysicalLocation" + "type" : "PhysicalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/AUd.jpg/info.json", - "linkText": "Link text: zYQpvm", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/AUd.jpg/info.json", + "linkText" : "Link text: zYQpvm", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "not-requestable", - "label": "Not requestable", - "type": "AccessMethod" + "method" : { + "id" : "not-requestable", + "label" : "Not requestable", + "type" : "AccessMethod" }, - "status": { - "id": "open-with-advisory", - "label": "Open with advisory", - "type": "AccessStatus" + "status" : { + "id" : "open-with-advisory", + "label" : "Open with advisory", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "closed-stores", - "label": "Closed stores", - "type": "Availability" + "id" : "closed-stores", + "label" : "Closed stores", + "type" : "Availability" }, { - "id": "open-shelves", - "label": "Open shelves", - "type": "Availability" + "id" : "open-shelves", + "label" : "Open shelves", + "type" : "Availability" }, { - "id": "online", - "label": "Online", - "type": "Availability" + "id" : "online", + "label" : "Online", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "9stpxl39", - "sourceIdentifier.value": "iOhIDpmZQS", - "identifiers.value": [ + "id" : "9stpxl39", + "sourceIdentifier.value" : "iOhIDpmZQS", + "identifiers.value" : [ "iOhIDpmZQS" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "qdr9gb06", "y1i7iplx" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "szcI3pLB8w", "9QmlF92mk9" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ "Shelfmark: cCc2QL7V8" ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-ZJBZp7GTBM" + "title" : "title-ZJBZp7GTBM" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"pdm\",\"label\":\"Public Domain Mark\",\"url\":\"https://creativecommons.org/share-your-work/public-domain/pdm/\",\"type\":\"License\"}", - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "pdm", + "label" : "Public Domain Mark" + }, + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ - "{\"id\":\"closed-stores\",\"label\":\"Closed stores\",\"type\":\"Availability\"}", - "{\"id\":\"online\",\"label\":\"Online\",\"type\":\"Availability\"}", - "{\"id\":\"open-shelves\",\"label\":\"Open shelves\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "closed-stores", + "label" : "Closed stores" + }, + { + "id" : "open-shelves", + "label" : "Open shelves" + }, + { + "id" : "online", + "label" : "Online" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "iOhIDpmZQS" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "pdm", "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "open-with-advisory" ], - "items.id": [ + "items.id" : [ "qdr9gb06", "y1i7iplx" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "szcI3pLB8w", "9QmlF92mk9" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "closed-stores", "open-shelves", "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "closed-stores", "open-shelves", "online" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.availabilities.nowhere.json b/common/search/src/test/resources/test_documents/works.examples.availabilities.nowhere.json index c18ab1b8d..33308a938 100644 --- a/common/search/src/test/resources/test_documents/works.examples.availabilities.nowhere.json +++ b/common/search/src/test/resources/test_documents/works.examples.availabilities.nowhere.json @@ -1,182 +1,182 @@ { - "description": "examples for availabilities tests", - "createdAt": "2024-11-13T08:43:26.658932Z", - "id": "jy8lcdnc", - "document": { - "debug": { - "source": { - "id": "jy8lcdnc", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for availabilities tests", + "createdAt" : "2024-11-25T15:15:12.514838Z", + "id" : "jy8lcdnc", + "document" : { + "debug" : { + "source" : { + "id" : "jy8lcdnc", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "r5gilWx8gA" + "ontologyType" : "Work", + "value" : "r5gilWx8gA" }, - "version": 60, - "modifiedTime": "1938-04-17T00:01:19Z" + "version" : 60, + "modifiedTime" : "1938-04-17T00:01:19Z" }, - "mergedTime": "1938-04-17T00:01:19Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1938-04-17T00:01:19Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "jy8lcdnc", - "title": "title-EVdllKtj1b", - "alternativeTitles": [ + "display" : { + "id" : "jy8lcdnc", + "title" : "title-EVdllKtj1b", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "r5gilWx8gA", - "type": "Identifier" + "value" : "r5gilWx8gA", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "jy8lcdnc", - "sourceIdentifier.value": "r5gilWx8gA", - "identifiers.value": [ + "id" : "jy8lcdnc", + "sourceIdentifier.value" : "r5gilWx8gA", + "identifiers.value" : [ "r5gilWx8gA" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-EVdllKtj1b" + "title" : "title-EVdllKtj1b" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "r5gilWx8gA" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.availabilities.online-only.json b/common/search/src/test/resources/test_documents/works.examples.availabilities.online-only.json index 8455aadcc..456701a28 100644 --- a/common/search/src/test/resources/test_documents/works.examples.availabilities.online-only.json +++ b/common/search/src/test/resources/test_documents/works.examples.availabilities.online-only.json @@ -1,230 +1,236 @@ { - "description": "examples for availabilities tests", - "createdAt": "2024-11-13T08:43:26.657688Z", - "id": "yz6gwbs7", - "document": { - "debug": { - "source": { - "id": "yz6gwbs7", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for availabilities tests", + "createdAt" : "2024-11-25T15:15:12.510839Z", + "id" : "yz6gwbs7", + "document" : { + "debug" : { + "source" : { + "id" : "yz6gwbs7", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "DnY4M5JWvJ" + "ontologyType" : "Work", + "value" : "DnY4M5JWvJ" }, - "version": 7, - "modifiedTime": "2019-08-06T06:56:41Z" + "version" : 7, + "modifiedTime" : "2019-08-06T06:56:41Z" }, - "mergedTime": "2019-08-06T06:56:41Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2019-08-06T06:56:41Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "yz6gwbs7", - "title": "title-CJMNnr9kNr", - "alternativeTitles": [ + "display" : { + "id" : "yz6gwbs7", + "title" : "title-CJMNnr9kNr", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "DnY4M5JWvJ", - "type": "Identifier" + "value" : "DnY4M5JWvJ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/YBu.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/YBu.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ { - "method": { - "id": "not-requestable", - "label": "Not requestable", - "type": "AccessMethod" + "method" : { + "id" : "not-requestable", + "label" : "Not requestable", + "type" : "AccessMethod" }, - "status": { - "id": "open", - "label": "Open", - "type": "AccessStatus" + "status" : { + "id" : "open", + "label" : "Open", + "type" : "AccessStatus" }, - "type": "AccessCondition" + "type" : "AccessCondition" } ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "online", - "label": "Online", - "type": "Availability" + "id" : "online", + "label" : "Online", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "yz6gwbs7", - "sourceIdentifier.value": "DnY4M5JWvJ", - "identifiers.value": [ + "id" : "yz6gwbs7", + "sourceIdentifier.value" : "DnY4M5JWvJ", + "identifiers.value" : [ "DnY4M5JWvJ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-CJMNnr9kNr" + "title" : "title-CJMNnr9kNr" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ - "{\"id\":\"online\",\"label\":\"Online\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "online", + "label" : "Online" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "DnY4M5JWvJ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ "open" ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "online" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.availabilities.open-only.json b/common/search/src/test/resources/test_documents/works.examples.availabilities.open-only.json index 2946e9c3d..a06a6db97 100644 --- a/common/search/src/test/resources/test_documents/works.examples.availabilities.open-only.json +++ b/common/search/src/test/resources/test_documents/works.examples.availabilities.open-only.json @@ -1,224 +1,227 @@ { - "description": "examples for availabilities tests", - "createdAt": "2024-11-13T08:43:26.653938Z", - "id": "fntlrk7n", - "document": { - "debug": { - "source": { - "id": "fntlrk7n", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for availabilities tests", + "createdAt" : "2024-11-25T15:15:12.507072Z", + "id" : "fntlrk7n", + "document" : { + "debug" : { + "source" : { + "id" : "fntlrk7n", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "y9pCp7jd9r" + "ontologyType" : "Work", + "value" : "y9pCp7jd9r" }, - "version": 28, - "modifiedTime": "2007-03-29T14:43:02Z" + "version" : 28, + "modifiedTime" : "2007-03-29T14:43:02Z" }, - "mergedTime": "2007-03-29T14:43:02Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2007-03-29T14:43:02Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "fntlrk7n", - "title": "title-d5hDXNpf0j", - "alternativeTitles": [ + "display" : { + "id" : "fntlrk7n", + "title" : "title-d5hDXNpf0j", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "y9pCp7jd9r", - "type": "Identifier" + "value" : "y9pCp7jd9r", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "tfqdc51h", - "identifiers": [ + "id" : "tfqdc51h", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "g38S97qOpH", - "type": "Identifier" + "value" : "g38S97qOpH", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "open-shelves", - "label": "Open shelves", - "type": "LocationType" + "locationType" : { + "id" : "open-shelves", + "label" : "Open shelves", + "type" : "LocationType" }, - "label": "locationLabel", - "shelfmark": "Shelfmark: l0IywWR", - "accessConditions": [ + "label" : "locationLabel", + "shelfmark" : "Shelfmark: l0IywWR", + "accessConditions" : [ ], - "type": "PhysicalLocation" + "type" : "PhysicalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ { - "id": "open-shelves", - "label": "Open shelves", - "type": "Availability" + "id" : "open-shelves", + "label" : "Open shelves", + "type" : "Availability" } ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "fntlrk7n", - "sourceIdentifier.value": "y9pCp7jd9r", - "identifiers.value": [ + "id" : "fntlrk7n", + "sourceIdentifier.value" : "y9pCp7jd9r", + "identifiers.value" : [ "y9pCp7jd9r" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "tfqdc51h" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "g38S97qOpH" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ "Shelfmark: l0IywWR" ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-d5hDXNpf0j" + "title" : "title-d5hDXNpf0j" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ - "{\"id\":\"open-shelves\",\"label\":\"Open shelves\",\"type\":\"Availability\"}" + "availabilities" : [ + { + "id" : "open-shelves", + "label" : "Open shelves" + } ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "y9pCp7jd9r" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "tfqdc51h" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "g38S97qOpH" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "open-shelves" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ "open-shelves" ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.0.json b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.0.json index eaf5fb845..a4eafe248 100644 --- a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.0.json +++ b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.0.json @@ -1,195 +1,198 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-13T08:43:26.618807Z", - "id": "ijnwmvup", - "document": { - "debug": { - "source": { - "id": "ijnwmvup", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:15:12.462357Z", + "id" : "ijnwmvup", + "document" : { + "debug" : { + "source" : { + "id" : "ijnwmvup", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "Kd2KzPZAnM" + "ontologyType" : "Work", + "value" : "Kd2KzPZAnM" }, - "version": 98, - "modifiedTime": "1968-12-03T01:32:55Z" + "version" : 98, + "modifiedTime" : "1968-12-03T01:32:55Z" }, - "mergedTime": "1968-12-03T01:32:55Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1968-12-03T01:32:55Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ijnwmvup", - "title": "title-uMNql7LBhP", - "alternativeTitles": [ + "display" : { + "id" : "ijnwmvup", + "title" : "title-uMNql7LBhP", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "Bath, Patricia", - "type": "Person" + "agent" : { + "label" : "Bath, Patricia", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Kd2KzPZAnM", - "type": "Identifier" + "value" : "Kd2KzPZAnM", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Bath, Patricia" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ijnwmvup", - "sourceIdentifier.value": "Kd2KzPZAnM", - "identifiers.value": [ + "id" : "ijnwmvup", + "sourceIdentifier.value" : "Kd2KzPZAnM", + "identifiers.value" : [ "Kd2KzPZAnM" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-uMNql7LBhP" + "title" : "title-uMNql7LBhP" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"Bath, Patricia\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "Bath, Patricia", + "label" : "Bath, Patricia" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Bath, Patricia" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Kd2KzPZAnM" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.1.json b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.1.json index e9090cac9..e255ddfd7 100644 --- a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.1.json +++ b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.1.json @@ -1,195 +1,198 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-13T08:43:26.619301Z", - "id": "mzvvcba0", - "document": { - "debug": { - "source": { - "id": "mzvvcba0", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:15:12.462681Z", + "id" : "mzvvcba0", + "document" : { + "debug" : { + "source" : { + "id" : "mzvvcba0", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "gDuSiI3pPI" + "ontologyType" : "Work", + "value" : "gDuSiI3pPI" }, - "version": 29, - "modifiedTime": "1993-02-03T00:28:21Z" + "version" : 29, + "modifiedTime" : "1993-02-03T00:28:21Z" }, - "mergedTime": "1993-02-03T00:28:21Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1993-02-03T00:28:21Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "mzvvcba0", - "title": "title-h0iB2aGWT6", - "alternativeTitles": [ + "display" : { + "id" : "mzvvcba0", + "title" : "title-h0iB2aGWT6", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "Karl Marx", - "type": "Person" + "agent" : { + "label" : "Karl Marx", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "gDuSiI3pPI", - "type": "Identifier" + "value" : "gDuSiI3pPI", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Karl Marx" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "mzvvcba0", - "sourceIdentifier.value": "gDuSiI3pPI", - "identifiers.value": [ + "id" : "mzvvcba0", + "sourceIdentifier.value" : "gDuSiI3pPI", + "identifiers.value" : [ "gDuSiI3pPI" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-h0iB2aGWT6" + "title" : "title-h0iB2aGWT6" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"Karl Marx\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "Karl Marx", + "label" : "Karl Marx" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Karl Marx" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "gDuSiI3pPI" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.2.json b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.2.json index 921957b28..4b57d69fd 100644 --- a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.2.json +++ b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.2.json @@ -1,195 +1,198 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-13T08:43:26.619693Z", - "id": "5ramofto", - "document": { - "debug": { - "source": { - "id": "5ramofto", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:15:12.463107Z", + "id" : "5ramofto", + "document" : { + "debug" : { + "source" : { + "id" : "5ramofto", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "iZ6KWys5lZ" + "ontologyType" : "Work", + "value" : "iZ6KWys5lZ" }, - "version": 77, - "modifiedTime": "1998-03-21T07:04:06Z" + "version" : 77, + "modifiedTime" : "1998-03-21T07:04:06Z" }, - "mergedTime": "1998-03-21T07:04:06Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1998-03-21T07:04:06Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "5ramofto", - "title": "title-5bCvMTmP7w", - "alternativeTitles": [ + "display" : { + "id" : "5ramofto", + "title" : "title-5bCvMTmP7w", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "Jake Paul", - "type": "Person" + "agent" : { + "label" : "Jake Paul", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "iZ6KWys5lZ", - "type": "Identifier" + "value" : "iZ6KWys5lZ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Jake Paul" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "5ramofto", - "sourceIdentifier.value": "iZ6KWys5lZ", - "identifiers.value": [ + "id" : "5ramofto", + "sourceIdentifier.value" : "iZ6KWys5lZ", + "identifiers.value" : [ "iZ6KWys5lZ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-5bCvMTmP7w" + "title" : "title-5bCvMTmP7w" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"Jake Paul\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "Jake Paul", + "label" : "Jake Paul" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Jake Paul" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "iZ6KWys5lZ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.3.json b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.3.json index 8f12c5ee3..06040f9c1 100644 --- a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.3.json +++ b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.3.json @@ -1,195 +1,198 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-13T08:43:26.620130Z", - "id": "816tru6j", - "document": { - "debug": { - "source": { - "id": "816tru6j", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:15:12.463432Z", + "id" : "816tru6j", + "document" : { + "debug" : { + "source" : { + "id" : "816tru6j", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "9jNNS7lxBF" + "ontologyType" : "Work", + "value" : "9jNNS7lxBF" }, - "version": 90, - "modifiedTime": "1969-03-18T15:11:34Z" + "version" : 90, + "modifiedTime" : "1969-03-18T15:11:34Z" }, - "mergedTime": "1969-03-18T15:11:34Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1969-03-18T15:11:34Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "816tru6j", - "title": "title-q4UJD6zf5r", - "alternativeTitles": [ + "display" : { + "id" : "816tru6j", + "title" : "title-q4UJD6zf5r", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "Darwin \"Jones\", Charles", - "type": "Person" + "agent" : { + "label" : "Darwin \"Jones\", Charles", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "9jNNS7lxBF", - "type": "Identifier" + "value" : "9jNNS7lxBF", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Darwin \"Jones\", Charles" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "816tru6j", - "sourceIdentifier.value": "9jNNS7lxBF", - "identifiers.value": [ + "id" : "816tru6j", + "sourceIdentifier.value" : "9jNNS7lxBF", + "identifiers.value" : [ "9jNNS7lxBF" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-q4UJD6zf5r" + "title" : "title-q4UJD6zf5r" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"Darwin \\\"Jones\\\", Charles\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "Darwin \"Jones\", Charles", + "label" : "Darwin \"Jones\", Charles" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Darwin \"Jones\", Charles" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "9jNNS7lxBF" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.4.json b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.4.json index 919f35d54..d14eb8e43 100644 --- a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.4.json +++ b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.4.json @@ -1,208 +1,214 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-13T08:43:26.620588Z", - "id": "xuni2iqa", - "document": { - "debug": { - "source": { - "id": "xuni2iqa", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:15:12.463782Z", + "id" : "xuni2iqa", + "document" : { + "debug" : { + "source" : { + "id" : "xuni2iqa", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "XzQw5jYpuB" + "ontologyType" : "Work", + "value" : "XzQw5jYpuB" }, - "version": 100, - "modifiedTime": "1968-08-03T10:25:48Z" + "version" : 100, + "modifiedTime" : "1968-08-03T10:25:48Z" }, - "mergedTime": "1968-08-03T10:25:48Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1968-08-03T10:25:48Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "xuni2iqa", - "title": "title-I2SUm7p7NJ", - "alternativeTitles": [ + "display" : { + "id" : "xuni2iqa", + "title" : "title-I2SUm7p7NJ", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ { - "agent": { - "label": "Bath, Patricia", - "type": "Person" + "agent" : { + "label" : "Bath, Patricia", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" }, { - "agent": { - "label": "Darwin \"Jones\", Charles", - "type": "Person" + "agent" : { + "label" : "Darwin \"Jones\", Charles", + "type" : "Person" }, - "roles": [ + "roles" : [ ], - "primary": true, - "type": "Contributor" + "primary" : true, + "type" : "Contributor" } ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "XzQw5jYpuB", - "type": "Identifier" + "value" : "XzQw5jYpuB", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Bath, Patricia", "Darwin \"Jones\", Charles" ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "xuni2iqa", - "sourceIdentifier.value": "XzQw5jYpuB", - "identifiers.value": [ + "id" : "xuni2iqa", + "sourceIdentifier.value" : "XzQw5jYpuB", + "identifiers.value" : [ "XzQw5jYpuB" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-I2SUm7p7NJ" + "title" : "title-I2SUm7p7NJ" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ - "{\"label\":\"Bath, Patricia\",\"type\":\"Person\"}", - "{\"label\":\"Darwin \\\"Jones\\\", Charles\",\"type\":\"Person\"}" + "contributors.agent" : [ + { + "id" : "Bath, Patricia", + "label" : "Bath, Patricia" + }, + { + "id" : "Darwin \"Jones\", Charles", + "label" : "Darwin \"Jones\", Charles" + } ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ "Bath, Patricia", "Darwin \"Jones\", Charles" ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "XzQw5jYpuB" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.5.json b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.5.json index dd0b736dc..320ae8379 100644 --- a/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.5.json +++ b/common/search/src/test/resources/test_documents/works.examples.contributor-filters-tests.5.json @@ -1,182 +1,182 @@ { - "description": "examples for the contributor filter tests", - "createdAt": "2024-11-13T08:43:26.620907Z", - "id": "syv21f7g", - "document": { - "debug": { - "source": { - "id": "syv21f7g", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the contributor filter tests", + "createdAt" : "2024-11-25T15:15:12.464061Z", + "id" : "syv21f7g", + "document" : { + "debug" : { + "source" : { + "id" : "syv21f7g", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "4Dxc6NTEVZ" + "ontologyType" : "Work", + "value" : "4Dxc6NTEVZ" }, - "version": 40, - "modifiedTime": "2031-05-07T13:00:36Z" + "version" : 40, + "modifiedTime" : "2031-05-07T13:00:36Z" }, - "mergedTime": "2031-05-07T13:00:36Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2031-05-07T13:00:36Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "syv21f7g", - "title": "title-bSjf9AwXjw", - "alternativeTitles": [ + "display" : { + "id" : "syv21f7g", + "title" : "title-bSjf9AwXjw", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "4Dxc6NTEVZ", - "type": "Identifier" + "value" : "4Dxc6NTEVZ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "syv21f7g", - "sourceIdentifier.value": "4Dxc6NTEVZ", - "identifiers.value": [ + "id" : "syv21f7g", + "sourceIdentifier.value" : "4Dxc6NTEVZ", + "identifiers.value" : [ "4Dxc6NTEVZ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-bSjf9AwXjw" + "title" : "title-bSjf9AwXjw" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "4Dxc6NTEVZ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.different-work-types.Collection.json b/common/search/src/test/resources/test_documents/works.examples.different-work-types.Collection.json index 926e7901f..3dc9899f6 100644 --- a/common/search/src/test/resources/test_documents/works.examples.different-work-types.Collection.json +++ b/common/search/src/test/resources/test_documents/works.examples.different-work-types.Collection.json @@ -1,182 +1,182 @@ { - "description": "examples of works with different types", - "createdAt": "2024-11-13T08:43:26.598122Z", - "id": "osineemq", - "document": { - "debug": { - "source": { - "id": "osineemq", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples of works with different types", + "createdAt" : "2024-11-25T15:15:12.443642Z", + "id" : "osineemq", + "document" : { + "debug" : { + "source" : { + "id" : "osineemq", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "oFYwsvmZKL" + "ontologyType" : "Work", + "value" : "oFYwsvmZKL" }, - "version": 88, - "modifiedTime": "1982-02-15T00:55:59Z" + "version" : 88, + "modifiedTime" : "1982-02-15T00:55:59Z" }, - "mergedTime": "1982-02-15T00:55:59Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1982-02-15T00:55:59Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "osineemq", - "title": "rats", - "alternativeTitles": [ + "display" : { + "id" : "osineemq", + "title" : "rats", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "oFYwsvmZKL", - "type": "Identifier" + "value" : "oFYwsvmZKL", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Collection" + "type" : "Collection" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "osineemq", - "sourceIdentifier.value": "oFYwsvmZKL", - "identifiers.value": [ + "id" : "osineemq", + "sourceIdentifier.value" : "oFYwsvmZKL", + "identifiers.value" : [ "oFYwsvmZKL" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Collection", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Collection", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "oFYwsvmZKL" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.different-work-types.Section.json b/common/search/src/test/resources/test_documents/works.examples.different-work-types.Section.json index 5976f2036..96fe6a848 100644 --- a/common/search/src/test/resources/test_documents/works.examples.different-work-types.Section.json +++ b/common/search/src/test/resources/test_documents/works.examples.different-work-types.Section.json @@ -1,182 +1,182 @@ { - "description": "examples of works with different types", - "createdAt": "2024-11-13T08:43:26.596883Z", - "id": "48vvelyd", - "document": { - "debug": { - "source": { - "id": "48vvelyd", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples of works with different types", + "createdAt" : "2024-11-25T15:15:12.442559Z", + "id" : "48vvelyd", + "document" : { + "debug" : { + "source" : { + "id" : "48vvelyd", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "eiJRew3RmJ" + "ontologyType" : "Work", + "value" : "eiJRew3RmJ" }, - "version": 38, - "modifiedTime": "1943-05-14T19:16:03Z" + "version" : 38, + "modifiedTime" : "1943-05-14T19:16:03Z" }, - "mergedTime": "1943-05-14T19:16:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1943-05-14T19:16:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "48vvelyd", - "title": "rats", - "alternativeTitles": [ + "display" : { + "id" : "48vvelyd", + "title" : "rats", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "eiJRew3RmJ", - "type": "Identifier" + "value" : "eiJRew3RmJ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Section" + "type" : "Section" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "48vvelyd", - "sourceIdentifier.value": "eiJRew3RmJ", - "identifiers.value": [ + "id" : "48vvelyd", + "sourceIdentifier.value" : "eiJRew3RmJ", + "identifiers.value" : [ "eiJRew3RmJ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Section", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Section", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "eiJRew3RmJ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.different-work-types.Series.json b/common/search/src/test/resources/test_documents/works.examples.different-work-types.Series.json index 25ad80017..b28e6cb82 100644 --- a/common/search/src/test/resources/test_documents/works.examples.different-work-types.Series.json +++ b/common/search/src/test/resources/test_documents/works.examples.different-work-types.Series.json @@ -1,182 +1,182 @@ { - "description": "examples of works with different types", - "createdAt": "2024-11-13T08:43:26.599808Z", - "id": "pbeanc7x", - "document": { - "debug": { - "source": { - "id": "pbeanc7x", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples of works with different types", + "createdAt" : "2024-11-25T15:15:12.445258Z", + "id" : "pbeanc7x", + "document" : { + "debug" : { + "source" : { + "id" : "pbeanc7x", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "ZmmbPJWDqm" + "ontologyType" : "Work", + "value" : "ZmmbPJWDqm" }, - "version": 82, - "modifiedTime": "2049-02-26T19:42:13Z" + "version" : 82, + "modifiedTime" : "2049-02-26T19:42:13Z" }, - "mergedTime": "2049-02-26T19:42:13Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2049-02-26T19:42:13Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "pbeanc7x", - "title": "rats", - "alternativeTitles": [ + "display" : { + "id" : "pbeanc7x", + "title" : "rats", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "ZmmbPJWDqm", - "type": "Identifier" + "value" : "ZmmbPJWDqm", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Series" + "type" : "Series" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "pbeanc7x", - "sourceIdentifier.value": "ZmmbPJWDqm", - "identifiers.value": [ + "id" : "pbeanc7x", + "sourceIdentifier.value" : "ZmmbPJWDqm", + "identifiers.value" : [ "ZmmbPJWDqm" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Series", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Series", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ZmmbPJWDqm" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.0.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.0.json index 78038f193..902b6e1a6 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.0.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.0.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.643155Z", - "id": "pgnx8xiu", - "document": { - "debug": { - "source": { - "id": "pgnx8xiu", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.493124Z", + "id" : "pgnx8xiu", + "document" : { + "debug" : { + "source" : { + "id" : "pgnx8xiu", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "ahC4keAffG" + "ontologyType" : "Work", + "value" : "ahC4keAffG" }, - "version": 53, - "modifiedTime": "2044-04-23T02:39:03Z" + "version" : 53, + "modifiedTime" : "2044-04-23T02:39:03Z" }, - "mergedTime": "2044-04-23T02:39:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2044-04-23T02:39:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "pgnx8xiu", - "title": "rats", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "pgnx8xiu", + "title" : "rats", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "ahC4keAffG", - "type": "Identifier" + "value" : "ahC4keAffG", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "bak", - "label": "Bashkir", - "type": "Language" + "id" : "bak", + "label" : "Bashkir", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "pgnx8xiu", - "sourceIdentifier.value": "ahC4keAffG", - "identifiers.value": [ + "id" : "pgnx8xiu", + "sourceIdentifier.value" : "ahC4keAffG", + "identifiers.value" : [ "ahC4keAffG" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Bashkir" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"bak\",\"label\":\"Bashkir\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "bak", + "label" : "Bashkir" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "bak" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ahC4keAffG" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.1.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.1.json index 949e57894..37f6f86ac 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.1.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.1.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.643470Z", - "id": "ryawvgup", - "document": { - "debug": { - "source": { - "id": "ryawvgup", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.493435Z", + "id" : "ryawvgup", + "document" : { + "debug" : { + "source" : { + "id" : "ryawvgup", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "jHeY6Fz9Kp" + "ontologyType" : "Work", + "value" : "jHeY6Fz9Kp" }, - "version": 72, - "modifiedTime": "2059-12-28T14:23:34Z" + "version" : 72, + "modifiedTime" : "2059-12-28T14:23:34Z" }, - "mergedTime": "2059-12-28T14:23:34Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2059-12-28T14:23:34Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ryawvgup", - "title": "capybara", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "ryawvgup", + "title" : "capybara", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "jHeY6Fz9Kp", - "type": "Identifier" + "value" : "jHeY6Fz9Kp", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "mar", - "label": "Marathi", - "type": "Language" + "id" : "mar", + "label" : "Marathi", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ryawvgup", - "sourceIdentifier.value": "jHeY6Fz9Kp", - "identifiers.value": [ + "id" : "ryawvgup", + "sourceIdentifier.value" : "jHeY6Fz9Kp", + "identifiers.value" : [ "jHeY6Fz9Kp" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Marathi" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "capybara" + "title" : "capybara" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"mar\",\"label\":\"Marathi\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "mar", + "label" : "Marathi" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "mar" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "jHeY6Fz9Kp" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.2.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.2.json index daaf046b7..e61419f65 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.2.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.2.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.643763Z", - "id": "z5orxsbq", - "document": { - "debug": { - "source": { - "id": "z5orxsbq", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.493729Z", + "id" : "z5orxsbq", + "document" : { + "debug" : { + "source" : { + "id" : "z5orxsbq", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "K1TpzZmCli" + "ontologyType" : "Work", + "value" : "K1TpzZmCli" }, - "version": 66, - "modifiedTime": "1981-06-28T10:43:18Z" + "version" : 66, + "modifiedTime" : "1981-06-28T10:43:18Z" }, - "mergedTime": "1981-06-28T10:43:18Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1981-06-28T10:43:18Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "z5orxsbq", - "title": "tapirs", - "alternativeTitles": [ - ], - "workType": { - "id": "k", - "label": "Pictures", - "type": "Format" + "display" : { + "id" : "z5orxsbq", + "title" : "tapirs", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "k", + "label" : "Pictures", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "K1TpzZmCli", - "type": "Identifier" + "value" : "K1TpzZmCli", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "que", - "label": "Quechua", - "type": "Language" + "id" : "que", + "label" : "Quechua", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "z5orxsbq", - "sourceIdentifier.value": "K1TpzZmCli", - "identifiers.value": [ + "id" : "z5orxsbq", + "sourceIdentifier.value" : "K1TpzZmCli", + "identifiers.value" : [ "K1TpzZmCli" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Quechua" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "tapirs" + "title" : "tapirs" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"k\",\"label\":\"Pictures\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "k", + "label" : "Pictures" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"que\",\"label\":\"Quechua\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "que", + "label" : "Quechua" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "k", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "k", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "que" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "K1TpzZmCli" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.3.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.3.json index 74d1cf5ed..b6c21a4fc 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.3.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.3.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.644082Z", - "id": "sts5c3ls", - "document": { - "debug": { - "source": { - "id": "sts5c3ls", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.494024Z", + "id" : "sts5c3ls", + "document" : { + "debug" : { + "source" : { + "id" : "sts5c3ls", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "bQuZPdet7f" + "ontologyType" : "Work", + "value" : "bQuZPdet7f" }, - "version": 36, - "modifiedTime": "1950-01-25T21:30:47Z" + "version" : 36, + "modifiedTime" : "1950-01-25T21:30:47Z" }, - "mergedTime": "1950-01-25T21:30:47Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1950-01-25T21:30:47Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "sts5c3ls", - "title": "rats", - "alternativeTitles": [ - ], - "workType": { - "id": "i", - "label": "Audio", - "type": "Format" + "display" : { + "id" : "sts5c3ls", + "title" : "rats", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "i", + "label" : "Audio", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "bQuZPdet7f", - "type": "Identifier" + "value" : "bQuZPdet7f", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "bak", - "label": "Bashkir", - "type": "Language" + "id" : "bak", + "label" : "Bashkir", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "sts5c3ls", - "sourceIdentifier.value": "bQuZPdet7f", - "identifiers.value": [ + "id" : "sts5c3ls", + "sourceIdentifier.value" : "bQuZPdet7f", + "identifiers.value" : [ "bQuZPdet7f" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Bashkir" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"i\",\"label\":\"Audio\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "i", + "label" : "Audio" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"bak\",\"label\":\"Bashkir\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "bak", + "label" : "Bashkir" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "i", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "i", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "bak" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "bQuZPdet7f" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.4.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.4.json index 2e03e72f2..845b504b8 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.4.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.4.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.644366Z", - "id": "ursfcpyu", - "document": { - "debug": { - "source": { - "id": "ursfcpyu", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.494328Z", + "id" : "ursfcpyu", + "document" : { + "debug" : { + "source" : { + "id" : "ursfcpyu", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "DATqKSqlcV" + "ontologyType" : "Work", + "value" : "DATqKSqlcV" }, - "version": 18, - "modifiedTime": "2068-12-03T06:41:51Z" + "version" : 18, + "modifiedTime" : "2068-12-03T06:41:51Z" }, - "mergedTime": "2068-12-03T06:41:51Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2068-12-03T06:41:51Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ursfcpyu", - "title": "capybara", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "ursfcpyu", + "title" : "capybara", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "DATqKSqlcV", - "type": "Identifier" + "value" : "DATqKSqlcV", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "bak", - "label": "Bashkir", - "type": "Language" + "id" : "bak", + "label" : "Bashkir", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ursfcpyu", - "sourceIdentifier.value": "DATqKSqlcV", - "identifiers.value": [ + "id" : "ursfcpyu", + "sourceIdentifier.value" : "DATqKSqlcV", + "identifiers.value" : [ "DATqKSqlcV" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Bashkir" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "capybara" + "title" : "capybara" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"bak\",\"label\":\"Bashkir\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "bak", + "label" : "Bashkir" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "bak" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "DATqKSqlcV" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.5.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.5.json index e901ed2b9..d68d560e7 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.5.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.5.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.644673Z", - "id": "crmdnx7u", - "document": { - "debug": { - "source": { - "id": "crmdnx7u", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.494622Z", + "id" : "crmdnx7u", + "document" : { + "debug" : { + "source" : { + "id" : "crmdnx7u", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "7z5sgyOBC4" + "ontologyType" : "Work", + "value" : "7z5sgyOBC4" }, - "version": 86, - "modifiedTime": "2054-08-12T01:30:45Z" + "version" : 86, + "modifiedTime" : "2054-08-12T01:30:45Z" }, - "mergedTime": "2054-08-12T01:30:45Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2054-08-12T01:30:45Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "crmdnx7u", - "title": "tapirs", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "crmdnx7u", + "title" : "tapirs", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "7z5sgyOBC4", - "type": "Identifier" + "value" : "7z5sgyOBC4", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "bak", - "label": "Bashkir", - "type": "Language" + "id" : "bak", + "label" : "Bashkir", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "crmdnx7u", - "sourceIdentifier.value": "7z5sgyOBC4", - "identifiers.value": [ + "id" : "crmdnx7u", + "sourceIdentifier.value" : "7z5sgyOBC4", + "identifiers.value" : [ "7z5sgyOBC4" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Bashkir" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "tapirs" + "title" : "tapirs" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"bak\",\"label\":\"Bashkir\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "bak", + "label" : "Bashkir" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "bak" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "7z5sgyOBC4" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.6.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.6.json index 415318a1c..b2866c822 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.6.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.6.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.644979Z", - "id": "7dzlu1am", - "document": { - "debug": { - "source": { - "id": "7dzlu1am", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.494913Z", + "id" : "7dzlu1am", + "document" : { + "debug" : { + "source" : { + "id" : "7dzlu1am", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "2z2trB0Sw2" + "ontologyType" : "Work", + "value" : "2z2trB0Sw2" }, - "version": 87, - "modifiedTime": "2005-08-09T18:48:42Z" + "version" : 87, + "modifiedTime" : "2005-08-09T18:48:42Z" }, - "mergedTime": "2005-08-09T18:48:42Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2005-08-09T18:48:42Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "7dzlu1am", - "title": "rats", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "7dzlu1am", + "title" : "rats", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "2z2trB0Sw2", - "type": "Identifier" + "value" : "2z2trB0Sw2", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "que", - "label": "Quechua", - "type": "Language" + "id" : "que", + "label" : "Quechua", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "7dzlu1am", - "sourceIdentifier.value": "2z2trB0Sw2", - "identifiers.value": [ + "id" : "7dzlu1am", + "sourceIdentifier.value" : "2z2trB0Sw2", + "identifiers.value" : [ "2z2trB0Sw2" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Quechua" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"que\",\"label\":\"Quechua\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "que", + "label" : "Quechua" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "que" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "2z2trB0Sw2" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.7.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.7.json index feb205d9f..dc181e160 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.7.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.7.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.645281Z", - "id": "rfckqwuh", - "document": { - "debug": { - "source": { - "id": "rfckqwuh", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.495221Z", + "id" : "rfckqwuh", + "document" : { + "debug" : { + "source" : { + "id" : "rfckqwuh", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "e1HWk1Ah2x" + "ontologyType" : "Work", + "value" : "e1HWk1Ah2x" }, - "version": 48, - "modifiedTime": "1997-05-16T00:21:21Z" + "version" : 48, + "modifiedTime" : "1997-05-16T00:21:21Z" }, - "mergedTime": "1997-05-16T00:21:21Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1997-05-16T00:21:21Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "rfckqwuh", - "title": "capybara", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "rfckqwuh", + "title" : "capybara", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "e1HWk1Ah2x", - "type": "Identifier" + "value" : "e1HWk1Ah2x", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "mar", - "label": "Marathi", - "type": "Language" + "id" : "mar", + "label" : "Marathi", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "rfckqwuh", - "sourceIdentifier.value": "e1HWk1Ah2x", - "identifiers.value": [ + "id" : "rfckqwuh", + "sourceIdentifier.value" : "e1HWk1Ah2x", + "identifiers.value" : [ "e1HWk1Ah2x" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Marathi" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "capybara" + "title" : "capybara" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"mar\",\"label\":\"Marathi\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "mar", + "label" : "Marathi" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "mar" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "e1HWk1Ah2x" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.8.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.8.json index 8ef15c293..c85f4768d 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.8.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.8.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.645597Z", - "id": "el5rbb4t", - "document": { - "debug": { - "source": { - "id": "el5rbb4t", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.495742Z", + "id" : "el5rbb4t", + "document" : { + "debug" : { + "source" : { + "id" : "el5rbb4t", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "uNmLrXrfr8" + "ontologyType" : "Work", + "value" : "uNmLrXrfr8" }, - "version": 48, - "modifiedTime": "2036-09-29T11:49:16Z" + "version" : 48, + "modifiedTime" : "2036-09-29T11:49:16Z" }, - "mergedTime": "2036-09-29T11:49:16Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2036-09-29T11:49:16Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "el5rbb4t", - "title": "tapirs", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "el5rbb4t", + "title" : "tapirs", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "uNmLrXrfr8", - "type": "Identifier" + "value" : "uNmLrXrfr8", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "que", - "label": "Quechua", - "type": "Language" + "id" : "que", + "label" : "Quechua", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "el5rbb4t", - "sourceIdentifier.value": "uNmLrXrfr8", - "identifiers.value": [ + "id" : "el5rbb4t", + "sourceIdentifier.value" : "uNmLrXrfr8", + "identifiers.value" : [ "uNmLrXrfr8" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Quechua" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "tapirs" + "title" : "tapirs" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"que\",\"label\":\"Quechua\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "que", + "label" : "Quechua" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "que" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "uNmLrXrfr8" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.9.json b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.9.json index e4f457d90..c4cbcd9af 100644 --- a/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.9.json +++ b/common/search/src/test/resources/test_documents/works.examples.filtered-aggregations-tests.9.json @@ -1,196 +1,202 @@ { - "description": "examples for the works filtered aggregations tests", - "createdAt": "2024-11-13T08:43:26.645904Z", - "id": "svnlbwse", - "document": { - "debug": { - "source": { - "id": "svnlbwse", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the works filtered aggregations tests", + "createdAt" : "2024-11-25T15:15:12.496137Z", + "id" : "svnlbwse", + "document" : { + "debug" : { + "source" : { + "id" : "svnlbwse", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "JFu0QVu8iR" + "ontologyType" : "Work", + "value" : "JFu0QVu8iR" }, - "version": 62, - "modifiedTime": "2025-11-29T16:51:43Z" + "version" : 62, + "modifiedTime" : "2025-11-29T16:51:43Z" }, - "mergedTime": "2025-11-29T16:51:43Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2025-11-29T16:51:43Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "svnlbwse", - "title": "rats", - "alternativeTitles": [ - ], - "workType": { - "id": "i", - "label": "Audio", - "type": "Format" + "display" : { + "id" : "svnlbwse", + "title" : "rats", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "i", + "label" : "Audio", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "JFu0QVu8iR", - "type": "Identifier" + "value" : "JFu0QVu8iR", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "che", - "label": "Chechen", - "type": "Language" + "id" : "che", + "label" : "Chechen", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "svnlbwse", - "sourceIdentifier.value": "JFu0QVu8iR", - "identifiers.value": [ + "id" : "svnlbwse", + "sourceIdentifier.value" : "JFu0QVu8iR", + "identifiers.value" : [ "JFu0QVu8iR" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Chechen" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "rats" + "title" : "rats" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"i\",\"label\":\"Audio\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "i", + "label" : "Audio" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"che\",\"label\":\"Chechen\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "che", + "label" : "Chechen" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "i", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "i", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "che" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "JFu0QVu8iR" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.0.json b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.0.json index 3357cf519..1e33ee6ac 100644 --- a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.0.json +++ b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.0.json @@ -1,226 +1,229 @@ { - "description": "examples for the genre tests", - "createdAt": "2024-11-13T08:43:26.602371Z", - "id": "xowd5kj1", - "document": { - "debug": { - "source": { - "id": "xowd5kj1", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the genre tests", + "createdAt" : "2024-11-25T15:15:12.447669Z", + "id" : "xowd5kj1", + "document" : { + "debug" : { + "source" : { + "id" : "xowd5kj1", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "tYS1KOlZmZ" + "ontologyType" : "Work", + "value" : "tYS1KOlZmZ" }, - "version": 99, - "modifiedTime": "1971-02-26T13:40:07Z" + "version" : 99, + "modifiedTime" : "1971-02-26T13:40:07Z" }, - "mergedTime": "1971-02-26T13:40:07Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1971-02-26T13:40:07Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "xowd5kj1", - "title": "title-X3OfWNE6m5", - "alternativeTitles": [ + "display" : { + "id" : "xowd5kj1", + "title" : "title-X3OfWNE6m5", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "tYS1KOlZmZ", - "type": "Identifier" + "value" : "tYS1KOlZmZ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ { - "label": "Annual reports", - "concepts": [ + "label" : "Annual reports", + "concepts" : [ { - "id": "g00dcafe", - "identifiers": [ + "id" : "g00dcafe", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "T9fhswtSuP", - "type": "Identifier" + "value" : "T9fhswtSuP", + "type" : "Identifier" } ], - "label": "mWNKiLGpm85YYFF", - "type": "Genre" + "label" : "mWNKiLGpm85YYFF", + "type" : "Genre" }, { - "id": "baadf00d", - "identifiers": [ + "id" : "baadf00d", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "WKJQbCBtOF", - "type": "Identifier" + "value" : "WKJQbCBtOF", + "type" : "Identifier" } ], - "label": "Oo0o5Odfdodercw", - "type": "Concept" + "label" : "Oo0o5Odfdodercw", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "mWNKiLGpm85YYFF", "Oo0o5Odfdodercw" ], - "id": "xowd5kj1", - "sourceIdentifier.value": "tYS1KOlZmZ", - "identifiers.value": [ + "id" : "xowd5kj1", + "sourceIdentifier.value" : "tYS1KOlZmZ", + "identifiers.value" : [ "tYS1KOlZmZ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-X3OfWNE6m5" + "title" : "title-X3OfWNE6m5" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Annual reports\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "g00dcafe", + "label" : "Annual reports" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ "Annual reports" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "g00dcafe" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "T9fhswtSuP" ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "tYS1KOlZmZ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.1.json b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.1.json index c4d0112df..4b00cf978 100644 --- a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.1.json +++ b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.1.json @@ -1,209 +1,212 @@ { - "description": "examples for the genre tests", - "createdAt": "2024-11-13T08:43:26.602785Z", - "id": "yzj9dwdl", - "document": { - "debug": { - "source": { - "id": "yzj9dwdl", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the genre tests", + "createdAt" : "2024-11-25T15:15:12.448024Z", + "id" : "yzj9dwdl", + "document" : { + "debug" : { + "source" : { + "id" : "yzj9dwdl", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "AYys6jP7Ji" + "ontologyType" : "Work", + "value" : "AYys6jP7Ji" }, - "version": 36, - "modifiedTime": "1955-12-24T22:52:57Z" + "version" : 36, + "modifiedTime" : "1955-12-24T22:52:57Z" }, - "mergedTime": "1955-12-24T22:52:57Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1955-12-24T22:52:57Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "yzj9dwdl", - "title": "title-2RdbNpFC2P", - "alternativeTitles": [ + "display" : { + "id" : "yzj9dwdl", + "title" : "title-2RdbNpFC2P", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "AYys6jP7Ji", - "type": "Identifier" + "value" : "AYys6jP7Ji", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ { - "label": "Pamphlets", - "concepts": [ + "label" : "Pamphlets", + "concepts" : [ { - "id": "g00dcafe", - "identifiers": [ + "id" : "g00dcafe", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "dmKTFidDls", - "type": "Identifier" + "value" : "dmKTFidDls", + "type" : "Identifier" } ], - "label": "9X3cVR8q4GIgcsJ", - "type": "Genre" + "label" : "9X3cVR8q4GIgcsJ", + "type" : "Genre" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "9X3cVR8q4GIgcsJ" ], - "id": "yzj9dwdl", - "sourceIdentifier.value": "AYys6jP7Ji", - "identifiers.value": [ + "id" : "yzj9dwdl", + "sourceIdentifier.value" : "AYys6jP7Ji", + "identifiers.value" : [ "AYys6jP7Ji" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-2RdbNpFC2P" + "title" : "title-2RdbNpFC2P" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Pamphlets\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "g00dcafe", + "label" : "Pamphlets" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ "Pamphlets" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "g00dcafe" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "dmKTFidDls" ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "AYys6jP7Ji" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.2.json b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.2.json index 2f1e70ecd..7cef73746 100644 --- a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.2.json +++ b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.2.json @@ -1,209 +1,212 @@ { - "description": "examples for the genre tests", - "createdAt": "2024-11-13T08:43:26.603188Z", - "id": "avugqd3s", - "document": { - "debug": { - "source": { - "id": "avugqd3s", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the genre tests", + "createdAt" : "2024-11-25T15:15:12.448349Z", + "id" : "avugqd3s", + "document" : { + "debug" : { + "source" : { + "id" : "avugqd3s", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "WGGaiNvMk5" + "ontologyType" : "Work", + "value" : "WGGaiNvMk5" }, - "version": 67, - "modifiedTime": "2031-04-13T18:09:40Z" + "version" : 67, + "modifiedTime" : "2031-04-13T18:09:40Z" }, - "mergedTime": "2031-04-13T18:09:40Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2031-04-13T18:09:40Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "avugqd3s", - "title": "title-RQFJOR9VqA", - "alternativeTitles": [ + "display" : { + "id" : "avugqd3s", + "title" : "title-RQFJOR9VqA", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "WGGaiNvMk5", - "type": "Identifier" + "value" : "WGGaiNvMk5", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ { - "label": "Psychology, Pathological", - "concepts": [ + "label" : "Psychology, Pathological", + "concepts" : [ { - "id": "baadf00d", - "identifiers": [ + "id" : "baadf00d", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "um1qUlCcjg", - "type": "Identifier" + "value" : "um1qUlCcjg", + "type" : "Identifier" } ], - "label": "qnu7hZZtHlWPIpZ", - "type": "Genre" + "label" : "qnu7hZZtHlWPIpZ", + "type" : "Genre" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "qnu7hZZtHlWPIpZ" ], - "id": "avugqd3s", - "sourceIdentifier.value": "WGGaiNvMk5", - "identifiers.value": [ + "id" : "avugqd3s", + "sourceIdentifier.value" : "WGGaiNvMk5", + "identifiers.value" : [ "WGGaiNvMk5" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-RQFJOR9VqA" + "title" : "title-RQFJOR9VqA" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Psychology, Pathological\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "baadf00d", + "label" : "Psychology, Pathological" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ "Psychology, Pathological" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "baadf00d" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "um1qUlCcjg" ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "WGGaiNvMk5" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.3.json b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.3.json index a685c3ff2..34704c349 100644 --- a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.3.json +++ b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.3.json @@ -1,243 +1,246 @@ { - "description": "examples for the genre tests", - "createdAt": "2024-11-13T08:43:26.603672Z", - "id": "vr490vab", - "document": { - "debug": { - "source": { - "id": "vr490vab", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the genre tests", + "createdAt" : "2024-11-25T15:15:12.448753Z", + "id" : "vr490vab", + "document" : { + "debug" : { + "source" : { + "id" : "vr490vab", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "AzAiZFAZvT" + "ontologyType" : "Work", + "value" : "AzAiZFAZvT" }, - "version": 34, - "modifiedTime": "1956-06-20T09:37:32Z" + "version" : 34, + "modifiedTime" : "1956-06-20T09:37:32Z" }, - "mergedTime": "1956-06-20T09:37:32Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1956-06-20T09:37:32Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "vr490vab", - "title": "title-q4zh18D0cb", - "alternativeTitles": [ + "display" : { + "id" : "vr490vab", + "title" : "title-q4zh18D0cb", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "AzAiZFAZvT", - "type": "Identifier" + "value" : "AzAiZFAZvT", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ { - "label": "Darwin \"Jones\", Charles", - "concepts": [ + "label" : "Darwin \"Jones\", Charles", + "concepts" : [ { - "id": "lmpakqz5", - "identifiers": [ + "id" : "lmpakqz5", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "DpKgb0Wdy2", - "type": "Identifier" + "value" : "DpKgb0Wdy2", + "type" : "Identifier" } ], - "label": "5SIuLPMgIG177tc", - "type": "Genre" + "label" : "5SIuLPMgIG177tc", + "type" : "Genre" }, { - "id": "nmumczq1", - "identifiers": [ + "id" : "nmumczq1", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Q4CK8DrDsk", - "type": "Identifier" + "value" : "Q4CK8DrDsk", + "type" : "Identifier" } ], - "label": "JcxukacPWKUROxB", - "type": "Concept" + "label" : "JcxukacPWKUROxB", + "type" : "Concept" }, { - "id": "2kcagurh", - "identifiers": [ + "id" : "2kcagurh", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "p5zfssscK3", - "type": "Identifier" + "value" : "p5zfssscK3", + "type" : "Identifier" } ], - "label": "x40zJbSlLwDNn2E", - "type": "Concept" + "label" : "x40zJbSlLwDNn2E", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "5SIuLPMgIG177tc", "JcxukacPWKUROxB", "x40zJbSlLwDNn2E" ], - "id": "vr490vab", - "sourceIdentifier.value": "AzAiZFAZvT", - "identifiers.value": [ + "id" : "vr490vab", + "sourceIdentifier.value" : "AzAiZFAZvT", + "identifiers.value" : [ "AzAiZFAZvT" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-q4zh18D0cb" + "title" : "title-q4zh18D0cb" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Darwin \\\"Jones\\\", Charles\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "lmpakqz5", + "label" : "Darwin \"Jones\", Charles" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ "Darwin \"Jones\", Charles" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "lmpakqz5" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "DpKgb0Wdy2" ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "AzAiZFAZvT" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.4.json b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.4.json index 92f6235ff..66b238bc6 100644 --- a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.4.json +++ b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.4.json @@ -1,297 +1,306 @@ { - "description": "examples for the genre tests", - "createdAt": "2024-11-13T08:43:26.604274Z", - "id": "plxkke6n", - "document": { - "debug": { - "source": { - "id": "plxkke6n", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "examples for the genre tests", + "createdAt" : "2024-11-25T15:15:12.449238Z", + "id" : "plxkke6n", + "document" : { + "debug" : { + "source" : { + "id" : "plxkke6n", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "1R485o02Dx" + "ontologyType" : "Work", + "value" : "1R485o02Dx" }, - "version": 26, - "modifiedTime": "1986-05-12T09:04:10Z" + "version" : 26, + "modifiedTime" : "1986-05-12T09:04:10Z" }, - "mergedTime": "1986-05-12T09:04:10Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1986-05-12T09:04:10Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "plxkke6n", - "title": "title-cQ8QOPJdAX", - "alternativeTitles": [ + "display" : { + "id" : "plxkke6n", + "title" : "title-cQ8QOPJdAX", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "1R485o02Dx", - "type": "Identifier" + "value" : "1R485o02Dx", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ { - "label": "Pamphlets", - "concepts": [ + "label" : "Pamphlets", + "concepts" : [ { - "id": "g00dcafe", - "identifiers": [ + "id" : "g00dcafe", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "dmKTFidDls", - "type": "Identifier" + "value" : "dmKTFidDls", + "type" : "Identifier" } ], - "label": "9X3cVR8q4GIgcsJ", - "type": "Genre" + "label" : "9X3cVR8q4GIgcsJ", + "type" : "Genre" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "Psychology, Pathological", - "concepts": [ + "label" : "Psychology, Pathological", + "concepts" : [ { - "id": "baadf00d", - "identifiers": [ + "id" : "baadf00d", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "um1qUlCcjg", - "type": "Identifier" + "value" : "um1qUlCcjg", + "type" : "Identifier" } ], - "label": "qnu7hZZtHlWPIpZ", - "type": "Genre" + "label" : "qnu7hZZtHlWPIpZ", + "type" : "Genre" } ], - "type": "Genre" + "type" : "Genre" }, { - "label": "Darwin \"Jones\", Charles", - "concepts": [ + "label" : "Darwin \"Jones\", Charles", + "concepts" : [ { - "id": "lmpakqz5", - "identifiers": [ + "id" : "lmpakqz5", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "DpKgb0Wdy2", - "type": "Identifier" + "value" : "DpKgb0Wdy2", + "type" : "Identifier" } ], - "label": "5SIuLPMgIG177tc", - "type": "Genre" + "label" : "5SIuLPMgIG177tc", + "type" : "Genre" }, { - "id": "nmumczq1", - "identifiers": [ + "id" : "nmumczq1", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Q4CK8DrDsk", - "type": "Identifier" + "value" : "Q4CK8DrDsk", + "type" : "Identifier" } ], - "label": "JcxukacPWKUROxB", - "type": "Concept" + "label" : "JcxukacPWKUROxB", + "type" : "Concept" }, { - "id": "2kcagurh", - "identifiers": [ + "id" : "2kcagurh", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "p5zfssscK3", - "type": "Identifier" + "value" : "p5zfssscK3", + "type" : "Identifier" } ], - "label": "x40zJbSlLwDNn2E", - "type": "Concept" + "label" : "x40zJbSlLwDNn2E", + "type" : "Concept" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "9X3cVR8q4GIgcsJ", "qnu7hZZtHlWPIpZ", "5SIuLPMgIG177tc", "JcxukacPWKUROxB", "x40zJbSlLwDNn2E" ], - "id": "plxkke6n", - "sourceIdentifier.value": "1R485o02Dx", - "identifiers.value": [ + "id" : "plxkke6n", + "sourceIdentifier.value" : "1R485o02Dx", + "identifiers.value" : [ "1R485o02Dx" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-cQ8QOPJdAX" + "title" : "title-cQ8QOPJdAX" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Pamphlets\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"Psychology, Pathological\",\"concepts\":[],\"type\":\"Genre\"}", - "{\"label\":\"Darwin \\\"Jones\\\", Charles\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "g00dcafe", + "label" : "Pamphlets" + }, + { + "id" : "baadf00d", + "label" : "Psychology, Pathological" + }, + { + "id" : "lmpakqz5", + "label" : "Darwin \"Jones\", Charles" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ "Pamphlets", "Psychology, Pathological", "Darwin \"Jones\", Charles" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ "g00dcafe", "baadf00d", "lmpakqz5" ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ "dmKTFidDls", "um1qUlCcjg", "DpKgb0Wdy2" ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "1R485o02Dx" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.5.json b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.5.json index 489206e32..6852ad2a5 100644 --- a/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.5.json +++ b/common/search/src/test/resources/test_documents/works.examples.genre-filters-tests.5.json @@ -1,182 +1,182 @@ { - "description": "examples for the genre tests", - "createdAt": "2024-11-13T08:43:26.604702Z", - "id": "wbrfsaz5", - "document": { - "debug": { - "source": { - "id": "wbrfsaz5", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the genre tests", + "createdAt" : "2024-11-25T15:15:12.449519Z", + "id" : "wbrfsaz5", + "document" : { + "debug" : { + "source" : { + "id" : "wbrfsaz5", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "MzC1ICZOvN" + "ontologyType" : "Work", + "value" : "MzC1ICZOvN" }, - "version": 83, - "modifiedTime": "2016-08-14T05:01:03Z" + "version" : 83, + "modifiedTime" : "2016-08-14T05:01:03Z" }, - "mergedTime": "2016-08-14T05:01:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2016-08-14T05:01:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "wbrfsaz5", - "title": "title-u5hoUH5ZhF", - "alternativeTitles": [ + "display" : { + "id" : "wbrfsaz5", + "title" : "title-u5hoUH5ZhF", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "MzC1ICZOvN", - "type": "Identifier" + "value" : "MzC1ICZOvN", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "wbrfsaz5", - "sourceIdentifier.value": "MzC1ICZOvN", - "identifiers.value": [ + "id" : "wbrfsaz5", + "sourceIdentifier.value" : "MzC1ICZOvN", + "identifiers.value" : [ "MzC1ICZOvN" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-u5hoUH5ZhF" + "title" : "title-u5hoUH5ZhF" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "MzC1ICZOvN" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.0.json b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.0.json index 9cb9c86ec..46389ec62 100644 --- a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.0.json +++ b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.0.json @@ -1,229 +1,232 @@ { - "description": "examples for the subject filter tests", - "createdAt": "2024-11-13T08:43:26.610661Z", - "id": "kx6ceruj", - "document": { - "debug": { - "source": { - "id": "kx6ceruj", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the subject filter tests", + "createdAt" : "2024-11-25T15:15:12.455108Z", + "id" : "kx6ceruj", + "document" : { + "debug" : { + "source" : { + "id" : "kx6ceruj", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "KEnxzBExh6" + "ontologyType" : "Work", + "value" : "KEnxzBExh6" }, - "version": 84, - "modifiedTime": "1971-05-14T11:26:40Z" + "version" : 84, + "modifiedTime" : "1971-05-14T11:26:40Z" }, - "mergedTime": "1971-05-14T11:26:40Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1971-05-14T11:26:40Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "kx6ceruj", - "title": "title-ArEMdSJPD8", - "alternativeTitles": [ + "display" : { + "id" : "kx6ceruj", + "title" : "title-ArEMdSJPD8", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "KEnxzBExh6", - "type": "Identifier" + "value" : "KEnxzBExh6", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "id": "sanitati", - "identifiers": [ + "id" : "sanitati", + "identifiers" : [ { - "identifierType": { - "id": "lc-subjects", - "label": "Library of Congress Subject Headings (LCSH)", - "type": "IdentifierType" + "identifierType" : { + "id" : "lc-subjects", + "label" : "Library of Congress Subject Headings (LCSH)", + "type" : "IdentifierType" }, - "value": "lcsh-sanitation", - "type": "Identifier" + "value" : "lcsh-sanitation", + "type" : "Identifier" }, { - "identifierType": { - "id": "nlm-mesh", - "label": "Medical Subject Headings (MeSH) identifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "nlm-mesh", + "label" : "Medical Subject Headings (MeSH) identifier", + "type" : "IdentifierType" }, - "value": "mesh-sanitation", - "type": "Identifier" + "value" : "mesh-sanitation", + "type" : "Identifier" } ], - "label": "Sanitation.", - "concepts": [ + "label" : "Sanitation.", + "concepts" : [ { - "label": "rBAO66qqlbcmHn7", - "type": "Concept" + "label" : "rBAO66qqlbcmHn7", + "type" : "Concept" }, { - "label": "act97zOQ6G6Rkv6", - "type": "Concept" + "label" : "act97zOQ6G6Rkv6", + "type" : "Concept" }, { - "label": "QH5zn9bqmY6Obq6", - "type": "Concept" + "label" : "QH5zn9bqmY6Obq6", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "kx6ceruj", - "sourceIdentifier.value": "KEnxzBExh6", - "identifiers.value": [ + "id" : "kx6ceruj", + "sourceIdentifier.value" : "KEnxzBExh6", + "identifiers.value" : [ "KEnxzBExh6" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "rBAO66qqlbcmHn7", "act97zOQ6G6Rkv6", "QH5zn9bqmY6Obq6" ], - "title": "title-ArEMdSJPD8" + "title" : "title-ArEMdSJPD8" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"Sanitation\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "sanitati", + "label" : "Sanitation" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "Sanitation" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ "sanitati" ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ "lcsh-sanitation", "mesh-sanitation" ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "KEnxzBExh6" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.1.json b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.1.json index 662f1d117..5f5a3b5af 100644 --- a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.1.json +++ b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.1.json @@ -1,205 +1,208 @@ { - "description": "examples for the subject filter tests", - "createdAt": "2024-11-13T08:43:26.611102Z", - "id": "85vigluy", - "document": { - "debug": { - "source": { - "id": "85vigluy", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the subject filter tests", + "createdAt" : "2024-11-25T15:15:12.455620Z", + "id" : "85vigluy", + "document" : { + "debug" : { + "source" : { + "id" : "85vigluy", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "0xrR5Stsp3" + "ontologyType" : "Work", + "value" : "0xrR5Stsp3" }, - "version": 24, - "modifiedTime": "1940-04-20T21:57:32Z" + "version" : 24, + "modifiedTime" : "1940-04-20T21:57:32Z" }, - "mergedTime": "1940-04-20T21:57:32Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1940-04-20T21:57:32Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "85vigluy", - "title": "title-YlnwWOedI3", - "alternativeTitles": [ + "display" : { + "id" : "85vigluy", + "title" : "title-YlnwWOedI3", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "0xrR5Stsp3", - "type": "Identifier" + "value" : "0xrR5Stsp3", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "London (England)", - "concepts": [ + "label" : "London (England)", + "concepts" : [ { - "label": "lxZzGryOg3KGy7M", - "type": "Concept" + "label" : "lxZzGryOg3KGy7M", + "type" : "Concept" }, { - "label": "z5GNUj1it3ic4OR", - "type": "Concept" + "label" : "z5GNUj1it3ic4OR", + "type" : "Concept" }, { - "label": "9LzJV7M3Kvqw9fG", - "type": "Concept" + "label" : "9LzJV7M3Kvqw9fG", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "85vigluy", - "sourceIdentifier.value": "0xrR5Stsp3", - "identifiers.value": [ + "id" : "85vigluy", + "sourceIdentifier.value" : "0xrR5Stsp3", + "identifiers.value" : [ "0xrR5Stsp3" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "lxZzGryOg3KGy7M", "z5GNUj1it3ic4OR", "9LzJV7M3Kvqw9fG" ], - "title": "title-YlnwWOedI3" + "title" : "title-YlnwWOedI3" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"London (England)\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "London (England)", + "label" : "London (England)" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "London (England)" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "0xrR5Stsp3" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.2.json b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.2.json index da4f45604..d2e272084 100644 --- a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.2.json +++ b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.2.json @@ -1,205 +1,208 @@ { - "description": "examples for the subject filter tests", - "createdAt": "2024-11-13T08:43:26.611529Z", - "id": "eadt8hhm", - "document": { - "debug": { - "source": { - "id": "eadt8hhm", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the subject filter tests", + "createdAt" : "2024-11-25T15:15:12.455980Z", + "id" : "eadt8hhm", + "document" : { + "debug" : { + "source" : { + "id" : "eadt8hhm", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "SSg7erLcgx" + "ontologyType" : "Work", + "value" : "SSg7erLcgx" }, - "version": 18, - "modifiedTime": "2010-09-19T13:34:03Z" + "version" : 18, + "modifiedTime" : "2010-09-19T13:34:03Z" }, - "mergedTime": "2010-09-19T13:34:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2010-09-19T13:34:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "eadt8hhm", - "title": "title-zSHRFusVBN", - "alternativeTitles": [ + "display" : { + "id" : "eadt8hhm", + "title" : "title-zSHRFusVBN", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "SSg7erLcgx", - "type": "Identifier" + "value" : "SSg7erLcgx", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "Psychology, Pathological", - "concepts": [ + "label" : "Psychology, Pathological", + "concepts" : [ { - "label": "ol7E1K1L8XUhcLZ", - "type": "Concept" + "label" : "ol7E1K1L8XUhcLZ", + "type" : "Concept" }, { - "label": "hc35m9C4DAgxJAj", - "type": "Concept" + "label" : "hc35m9C4DAgxJAj", + "type" : "Concept" }, { - "label": "Eybh6q7wkoWRiNO", - "type": "Concept" + "label" : "Eybh6q7wkoWRiNO", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "eadt8hhm", - "sourceIdentifier.value": "SSg7erLcgx", - "identifiers.value": [ + "id" : "eadt8hhm", + "sourceIdentifier.value" : "SSg7erLcgx", + "identifiers.value" : [ "SSg7erLcgx" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "ol7E1K1L8XUhcLZ", "hc35m9C4DAgxJAj", "Eybh6q7wkoWRiNO" ], - "title": "title-zSHRFusVBN" + "title" : "title-zSHRFusVBN" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"Psychology, Pathological\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "Psychology, Pathological", + "label" : "Psychology, Pathological" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "Psychology, Pathological" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "SSg7erLcgx" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.3.json b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.3.json index c2232bf60..6982415c5 100644 --- a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.3.json +++ b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.3.json @@ -1,219 +1,222 @@ { - "description": "examples for the subject filter tests", - "createdAt": "2024-11-13T08:43:26.612330Z", - "id": "3kdpeojw", - "document": { - "debug": { - "source": { - "id": "3kdpeojw", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "examples for the subject filter tests", + "createdAt" : "2024-11-25T15:15:12.456700Z", + "id" : "3kdpeojw", + "document" : { + "debug" : { + "source" : { + "id" : "3kdpeojw", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "SqD7qcFvAY" + "ontologyType" : "Work", + "value" : "SqD7qcFvAY" }, - "version": 21, - "modifiedTime": "2051-08-21T14:08:03Z" + "version" : 21, + "modifiedTime" : "2051-08-21T14:08:03Z" }, - "mergedTime": "2051-08-21T14:08:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2051-08-21T14:08:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "3kdpeojw", - "title": "title-FeGzni8X1i", - "alternativeTitles": [ + "display" : { + "id" : "3kdpeojw", + "title" : "title-FeGzni8X1i", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "SqD7qcFvAY", - "type": "Identifier" + "value" : "SqD7qcFvAY", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "id": "darwin01", - "identifiers": [ + "id" : "darwin01", + "identifiers" : [ { - "identifierType": { - "id": "lc-names", - "label": "Library of Congress Name authority records", - "type": "IdentifierType" + "identifierType" : { + "id" : "lc-names", + "label" : "Library of Congress Name authority records", + "type" : "IdentifierType" }, - "value": "lcnames-darwin", - "type": "Identifier" + "value" : "lcnames-darwin", + "type" : "Identifier" } ], - "label": "Darwin \"Jones\", Charles", - "concepts": [ + "label" : "Darwin \"Jones\", Charles", + "concepts" : [ { - "label": "oLbpS5jRX3FqozN", - "type": "Concept" + "label" : "oLbpS5jRX3FqozN", + "type" : "Concept" }, { - "label": "GJ9PfCPwnrkDO6V", - "type": "Concept" + "label" : "GJ9PfCPwnrkDO6V", + "type" : "Concept" }, { - "label": "p3bULWghZ3Z5q2k", - "type": "Concept" + "label" : "p3bULWghZ3Z5q2k", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "3kdpeojw", - "sourceIdentifier.value": "SqD7qcFvAY", - "identifiers.value": [ + "id" : "3kdpeojw", + "sourceIdentifier.value" : "SqD7qcFvAY", + "identifiers.value" : [ "SqD7qcFvAY" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "oLbpS5jRX3FqozN", "GJ9PfCPwnrkDO6V", "p3bULWghZ3Z5q2k" ], - "title": "title-FeGzni8X1i" + "title" : "title-FeGzni8X1i" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"Darwin \\\"Jones\\\", Charles\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "darwin01", + "label" : "Darwin \"Jones\", Charles" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "Darwin \"Jones\", Charles" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ "darwin01" ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ "lcnames-darwin" ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "SqD7qcFvAY" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.4.json b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.4.json index 4edfb192d..ae247b84d 100644 --- a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.4.json +++ b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.4.json @@ -1,182 +1,182 @@ { - "description": "examples for the subject filter tests", - "createdAt": "2024-11-13T08:43:26.613143Z", - "id": "ppcdklf9", - "document": { - "debug": { - "source": { - "id": "ppcdklf9", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the subject filter tests", + "createdAt" : "2024-11-25T15:15:12.457193Z", + "id" : "ppcdklf9", + "document" : { + "debug" : { + "source" : { + "id" : "ppcdklf9", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "3o0GGLKeJC" + "ontologyType" : "Work", + "value" : "3o0GGLKeJC" }, - "version": 31, - "modifiedTime": "2004-11-14T20:49:37Z" + "version" : 31, + "modifiedTime" : "2004-11-14T20:49:37Z" }, - "mergedTime": "2004-11-14T20:49:37Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2004-11-14T20:49:37Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ppcdklf9", - "title": "title-BG0vJlw8MZ", - "alternativeTitles": [ + "display" : { + "id" : "ppcdklf9", + "title" : "title-BG0vJlw8MZ", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "3o0GGLKeJC", - "type": "Identifier" + "value" : "3o0GGLKeJC", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "London (England)", - "concepts": [ + "label" : "London (England)", + "concepts" : [ { - "label": "lxZzGryOg3KGy7M", - "type": "Concept" + "label" : "lxZzGryOg3KGy7M", + "type" : "Concept" }, { - "label": "z5GNUj1it3ic4OR", - "type": "Concept" + "label" : "z5GNUj1it3ic4OR", + "type" : "Concept" }, { - "label": "9LzJV7M3Kvqw9fG", - "type": "Concept" + "label" : "9LzJV7M3Kvqw9fG", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" }, { - "label": "Psychology, Pathological", - "concepts": [ + "label" : "Psychology, Pathological", + "concepts" : [ { - "label": "ol7E1K1L8XUhcLZ", - "type": "Concept" + "label" : "ol7E1K1L8XUhcLZ", + "type" : "Concept" }, { - "label": "hc35m9C4DAgxJAj", - "type": "Concept" + "label" : "hc35m9C4DAgxJAj", + "type" : "Concept" }, { - "label": "Eybh6q7wkoWRiNO", - "type": "Concept" + "label" : "Eybh6q7wkoWRiNO", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" }, { - "id": "darwin01", - "identifiers": [ + "id" : "darwin01", + "identifiers" : [ { - "identifierType": { - "id": "lc-names", - "label": "Library of Congress Name authority records", - "type": "IdentifierType" + "identifierType" : { + "id" : "lc-names", + "label" : "Library of Congress Name authority records", + "type" : "IdentifierType" }, - "value": "lcnames-darwin", - "type": "Identifier" + "value" : "lcnames-darwin", + "type" : "Identifier" } ], - "label": "Darwin \"Jones\", Charles", - "concepts": [ + "label" : "Darwin \"Jones\", Charles", + "concepts" : [ { - "label": "oLbpS5jRX3FqozN", - "type": "Concept" + "label" : "oLbpS5jRX3FqozN", + "type" : "Concept" }, { - "label": "GJ9PfCPwnrkDO6V", - "type": "Concept" + "label" : "GJ9PfCPwnrkDO6V", + "type" : "Concept" }, { - "label": "p3bULWghZ3Z5q2k", - "type": "Concept" + "label" : "p3bULWghZ3Z5q2k", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ppcdklf9", - "sourceIdentifier.value": "3o0GGLKeJC", - "identifiers.value": [ + "id" : "ppcdklf9", + "sourceIdentifier.value" : "3o0GGLKeJC", + "identifiers.value" : [ "3o0GGLKeJC" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "lxZzGryOg3KGy7M", "z5GNUj1it3ic4OR", "9LzJV7M3Kvqw9fG", @@ -187,79 +187,88 @@ "GJ9PfCPwnrkDO6V", "p3bULWghZ3Z5q2k" ], - "title": "title-BG0vJlw8MZ" + "title" : "title-BG0vJlw8MZ" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"London (England)\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"Psychology, Pathological\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"Darwin \\\"Jones\\\", Charles\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "London (England)", + "label" : "London (England)" + }, + { + "id" : "Psychology, Pathological", + "label" : "Psychology, Pathological" + }, + { + "id" : "darwin01", + "label" : "Darwin \"Jones\", Charles" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "London (England)", "Psychology, Pathological", "Darwin \"Jones\", Charles" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ "darwin01" ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ "lcnames-darwin" ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "3o0GGLKeJC" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.5.json b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.5.json index 2a607471f..4e74a789d 100644 --- a/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.5.json +++ b/common/search/src/test/resources/test_documents/works.examples.subject-filters-tests.5.json @@ -1,182 +1,182 @@ { - "description": "examples for the subject filter tests", - "createdAt": "2024-11-13T08:43:26.613497Z", - "id": "w0lr7wac", - "document": { - "debug": { - "source": { - "id": "w0lr7wac", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "examples for the subject filter tests", + "createdAt" : "2024-11-25T15:15:12.457471Z", + "id" : "w0lr7wac", + "document" : { + "debug" : { + "source" : { + "id" : "w0lr7wac", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "ty9GY2AKxy" + "ontologyType" : "Work", + "value" : "ty9GY2AKxy" }, - "version": 93, - "modifiedTime": "2032-06-12T10:57:16Z" + "version" : 93, + "modifiedTime" : "2032-06-12T10:57:16Z" }, - "mergedTime": "2032-06-12T10:57:16Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2032-06-12T10:57:16Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "w0lr7wac", - "title": "title-uXzrv8PglA", - "alternativeTitles": [ + "display" : { + "id" : "w0lr7wac", + "title" : "title-uXzrv8PglA", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "ty9GY2AKxy", - "type": "Identifier" + "value" : "ty9GY2AKxy", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "w0lr7wac", - "sourceIdentifier.value": "ty9GY2AKxy", - "identifiers.value": [ + "id" : "w0lr7wac", + "sourceIdentifier.value" : "ty9GY2AKxy", + "identifiers.value" : [ "ty9GY2AKxy" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-uXzrv8PglA" + "title" : "title-uXzrv8PglA" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ty9GY2AKxy" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.0.Books.json b/common/search/src/test/resources/test_documents/works.formats.0.Books.json index 0083c8d92..e69b18e9e 100644 --- a/common/search/src/test/resources/test_documents/works.formats.0.Books.json +++ b/common/search/src/test/resources/test_documents/works.formats.0.Books.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.444809Z", - "id": "cfrzpe3b", - "document": { - "debug": { - "source": { - "id": "cfrzpe3b", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.300408Z", + "id" : "cfrzpe3b", + "document" : { + "debug" : { + "source" : { + "id" : "cfrzpe3b", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "yPjPNkcxB9" + "ontologyType" : "Work", + "value" : "yPjPNkcxB9" }, - "version": 65, - "modifiedTime": "1960-07-19T22:15:33Z" + "version" : 65, + "modifiedTime" : "1960-07-19T22:15:33Z" }, - "mergedTime": "1960-07-19T22:15:33Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1960-07-19T22:15:33Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "cfrzpe3b", - "title": "A work with format Books", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "cfrzpe3b", + "title" : "A work with format Books", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "yPjPNkcxB9", - "type": "Identifier" + "value" : "yPjPNkcxB9", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "cfrzpe3b", - "sourceIdentifier.value": "yPjPNkcxB9", - "identifiers.value": [ + "id" : "cfrzpe3b", + "sourceIdentifier.value" : "yPjPNkcxB9", + "identifiers.value" : [ "yPjPNkcxB9" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Books" + "title" : "A work with format Books" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "yPjPNkcxB9" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.1.Books.json b/common/search/src/test/resources/test_documents/works.formats.1.Books.json index 8bb3ada12..2c6c49ea0 100644 --- a/common/search/src/test/resources/test_documents/works.formats.1.Books.json +++ b/common/search/src/test/resources/test_documents/works.formats.1.Books.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.446572Z", - "id": "oz3lidvn", - "document": { - "debug": { - "source": { - "id": "oz3lidvn", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.302164Z", + "id" : "oz3lidvn", + "document" : { + "debug" : { + "source" : { + "id" : "oz3lidvn", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "DIYsS5wEOk" + "ontologyType" : "Work", + "value" : "DIYsS5wEOk" }, - "version": 94, - "modifiedTime": "1992-05-05T01:31:58Z" + "version" : 94, + "modifiedTime" : "1992-05-05T01:31:58Z" }, - "mergedTime": "1992-05-05T01:31:58Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1992-05-05T01:31:58Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "oz3lidvn", - "title": "A work with format Books", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "oz3lidvn", + "title" : "A work with format Books", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "DIYsS5wEOk", - "type": "Identifier" + "value" : "DIYsS5wEOk", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "oz3lidvn", - "sourceIdentifier.value": "DIYsS5wEOk", - "identifiers.value": [ + "id" : "oz3lidvn", + "sourceIdentifier.value" : "DIYsS5wEOk", + "identifiers.value" : [ "DIYsS5wEOk" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Books" + "title" : "A work with format Books" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "DIYsS5wEOk" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.2.Books.json b/common/search/src/test/resources/test_documents/works.formats.2.Books.json index 669bed3f6..aa55b4fad 100644 --- a/common/search/src/test/resources/test_documents/works.formats.2.Books.json +++ b/common/search/src/test/resources/test_documents/works.formats.2.Books.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.447995Z", - "id": "7y59ny1n", - "document": { - "debug": { - "source": { - "id": "7y59ny1n", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.303519Z", + "id" : "7y59ny1n", + "document" : { + "debug" : { + "source" : { + "id" : "7y59ny1n", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "T3Xiy4Slyl" + "ontologyType" : "Work", + "value" : "T3Xiy4Slyl" }, - "version": 38, - "modifiedTime": "1945-04-09T22:12:25Z" + "version" : 38, + "modifiedTime" : "1945-04-09T22:12:25Z" }, - "mergedTime": "1945-04-09T22:12:25Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1945-04-09T22:12:25Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "7y59ny1n", - "title": "A work with format Books", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "7y59ny1n", + "title" : "A work with format Books", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "T3Xiy4Slyl", - "type": "Identifier" + "value" : "T3Xiy4Slyl", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "7y59ny1n", - "sourceIdentifier.value": "T3Xiy4Slyl", - "identifiers.value": [ + "id" : "7y59ny1n", + "sourceIdentifier.value" : "T3Xiy4Slyl", + "identifiers.value" : [ "T3Xiy4Slyl" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Books" + "title" : "A work with format Books" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "T3Xiy4Slyl" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.3.Books.json b/common/search/src/test/resources/test_documents/works.formats.3.Books.json index b15c2b7d0..0e68746b5 100644 --- a/common/search/src/test/resources/test_documents/works.formats.3.Books.json +++ b/common/search/src/test/resources/test_documents/works.formats.3.Books.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.449732Z", - "id": "qzquhbnz", - "document": { - "debug": { - "source": { - "id": "qzquhbnz", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.304802Z", + "id" : "qzquhbnz", + "document" : { + "debug" : { + "source" : { + "id" : "qzquhbnz", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "10w3BfGmqj" + "ontologyType" : "Work", + "value" : "10w3BfGmqj" }, - "version": 34, - "modifiedTime": "1946-10-01T09:18:22Z" + "version" : 34, + "modifiedTime" : "1946-10-01T09:18:22Z" }, - "mergedTime": "1946-10-01T09:18:22Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1946-10-01T09:18:22Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "qzquhbnz", - "title": "A work with format Books", - "alternativeTitles": [ - ], - "workType": { - "id": "a", - "label": "Books", - "type": "Format" + "display" : { + "id" : "qzquhbnz", + "title" : "A work with format Books", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "a", + "label" : "Books", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "10w3BfGmqj", - "type": "Identifier" + "value" : "10w3BfGmqj", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "qzquhbnz", - "sourceIdentifier.value": "10w3BfGmqj", - "identifiers.value": [ + "id" : "qzquhbnz", + "sourceIdentifier.value" : "10w3BfGmqj", + "identifiers.value" : [ "10w3BfGmqj" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Books" + "title" : "A work with format Books" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"a\",\"label\":\"Books\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "a", + "label" : "Books" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "a", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "a", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "10w3BfGmqj" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.4.Journals.json b/common/search/src/test/resources/test_documents/works.formats.4.Journals.json index df59581f7..e0ea58a04 100644 --- a/common/search/src/test/resources/test_documents/works.formats.4.Journals.json +++ b/common/search/src/test/resources/test_documents/works.formats.4.Journals.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.451264Z", - "id": "rbbzqhyt", - "document": { - "debug": { - "source": { - "id": "rbbzqhyt", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.306070Z", + "id" : "rbbzqhyt", + "document" : { + "debug" : { + "source" : { + "id" : "rbbzqhyt", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "149f5nQPon" + "ontologyType" : "Work", + "value" : "149f5nQPon" }, - "version": 74, - "modifiedTime": "1956-07-19T10:08:24Z" + "version" : 74, + "modifiedTime" : "1956-07-19T10:08:24Z" }, - "mergedTime": "1956-07-19T10:08:24Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1956-07-19T10:08:24Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "rbbzqhyt", - "title": "A work with format Journals", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "rbbzqhyt", + "title" : "A work with format Journals", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "149f5nQPon", - "type": "Identifier" + "value" : "149f5nQPon", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "rbbzqhyt", - "sourceIdentifier.value": "149f5nQPon", - "identifiers.value": [ + "id" : "rbbzqhyt", + "sourceIdentifier.value" : "149f5nQPon", + "identifiers.value" : [ "149f5nQPon" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Journals" + "title" : "A work with format Journals" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "149f5nQPon" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.5.Journals.json b/common/search/src/test/resources/test_documents/works.formats.5.Journals.json index 1b9c5006c..370822bb5 100644 --- a/common/search/src/test/resources/test_documents/works.formats.5.Journals.json +++ b/common/search/src/test/resources/test_documents/works.formats.5.Journals.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.452520Z", - "id": "ftxlgr2v", - "document": { - "debug": { - "source": { - "id": "ftxlgr2v", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.307724Z", + "id" : "ftxlgr2v", + "document" : { + "debug" : { + "source" : { + "id" : "ftxlgr2v", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "RLx5N8CTsZ" + "ontologyType" : "Work", + "value" : "RLx5N8CTsZ" }, - "version": 9, - "modifiedTime": "1985-11-10T14:57:32Z" + "version" : 9, + "modifiedTime" : "1985-11-10T14:57:32Z" }, - "mergedTime": "1985-11-10T14:57:32Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1985-11-10T14:57:32Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ftxlgr2v", - "title": "A work with format Journals", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "ftxlgr2v", + "title" : "A work with format Journals", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "RLx5N8CTsZ", - "type": "Identifier" + "value" : "RLx5N8CTsZ", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ftxlgr2v", - "sourceIdentifier.value": "RLx5N8CTsZ", - "identifiers.value": [ + "id" : "ftxlgr2v", + "sourceIdentifier.value" : "RLx5N8CTsZ", + "identifiers.value" : [ "RLx5N8CTsZ" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Journals" + "title" : "A work with format Journals" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "RLx5N8CTsZ" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.6.Journals.json b/common/search/src/test/resources/test_documents/works.formats.6.Journals.json index 19af4b92a..b880f25f3 100644 --- a/common/search/src/test/resources/test_documents/works.formats.6.Journals.json +++ b/common/search/src/test/resources/test_documents/works.formats.6.Journals.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.453857Z", - "id": "o5wujppw", - "document": { - "debug": { - "source": { - "id": "o5wujppw", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.308804Z", + "id" : "o5wujppw", + "document" : { + "debug" : { + "source" : { + "id" : "o5wujppw", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "3jkbPOk92T" + "ontologyType" : "Work", + "value" : "3jkbPOk92T" }, - "version": 82, - "modifiedTime": "2064-12-19T06:39:42Z" + "version" : 82, + "modifiedTime" : "2064-12-19T06:39:42Z" }, - "mergedTime": "2064-12-19T06:39:42Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2064-12-19T06:39:42Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "o5wujppw", - "title": "A work with format Journals", - "alternativeTitles": [ - ], - "workType": { - "id": "d", - "label": "Journals", - "type": "Format" + "display" : { + "id" : "o5wujppw", + "title" : "A work with format Journals", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "d", + "label" : "Journals", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "3jkbPOk92T", - "type": "Identifier" + "value" : "3jkbPOk92T", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "o5wujppw", - "sourceIdentifier.value": "3jkbPOk92T", - "identifiers.value": [ + "id" : "o5wujppw", + "sourceIdentifier.value" : "3jkbPOk92T", + "identifiers.value" : [ "3jkbPOk92T" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Journals" + "title" : "A work with format Journals" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"d\",\"label\":\"Journals\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "d", + "label" : "Journals" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "d", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "d", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "3jkbPOk92T" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.7.Audio.json b/common/search/src/test/resources/test_documents/works.formats.7.Audio.json index b2ef91741..4b7ed7efc 100644 --- a/common/search/src/test/resources/test_documents/works.formats.7.Audio.json +++ b/common/search/src/test/resources/test_documents/works.formats.7.Audio.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.455066Z", - "id": "jtqzypmq", - "document": { - "debug": { - "source": { - "id": "jtqzypmq", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.310002Z", + "id" : "jtqzypmq", + "document" : { + "debug" : { + "source" : { + "id" : "jtqzypmq", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "kstGwqrv9f" + "ontologyType" : "Work", + "value" : "kstGwqrv9f" }, - "version": 4, - "modifiedTime": "2029-04-07T22:56:33Z" + "version" : 4, + "modifiedTime" : "2029-04-07T22:56:33Z" }, - "mergedTime": "2029-04-07T22:56:33Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2029-04-07T22:56:33Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "jtqzypmq", - "title": "A work with format Audio", - "alternativeTitles": [ - ], - "workType": { - "id": "i", - "label": "Audio", - "type": "Format" + "display" : { + "id" : "jtqzypmq", + "title" : "A work with format Audio", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "i", + "label" : "Audio", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "kstGwqrv9f", - "type": "Identifier" + "value" : "kstGwqrv9f", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "jtqzypmq", - "sourceIdentifier.value": "kstGwqrv9f", - "identifiers.value": [ + "id" : "jtqzypmq", + "sourceIdentifier.value" : "kstGwqrv9f", + "identifiers.value" : [ "kstGwqrv9f" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Audio" + "title" : "A work with format Audio" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"i\",\"label\":\"Audio\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "i", + "label" : "Audio" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "i", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "i", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "kstGwqrv9f" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.8.Audio.json b/common/search/src/test/resources/test_documents/works.formats.8.Audio.json index 1899f770a..9c38000c4 100644 --- a/common/search/src/test/resources/test_documents/works.formats.8.Audio.json +++ b/common/search/src/test/resources/test_documents/works.formats.8.Audio.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.456568Z", - "id": "qgk6jumb", - "document": { - "debug": { - "source": { - "id": "qgk6jumb", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.311270Z", + "id" : "qgk6jumb", + "document" : { + "debug" : { + "source" : { + "id" : "qgk6jumb", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "8yA2WkbMzo" + "ontologyType" : "Work", + "value" : "8yA2WkbMzo" }, - "version": 47, - "modifiedTime": "1988-04-07T05:47:45Z" + "version" : 47, + "modifiedTime" : "1988-04-07T05:47:45Z" }, - "mergedTime": "1988-04-07T05:47:45Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1988-04-07T05:47:45Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "qgk6jumb", - "title": "A work with format Audio", - "alternativeTitles": [ - ], - "workType": { - "id": "i", - "label": "Audio", - "type": "Format" + "display" : { + "id" : "qgk6jumb", + "title" : "A work with format Audio", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "i", + "label" : "Audio", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "8yA2WkbMzo", - "type": "Identifier" + "value" : "8yA2WkbMzo", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "qgk6jumb", - "sourceIdentifier.value": "8yA2WkbMzo", - "identifiers.value": [ + "id" : "qgk6jumb", + "sourceIdentifier.value" : "8yA2WkbMzo", + "identifiers.value" : [ "8yA2WkbMzo" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Audio" + "title" : "A work with format Audio" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"i\",\"label\":\"Audio\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "i", + "label" : "Audio" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "i", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "i", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "8yA2WkbMzo" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.formats.9.Pictures.json b/common/search/src/test/resources/test_documents/works.formats.9.Pictures.json index 4fbc8817b..aef5fd14f 100644 --- a/common/search/src/test/resources/test_documents/works.formats.9.Pictures.json +++ b/common/search/src/test/resources/test_documents/works.formats.9.Pictures.json @@ -1,188 +1,191 @@ { - "description": "one of a list of works with a variety of formats", - "createdAt": "2024-11-13T08:43:26.459685Z", - "id": "wvcw0lp9", - "document": { - "debug": { - "source": { - "id": "wvcw0lp9", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "one of a list of works with a variety of formats", + "createdAt" : "2024-11-25T15:15:12.312560Z", + "id" : "wvcw0lp9", + "document" : { + "debug" : { + "source" : { + "id" : "wvcw0lp9", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "h2CF3B2FRN" + "ontologyType" : "Work", + "value" : "h2CF3B2FRN" }, - "version": 3, - "modifiedTime": "1938-05-13T23:46:55Z" + "version" : 3, + "modifiedTime" : "1938-05-13T23:46:55Z" }, - "mergedTime": "1938-05-13T23:46:55Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1938-05-13T23:46:55Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "wvcw0lp9", - "title": "A work with format Pictures", - "alternativeTitles": [ - ], - "workType": { - "id": "k", - "label": "Pictures", - "type": "Format" + "display" : { + "id" : "wvcw0lp9", + "title" : "A work with format Pictures", + "alternativeTitles" : [ + ], + "workType" : { + "id" : "k", + "label" : "Pictures", + "type" : "Format" }, - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "h2CF3B2FRN", - "type": "Identifier" + "value" : "h2CF3B2FRN", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "wvcw0lp9", - "sourceIdentifier.value": "h2CF3B2FRN", - "identifiers.value": [ + "id" : "wvcw0lp9", + "sourceIdentifier.value" : "h2CF3B2FRN", + "identifiers.value" : [ "h2CF3B2FRN" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with format Pictures" + "title" : "A work with format Pictures" }, - "aggregatableValues": { - "workType": [ - "{\"id\":\"k\",\"label\":\"Pictures\",\"type\":\"Format\"}" + "aggregatableValues" : { + "workType" : [ + { + "id" : "k", + "label" : "Pictures" + } ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": "k", - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : "k", + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "h2CF3B2FRN" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.genres.json b/common/search/src/test/resources/test_documents/works.genres.json index 748d86cf1..deb077d9c 100644 --- a/common/search/src/test/resources/test_documents/works.genres.json +++ b/common/search/src/test/resources/test_documents/works.genres.json @@ -1,217 +1,220 @@ { - "description": "a work with different concepts in the genre", - "createdAt": "2024-11-13T08:43:26.490041Z", - "id": "jlp05mgl", - "document": { - "debug": { - "source": { - "id": "jlp05mgl", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "a work with different concepts in the genre", + "createdAt" : "2024-11-25T15:15:12.343141Z", + "id" : "jlp05mgl", + "document" : { + "debug" : { + "source" : { + "id" : "jlp05mgl", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "iIjgaHUI5C" + "ontologyType" : "Work", + "value" : "iIjgaHUI5C" }, - "version": 91, - "modifiedTime": "1978-12-03T12:21:42Z" + "version" : 91, + "modifiedTime" : "1978-12-03T12:21:42Z" }, - "mergedTime": "1978-12-03T12:21:42Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1978-12-03T12:21:42Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "jlp05mgl", - "title": "A work with different concepts in the genre", - "alternativeTitles": [ + "display" : { + "id" : "jlp05mgl", + "title" : "A work with different concepts in the genre", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "iIjgaHUI5C", - "type": "Identifier" + "value" : "iIjgaHUI5C", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ { - "label": "Electronic books", - "concepts": [ + "label" : "Electronic books", + "concepts" : [ { - "label": "Conceptual Conversations", - "type": "Concept" + "label" : "Conceptual Conversations", + "type" : "Concept" }, { - "label": "Pleasant Paris", - "type": "Place" + "label" : "Pleasant Paris", + "type" : "Place" }, { - "id": "buvphmut", - "identifiers": [ + "id" : "buvphmut", + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "nJ8zsEX9al", - "type": "Identifier" + "value" : "nJ8zsEX9al", + "type" : "Identifier" } ], - "label": "Past Prehistory", - "type": "Period" + "label" : "Past Prehistory", + "type" : "Period" } ], - "type": "Genre" + "type" : "Genre" } ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ "Conceptual Conversations", "Pleasant Paris", "Past Prehistory" ], - "id": "jlp05mgl", - "sourceIdentifier.value": "iIjgaHUI5C", - "identifiers.value": [ + "id" : "jlp05mgl", + "sourceIdentifier.value" : "iIjgaHUI5C", + "identifiers.value" : [ "iIjgaHUI5C" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with different concepts in the genre" + "title" : "A work with different concepts in the genre" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ - "{\"label\":\"Electronic books\",\"concepts\":[],\"type\":\"Genre\"}" + "genres" : [ + { + "id" : "Electronic books", + "label" : "Electronic books" + } ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ "Electronic books" ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "iIjgaHUI5C" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.invisible.0.json b/common/search/src/test/resources/test_documents/works.invisible.0.json index b5b542e82..1c14e27a0 100644 --- a/common/search/src/test/resources/test_documents/works.invisible.0.json +++ b/common/search/src/test/resources/test_documents/works.invisible.0.json @@ -1,28 +1,28 @@ { - "description": "an arbitrary list of invisible works", - "createdAt": "2024-05-15T08:17:25.214583Z", - "id": "rczekocx", - "document": { - "debug": { - "source": { - "id": "rczekocx", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "an arbitrary list of invisible works", + "createdAt" : "2024-05-15T08:17:25.214583Z", + "id" : "rczekocx", + "document" : { + "debug" : { + "source" : { + "id" : "rczekocx", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "Y4unjFIXxl" + "ontologyType" : "Work", + "value" : "Y4unjFIXxl" }, - "version": 64, - "modifiedTime": "2001-07-02T19:43:15Z" + "version" : 64, + "modifiedTime" : "2001-07-02T19:43:15Z" }, - "mergedTime": "2001-07-02T19:43:15Z", - "indexedTime": "2001-01-01T01:01:01Z", - "invisibilityReasons": [ + "mergedTime" : "2001-07-02T19:43:15Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "invisibilityReasons" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Invisible" + "type" : "Invisible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.invisible.1.json b/common/search/src/test/resources/test_documents/works.invisible.1.json index 172c57e33..c597beb7e 100644 --- a/common/search/src/test/resources/test_documents/works.invisible.1.json +++ b/common/search/src/test/resources/test_documents/works.invisible.1.json @@ -1,28 +1,28 @@ { - "description": "an arbitrary list of invisible works", - "createdAt": "2024-05-15T08:17:25.214801Z", - "id": "60edujsq", - "document": { - "debug": { - "source": { - "id": "60edujsq", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "an arbitrary list of invisible works", + "createdAt" : "2024-05-15T08:17:25.214801Z", + "id" : "60edujsq", + "document" : { + "debug" : { + "source" : { + "id" : "60edujsq", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "m0zER7Z50Y" + "ontologyType" : "Work", + "value" : "m0zER7Z50Y" }, - "version": 60, - "modifiedTime": "2030-05-24T10:04:01Z" + "version" : 60, + "modifiedTime" : "2030-05-24T10:04:01Z" }, - "mergedTime": "2030-05-24T10:04:01Z", - "indexedTime": "2001-01-01T01:01:01Z", - "invisibilityReasons": [ + "mergedTime" : "2030-05-24T10:04:01Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "invisibilityReasons" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Invisible" + "type" : "Invisible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.invisible.2.json b/common/search/src/test/resources/test_documents/works.invisible.2.json index 4fe3feb0c..58f120442 100644 --- a/common/search/src/test/resources/test_documents/works.invisible.2.json +++ b/common/search/src/test/resources/test_documents/works.invisible.2.json @@ -1,28 +1,28 @@ { - "description": "an arbitrary list of invisible works", - "createdAt": "2024-05-15T08:17:25.214981Z", - "id": "0uk2wzxd", - "document": { - "debug": { - "source": { - "id": "0uk2wzxd", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "an arbitrary list of invisible works", + "createdAt" : "2024-05-15T08:17:25.214981Z", + "id" : "0uk2wzxd", + "document" : { + "debug" : { + "source" : { + "id" : "0uk2wzxd", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "x2TEreIkut" + "ontologyType" : "Work", + "value" : "x2TEreIkut" }, - "version": 58, - "modifiedTime": "2056-08-06T12:14:07Z" + "version" : 58, + "modifiedTime" : "2056-08-06T12:14:07Z" }, - "mergedTime": "2056-08-06T12:14:07Z", - "indexedTime": "2001-01-01T01:01:01Z", - "invisibilityReasons": [ + "mergedTime" : "2056-08-06T12:14:07Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "invisibilityReasons" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "type": "Invisible" + "type" : "Invisible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-licenses.0.json b/common/search/src/test/resources/test_documents/works.items-with-licenses.0.json index d9348de5b..681fe92ad 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-licenses.0.json +++ b/common/search/src/test/resources/test_documents/works.items-with-licenses.0.json @@ -1,211 +1,214 @@ { - "description": "a work with licensed digital items", - "createdAt": "2024-11-13T08:43:26.480307Z", - "id": "uh8gnkqk", - "document": { - "debug": { - "source": { - "id": "uh8gnkqk", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a work with licensed digital items", + "createdAt" : "2024-11-25T15:15:12.333381Z", + "id" : "uh8gnkqk", + "document" : { + "debug" : { + "source" : { + "id" : "uh8gnkqk", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "5UMJEwTIE8" + "ontologyType" : "Work", + "value" : "5UMJEwTIE8" }, - "version": 36, - "modifiedTime": "2004-04-05T10:15:53Z" + "version" : 36, + "modifiedTime" : "2004-04-05T10:15:53Z" }, - "mergedTime": "2004-04-05T10:15:53Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2004-04-05T10:15:53Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "uh8gnkqk", - "title": "title-P9ugIes0pz", - "alternativeTitles": [ + "display" : { + "id" : "uh8gnkqk", + "title" : "title-P9ugIes0pz", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "5UMJEwTIE8", - "type": "Identifier" + "value" : "5UMJEwTIE8", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/swj.jpg/info.json", - "credit": "Credit line: VmALe83", - "linkText": "Link text: BJ6dy5rBOb", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/swj.jpg/info.json", + "credit" : "Credit line: VmALe83", + "linkText" : "Link text: BJ6dy5rBOb", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "uh8gnkqk", - "sourceIdentifier.value": "5UMJEwTIE8", - "identifiers.value": [ + "id" : "uh8gnkqk", + "sourceIdentifier.value" : "5UMJEwTIE8", + "identifiers.value" : [ "5UMJEwTIE8" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-P9ugIes0pz" + "title" : "title-P9ugIes0pz" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "5UMJEwTIE8" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-licenses.1.json b/common/search/src/test/resources/test_documents/works.items-with-licenses.1.json index fa3470950..8a8747a9e 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-licenses.1.json +++ b/common/search/src/test/resources/test_documents/works.items-with-licenses.1.json @@ -1,210 +1,213 @@ { - "description": "a work with licensed digital items", - "createdAt": "2024-11-13T08:43:26.480726Z", - "id": "sojyedta", - "document": { - "debug": { - "source": { - "id": "sojyedta", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "a work with licensed digital items", + "createdAt" : "2024-11-25T15:15:12.333866Z", + "id" : "sojyedta", + "document" : { + "debug" : { + "source" : { + "id" : "sojyedta", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "xSR5EK6UWY" + "ontologyType" : "Work", + "value" : "xSR5EK6UWY" }, - "version": 62, - "modifiedTime": "2030-04-29T05:27:13Z" + "version" : 62, + "modifiedTime" : "2030-04-29T05:27:13Z" }, - "mergedTime": "2030-04-29T05:27:13Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2030-04-29T05:27:13Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "sojyedta", - "title": "title-w5YmCWk8Hy", - "alternativeTitles": [ + "display" : { + "id" : "sojyedta", + "title" : "title-w5YmCWk8Hy", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "xSR5EK6UWY", - "type": "Identifier" + "value" : "xSR5EK6UWY", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Voe.jpg/info.json", - "credit": "Credit line: omuzt2Z", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Voe.jpg/info.json", + "credit" : "Credit line: omuzt2Z", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "sojyedta", - "sourceIdentifier.value": "xSR5EK6UWY", - "identifiers.value": [ + "id" : "sojyedta", + "sourceIdentifier.value" : "xSR5EK6UWY", + "identifiers.value" : [ "xSR5EK6UWY" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-w5YmCWk8Hy" + "title" : "title-w5YmCWk8Hy" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "xSR5EK6UWY" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-licenses.2.json b/common/search/src/test/resources/test_documents/works.items-with-licenses.2.json index 61efa2509..ecc46aebb 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-licenses.2.json +++ b/common/search/src/test/resources/test_documents/works.items-with-licenses.2.json @@ -1,209 +1,212 @@ { - "description": "a work with licensed digital items", - "createdAt": "2024-11-13T08:43:26.481130Z", - "id": "fxryjmiz", - "document": { - "debug": { - "source": { - "id": "fxryjmiz", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with licensed digital items", + "createdAt" : "2024-11-25T15:15:12.334294Z", + "id" : "fxryjmiz", + "document" : { + "debug" : { + "source" : { + "id" : "fxryjmiz", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "D9r1zHmiHw" + "ontologyType" : "Work", + "value" : "D9r1zHmiHw" }, - "version": 94, - "modifiedTime": "1984-06-01T20:55:52Z" + "version" : 94, + "modifiedTime" : "1984-06-01T20:55:52Z" }, - "mergedTime": "1984-06-01T20:55:52Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1984-06-01T20:55:52Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "fxryjmiz", - "title": "title-gL6jXRK5E3", - "alternativeTitles": [ + "display" : { + "id" : "fxryjmiz", + "title" : "title-gL6jXRK5E3", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "D9r1zHmiHw", - "type": "Identifier" + "value" : "D9r1zHmiHw", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Tl2.jpg/info.json", - "license": { - "id": "cc-by-nc", - "label": "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", - "url": "https://creativecommons.org/licenses/by-nc/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Tl2.jpg/info.json", + "license" : { + "id" : "cc-by-nc", + "label" : "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", + "url" : "https://creativecommons.org/licenses/by-nc/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "fxryjmiz", - "sourceIdentifier.value": "D9r1zHmiHw", - "identifiers.value": [ + "id" : "fxryjmiz", + "sourceIdentifier.value" : "D9r1zHmiHw", + "identifiers.value" : [ "D9r1zHmiHw" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-gL6jXRK5E3" + "title" : "title-gL6jXRK5E3" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by-nc\",\"label\":\"Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)\",\"url\":\"https://creativecommons.org/licenses/by-nc/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by-nc", + "label" : "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "D9r1zHmiHw" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by-nc" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-licenses.3.json b/common/search/src/test/resources/test_documents/works.items-with-licenses.3.json index 257aef614..3232ce3b3 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-licenses.3.json +++ b/common/search/src/test/resources/test_documents/works.items-with-licenses.3.json @@ -1,237 +1,243 @@ { - "description": "a work with licensed digital items", - "createdAt": "2024-11-13T08:43:26.481613Z", - "id": "ub2i8snt", - "document": { - "debug": { - "source": { - "id": "ub2i8snt", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with licensed digital items", + "createdAt" : "2024-11-25T15:15:12.334775Z", + "id" : "ub2i8snt", + "document" : { + "debug" : { + "source" : { + "id" : "ub2i8snt", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "by26w1evrA" + "ontologyType" : "Work", + "value" : "by26w1evrA" }, - "version": 43, - "modifiedTime": "2066-07-14T02:52:53Z" + "version" : 43, + "modifiedTime" : "2066-07-14T02:52:53Z" }, - "mergedTime": "2066-07-14T02:52:53Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2066-07-14T02:52:53Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ub2i8snt", - "title": "title-YSKPkF3m7X", - "alternativeTitles": [ + "display" : { + "id" : "ub2i8snt", + "title" : "title-YSKPkF3m7X", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "by26w1evrA", - "type": "Identifier" + "value" : "by26w1evrA", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/U7a.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/U7a.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" }, { - "identifiers": [ + "identifiers" : [ ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/E8E.jpg/info.json", - "credit": "Credit line: W7WKCBW", - "license": { - "id": "cc-by-nc", - "label": "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", - "url": "https://creativecommons.org/licenses/by-nc/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/E8E.jpg/info.json", + "credit" : "Credit line: W7WKCBW", + "license" : { + "id" : "cc-by-nc", + "label" : "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", + "url" : "https://creativecommons.org/licenses/by-nc/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ub2i8snt", - "sourceIdentifier.value": "by26w1evrA", - "identifiers.value": [ + "id" : "ub2i8snt", + "sourceIdentifier.value" : "by26w1evrA", + "identifiers.value" : [ "by26w1evrA" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-YSKPkF3m7X" + "title" : "title-YSKPkF3m7X" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}", - "{\"id\":\"cc-by-nc\",\"label\":\"Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)\",\"url\":\"https://creativecommons.org/licenses/by-nc/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + }, + { + "id" : "cc-by-nc", + "label" : "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "by26w1evrA" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by", "cc-by-nc" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation", "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-licenses.4.json b/common/search/src/test/resources/test_documents/works.items-with-licenses.4.json index f455613ef..6a69a7586 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-licenses.4.json +++ b/common/search/src/test/resources/test_documents/works.items-with-licenses.4.json @@ -1,182 +1,182 @@ { - "description": "a work with licensed digital items", - "createdAt": "2024-11-13T08:43:26.482177Z", - "id": "abt11p2s", - "document": { - "debug": { - "source": { - "id": "abt11p2s", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work with licensed digital items", + "createdAt" : "2024-11-25T15:15:12.335097Z", + "id" : "abt11p2s", + "document" : { + "debug" : { + "source" : { + "id" : "abt11p2s", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "Jxv45oXcss" + "ontologyType" : "Work", + "value" : "Jxv45oXcss" }, - "version": 33, - "modifiedTime": "1983-08-27T05:28:32Z" + "version" : 33, + "modifiedTime" : "1983-08-27T05:28:32Z" }, - "mergedTime": "1983-08-27T05:28:32Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1983-08-27T05:28:32Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "abt11p2s", - "title": "title-lO6WXilF8i", - "alternativeTitles": [ + "display" : { + "id" : "abt11p2s", + "title" : "title-lO6WXilF8i", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "Jxv45oXcss", - "type": "Identifier" + "value" : "Jxv45oXcss", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "abt11p2s", - "sourceIdentifier.value": "Jxv45oXcss", - "identifiers.value": [ + "id" : "abt11p2s", + "sourceIdentifier.value" : "Jxv45oXcss", + "identifiers.value" : [ "Jxv45oXcss" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-lO6WXilF8i" + "title" : "title-lO6WXilF8i" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Jxv45oXcss" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.0.json b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.0.json index f68d7d41c..05881d79e 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.0.json +++ b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.0.json @@ -1,234 +1,237 @@ { - "description": "works with items with other identifiers", - "createdAt": "2024-11-13T08:43:26.517276Z", - "id": "hdjyypp6", - "document": { - "debug": { - "source": { - "id": "hdjyypp6", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with items with other identifiers", + "createdAt" : "2024-11-25T15:15:12.365744Z", + "id" : "hdjyypp6", + "document" : { + "debug" : { + "source" : { + "id" : "hdjyypp6", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "voGpMYI3LU" + "ontologyType" : "Work", + "value" : "voGpMYI3LU" }, - "version": 48, - "modifiedTime": "2066-12-22T15:52:01Z" + "version" : 48, + "modifiedTime" : "2066-12-22T15:52:01Z" }, - "mergedTime": "2066-12-22T15:52:01Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2066-12-22T15:52:01Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "hdjyypp6", - "title": "title-93zt70MSjf", - "alternativeTitles": [ + "display" : { + "id" : "hdjyypp6", + "title" : "title-93zt70MSjf", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "voGpMYI3LU", - "type": "Identifier" + "value" : "voGpMYI3LU", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "sq6vd1tu", - "identifiers": [ + "id" : "sq6vd1tu", + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "xJJR2dtnlu", - "type": "Identifier" + "value" : "xJJR2dtnlu", + "type" : "Identifier" }, { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "MKDvFJ5itR", - "type": "Identifier" + "value" : "MKDvFJ5itR", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/JtP.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/JtP.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "hdjyypp6", - "sourceIdentifier.value": "voGpMYI3LU", - "identifiers.value": [ + "id" : "hdjyypp6", + "sourceIdentifier.value" : "voGpMYI3LU", + "identifiers.value" : [ "voGpMYI3LU" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "sq6vd1tu" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "xJJR2dtnlu", "MKDvFJ5itR" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-93zt70MSjf" + "title" : "title-93zt70MSjf" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "voGpMYI3LU" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "sq6vd1tu" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "xJJR2dtnlu", "MKDvFJ5itR" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.1.json b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.1.json index 3ef31bbba..654d58cd9 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.1.json +++ b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.1.json @@ -1,234 +1,237 @@ { - "description": "works with items with other identifiers", - "createdAt": "2024-11-13T08:43:26.517762Z", - "id": "jemj47jb", - "document": { - "debug": { - "source": { - "id": "jemj47jb", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with items with other identifiers", + "createdAt" : "2024-11-25T15:15:12.366392Z", + "id" : "jemj47jb", + "document" : { + "debug" : { + "source" : { + "id" : "jemj47jb", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "W2xfjSjI6E" + "ontologyType" : "Work", + "value" : "W2xfjSjI6E" }, - "version": 8, - "modifiedTime": "2047-01-04T09:41:20Z" + "version" : 8, + "modifiedTime" : "2047-01-04T09:41:20Z" }, - "mergedTime": "2047-01-04T09:41:20Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2047-01-04T09:41:20Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "jemj47jb", - "title": "title-07LdJrNoV7", - "alternativeTitles": [ + "display" : { + "id" : "jemj47jb", + "title" : "title-07LdJrNoV7", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "W2xfjSjI6E", - "type": "Identifier" + "value" : "W2xfjSjI6E", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "fltnygzk", - "identifiers": [ + "id" : "fltnygzk", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "ONqqpCuC2L", - "type": "Identifier" + "value" : "ONqqpCuC2L", + "type" : "Identifier" }, { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "BNAtB8mhIM", - "type": "Identifier" + "value" : "BNAtB8mhIM", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/zFk.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/zFk.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "jemj47jb", - "sourceIdentifier.value": "W2xfjSjI6E", - "identifiers.value": [ + "id" : "jemj47jb", + "sourceIdentifier.value" : "W2xfjSjI6E", + "identifiers.value" : [ "W2xfjSjI6E" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "fltnygzk" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "ONqqpCuC2L", "BNAtB8mhIM" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-07LdJrNoV7" + "title" : "title-07LdJrNoV7" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "W2xfjSjI6E" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "fltnygzk" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "ONqqpCuC2L", "BNAtB8mhIM" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.2.json b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.2.json index 7803cb875..83c6fa834 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.2.json +++ b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.2.json @@ -1,235 +1,238 @@ { - "description": "works with items with other identifiers", - "createdAt": "2024-11-13T08:43:26.518206Z", - "id": "si1cs1lq", - "document": { - "debug": { - "source": { - "id": "si1cs1lq", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with items with other identifiers", + "createdAt" : "2024-11-25T15:15:12.366955Z", + "id" : "si1cs1lq", + "document" : { + "debug" : { + "source" : { + "id" : "si1cs1lq", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "QBdAX1EiWS" + "ontologyType" : "Work", + "value" : "QBdAX1EiWS" }, - "version": 31, - "modifiedTime": "2062-07-20T12:04:39Z" + "version" : 31, + "modifiedTime" : "2062-07-20T12:04:39Z" }, - "mergedTime": "2062-07-20T12:04:39Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2062-07-20T12:04:39Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "si1cs1lq", - "title": "title-5TrUx7AdtQ", - "alternativeTitles": [ + "display" : { + "id" : "si1cs1lq", + "title" : "title-5TrUx7AdtQ", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "QBdAX1EiWS", - "type": "Identifier" + "value" : "QBdAX1EiWS", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "ai3a3tba", - "identifiers": [ + "id" : "ai3a3tba", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "NW5yJ4Q4nj", - "type": "Identifier" + "value" : "NW5yJ4Q4nj", + "type" : "Identifier" }, { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "0YnPboqbXN", - "type": "Identifier" + "value" : "0YnPboqbXN", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/kix.jpg/info.json", - "linkText": "Link text: y7ZiZYy", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/kix.jpg/info.json", + "linkText" : "Link text: y7ZiZYy", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "si1cs1lq", - "sourceIdentifier.value": "QBdAX1EiWS", - "identifiers.value": [ + "id" : "si1cs1lq", + "sourceIdentifier.value" : "QBdAX1EiWS", + "identifiers.value" : [ "QBdAX1EiWS" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "ai3a3tba" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "NW5yJ4Q4nj", "0YnPboqbXN" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-5TrUx7AdtQ" + "title" : "title-5TrUx7AdtQ" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "QBdAX1EiWS" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "ai3a3tba" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "NW5yJ4Q4nj", "0YnPboqbXN" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.3.json b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.3.json index f829148c6..1618fad16 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.3.json +++ b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.3.json @@ -1,235 +1,238 @@ { - "description": "works with items with other identifiers", - "createdAt": "2024-11-13T08:43:26.518652Z", - "id": "pdufpdhz", - "document": { - "debug": { - "source": { - "id": "pdufpdhz", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with items with other identifiers", + "createdAt" : "2024-11-25T15:15:12.367613Z", + "id" : "pdufpdhz", + "document" : { + "debug" : { + "source" : { + "id" : "pdufpdhz", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "TJPbhBJugC" + "ontologyType" : "Work", + "value" : "TJPbhBJugC" }, - "version": 7, - "modifiedTime": "1978-09-15T00:40:32Z" + "version" : 7, + "modifiedTime" : "1978-09-15T00:40:32Z" }, - "mergedTime": "1978-09-15T00:40:32Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1978-09-15T00:40:32Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "pdufpdhz", - "title": "title-oUvfxn8R40", - "alternativeTitles": [ + "display" : { + "id" : "pdufpdhz", + "title" : "title-oUvfxn8R40", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "TJPbhBJugC", - "type": "Identifier" + "value" : "TJPbhBJugC", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "inlnj8lj", - "identifiers": [ + "id" : "inlnj8lj", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "ZQFqGfpXSZ", - "type": "Identifier" + "value" : "ZQFqGfpXSZ", + "type" : "Identifier" }, { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Ib4rPRFUwV", - "type": "Identifier" + "value" : "Ib4rPRFUwV", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/Klt.jpg/info.json", - "credit": "Credit line: ZVRNi77", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/Klt.jpg/info.json", + "credit" : "Credit line: ZVRNi77", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "pdufpdhz", - "sourceIdentifier.value": "TJPbhBJugC", - "identifiers.value": [ + "id" : "pdufpdhz", + "sourceIdentifier.value" : "TJPbhBJugC", + "identifiers.value" : [ "TJPbhBJugC" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "inlnj8lj" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "ZQFqGfpXSZ", "Ib4rPRFUwV" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-oUvfxn8R40" + "title" : "title-oUvfxn8R40" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "TJPbhBJugC" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "inlnj8lj" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "ZQFqGfpXSZ", "Ib4rPRFUwV" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.4.json b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.4.json index 820b98d74..a6fbaede0 100644 --- a/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.4.json +++ b/common/search/src/test/resources/test_documents/works.items-with-other-identifiers.4.json @@ -1,234 +1,237 @@ { - "description": "works with items with other identifiers", - "createdAt": "2024-11-13T08:43:26.519069Z", - "id": "rzcvxgso", - "document": { - "debug": { - "source": { - "id": "rzcvxgso", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with items with other identifiers", + "createdAt" : "2024-11-25T15:15:12.368132Z", + "id" : "rzcvxgso", + "document" : { + "debug" : { + "source" : { + "id" : "rzcvxgso", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "8CwvL5s2ax" + "ontologyType" : "Work", + "value" : "8CwvL5s2ax" }, - "version": 66, - "modifiedTime": "1974-02-26T09:34:25Z" + "version" : 66, + "modifiedTime" : "1974-02-26T09:34:25Z" }, - "mergedTime": "1974-02-26T09:34:25Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1974-02-26T09:34:25Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "rzcvxgso", - "title": "title-rHr2K7J507", - "alternativeTitles": [ + "display" : { + "id" : "rzcvxgso", + "title" : "title-rHr2K7J507", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "8CwvL5s2ax", - "type": "Identifier" + "value" : "8CwvL5s2ax", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ { - "id": "f1nicvdy", - "identifiers": [ + "id" : "f1nicvdy", + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "yqR7eWPnru", - "type": "Identifier" + "value" : "yqR7eWPnru", + "type" : "Identifier" }, { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "wmEBLIOVK6", - "type": "Identifier" + "value" : "wmEBLIOVK6", + "type" : "Identifier" } ], - "locations": [ + "locations" : [ { - "locationType": { - "id": "iiif-presentation", - "label": "IIIF Presentation API", - "type": "LocationType" + "locationType" : { + "id" : "iiif-presentation", + "label" : "IIIF Presentation API", + "type" : "LocationType" }, - "url": "https://iiif.wellcomecollection.org/image/NlW.jpg/info.json", - "license": { - "id": "cc-by", - "label": "Attribution 4.0 International (CC BY 4.0)", - "url": "http://creativecommons.org/licenses/by/4.0/", - "type": "License" + "url" : "https://iiif.wellcomecollection.org/image/NlW.jpg/info.json", + "license" : { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)", + "url" : "http://creativecommons.org/licenses/by/4.0/", + "type" : "License" }, - "accessConditions": [ + "accessConditions" : [ ], - "type": "DigitalLocation" + "type" : "DigitalLocation" } ], - "type": "Item" + "type" : "Item" } ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "rzcvxgso", - "sourceIdentifier.value": "8CwvL5s2ax", - "identifiers.value": [ + "id" : "rzcvxgso", + "sourceIdentifier.value" : "8CwvL5s2ax", + "identifiers.value" : [ "8CwvL5s2ax" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ "f1nicvdy" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "yqR7eWPnru", "wmEBLIOVK6" ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-rHr2K7J507" + "title" : "title-rHr2K7J507" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ - "{\"id\":\"cc-by\",\"label\":\"Attribution 4.0 International (CC BY 4.0)\",\"url\":\"http://creativecommons.org/licenses/by/4.0/\",\"type\":\"License\"}" + "items.locations.license" : [ + { + "id" : "cc-by", + "label" : "Attribution 4.0 International (CC BY 4.0)" + } ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "8CwvL5s2ax" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ "cc-by" ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ "f1nicvdy" ], - "items.identifiers.value": [ + "items.identifiers.value" : [ "yqR7eWPnru", "wmEBLIOVK6" ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ "iiif-presentation" ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.0.eng.json b/common/search/src/test/resources/test_documents/works.languages.0.eng.json index 7a2985442..905ca2fb9 100644 --- a/common/search/src/test/resources/test_documents/works.languages.0.eng.json +++ b/common/search/src/test/resources/test_documents/works.languages.0.eng.json @@ -1,190 +1,193 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.464112Z", - "id": "9pon81hb", - "document": { - "debug": { - "source": { - "id": "9pon81hb", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.317019Z", + "id" : "9pon81hb", + "document" : { + "debug" : { + "source" : { + "id" : "9pon81hb", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "mVHoe2r6sk" + "ontologyType" : "Work", + "value" : "mVHoe2r6sk" }, - "version": 97, - "modifiedTime": "2020-11-07T23:22:13Z" + "version" : 97, + "modifiedTime" : "2020-11-07T23:22:13Z" }, - "mergedTime": "2020-11-07T23:22:13Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2020-11-07T23:22:13Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "9pon81hb", - "title": "A work with languages English", - "alternativeTitles": [ + "display" : { + "id" : "9pon81hb", + "title" : "A work with languages English", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "mVHoe2r6sk", - "type": "Identifier" + "value" : "mVHoe2r6sk", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "eng", - "label": "English", - "type": "Language" + "id" : "eng", + "label" : "English", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "9pon81hb", - "sourceIdentifier.value": "mVHoe2r6sk", - "identifiers.value": [ + "id" : "9pon81hb", + "sourceIdentifier.value" : "mVHoe2r6sk", + "identifiers.value" : [ "mVHoe2r6sk" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "English" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages English" + "title" : "A work with languages English" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"eng\",\"label\":\"English\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "eng", + "label" : "English" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "eng" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "mVHoe2r6sk" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.1.eng.json b/common/search/src/test/resources/test_documents/works.languages.1.eng.json index be0d3c5a6..9742b10f9 100644 --- a/common/search/src/test/resources/test_documents/works.languages.1.eng.json +++ b/common/search/src/test/resources/test_documents/works.languages.1.eng.json @@ -1,190 +1,193 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.469710Z", - "id": "mye6nsw6", - "document": { - "debug": { - "source": { - "id": "mye6nsw6", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.321495Z", + "id" : "mye6nsw6", + "document" : { + "debug" : { + "source" : { + "id" : "mye6nsw6", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "jswjHR3oqS" + "ontologyType" : "Work", + "value" : "jswjHR3oqS" }, - "version": 32, - "modifiedTime": "2013-07-14T10:05:38Z" + "version" : 32, + "modifiedTime" : "2013-07-14T10:05:38Z" }, - "mergedTime": "2013-07-14T10:05:38Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2013-07-14T10:05:38Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "mye6nsw6", - "title": "A work with languages English", - "alternativeTitles": [ + "display" : { + "id" : "mye6nsw6", + "title" : "A work with languages English", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "jswjHR3oqS", - "type": "Identifier" + "value" : "jswjHR3oqS", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "eng", - "label": "English", - "type": "Language" + "id" : "eng", + "label" : "English", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "mye6nsw6", - "sourceIdentifier.value": "jswjHR3oqS", - "identifiers.value": [ + "id" : "mye6nsw6", + "sourceIdentifier.value" : "jswjHR3oqS", + "identifiers.value" : [ "jswjHR3oqS" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "English" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages English" + "title" : "A work with languages English" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"eng\",\"label\":\"English\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "eng", + "label" : "English" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "eng" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "jswjHR3oqS" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.2.eng.json b/common/search/src/test/resources/test_documents/works.languages.2.eng.json index b7b8efc65..40d4d5528 100644 --- a/common/search/src/test/resources/test_documents/works.languages.2.eng.json +++ b/common/search/src/test/resources/test_documents/works.languages.2.eng.json @@ -1,190 +1,193 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.471194Z", - "id": "giiyodfc", - "document": { - "debug": { - "source": { - "id": "giiyodfc", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.323618Z", + "id" : "giiyodfc", + "document" : { + "debug" : { + "source" : { + "id" : "giiyodfc", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "9x0HfU454v" + "ontologyType" : "Work", + "value" : "9x0HfU454v" }, - "version": 13, - "modifiedTime": "2047-09-30T13:44:39Z" + "version" : 13, + "modifiedTime" : "2047-09-30T13:44:39Z" }, - "mergedTime": "2047-09-30T13:44:39Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2047-09-30T13:44:39Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "giiyodfc", - "title": "A work with languages English", - "alternativeTitles": [ + "display" : { + "id" : "giiyodfc", + "title" : "A work with languages English", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "9x0HfU454v", - "type": "Identifier" + "value" : "9x0HfU454v", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "eng", - "label": "English", - "type": "Language" + "id" : "eng", + "label" : "English", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "giiyodfc", - "sourceIdentifier.value": "9x0HfU454v", - "identifiers.value": [ + "id" : "giiyodfc", + "sourceIdentifier.value" : "9x0HfU454v", + "identifiers.value" : [ "9x0HfU454v" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "English" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages English" + "title" : "A work with languages English" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"eng\",\"label\":\"English\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "eng", + "label" : "English" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "eng" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "9x0HfU454v" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.3.eng+swe.json b/common/search/src/test/resources/test_documents/works.languages.3.eng+swe.json index c910617f2..96a7aded6 100644 --- a/common/search/src/test/resources/test_documents/works.languages.3.eng+swe.json +++ b/common/search/src/test/resources/test_documents/works.languages.3.eng+swe.json @@ -1,198 +1,204 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.472567Z", - "id": "taqruniu", - "document": { - "debug": { - "source": { - "id": "taqruniu", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.326114Z", + "id" : "taqruniu", + "document" : { + "debug" : { + "source" : { + "id" : "taqruniu", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "xzEZGWEGMy" + "ontologyType" : "Work", + "value" : "xzEZGWEGMy" }, - "version": 58, - "modifiedTime": "1953-09-06T15:14:14Z" + "version" : 58, + "modifiedTime" : "1953-09-06T15:14:14Z" }, - "mergedTime": "1953-09-06T15:14:14Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1953-09-06T15:14:14Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "taqruniu", - "title": "A work with languages English, Swedish", - "alternativeTitles": [ + "display" : { + "id" : "taqruniu", + "title" : "A work with languages English, Swedish", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "xzEZGWEGMy", - "type": "Identifier" + "value" : "xzEZGWEGMy", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "eng", - "label": "English", - "type": "Language" + "id" : "eng", + "label" : "English", + "type" : "Language" }, { - "id": "swe", - "label": "Swedish", - "type": "Language" + "id" : "swe", + "label" : "Swedish", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "taqruniu", - "sourceIdentifier.value": "xzEZGWEGMy", - "identifiers.value": [ + "id" : "taqruniu", + "sourceIdentifier.value" : "xzEZGWEGMy", + "identifiers.value" : [ "xzEZGWEGMy" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "English", "Swedish" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages English, Swedish" + "title" : "A work with languages English, Swedish" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"eng\",\"label\":\"English\",\"type\":\"Language\"}", - "{\"id\":\"swe\",\"label\":\"Swedish\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "eng", + "label" : "English" + }, + { + "id" : "swe", + "label" : "Swedish" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "eng", "swe" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "xzEZGWEGMy" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.4.eng+swe+tur.json b/common/search/src/test/resources/test_documents/works.languages.4.eng+swe+tur.json index e9b81e3f2..c57eb56f7 100644 --- a/common/search/src/test/resources/test_documents/works.languages.4.eng+swe+tur.json +++ b/common/search/src/test/resources/test_documents/works.languages.4.eng+swe+tur.json @@ -1,206 +1,215 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.473924Z", - "id": "oagougti", - "document": { - "debug": { - "source": { - "id": "oagougti", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.327480Z", + "id" : "oagougti", + "document" : { + "debug" : { + "source" : { + "id" : "oagougti", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "c67fbITZO5" + "ontologyType" : "Work", + "value" : "c67fbITZO5" }, - "version": 76, - "modifiedTime": "2039-12-01T11:37:40Z" + "version" : 76, + "modifiedTime" : "2039-12-01T11:37:40Z" }, - "mergedTime": "2039-12-01T11:37:40Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2039-12-01T11:37:40Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "oagougti", - "title": "A work with languages English, Swedish, Turkish", - "alternativeTitles": [ + "display" : { + "id" : "oagougti", + "title" : "A work with languages English, Swedish, Turkish", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "c67fbITZO5", - "type": "Identifier" + "value" : "c67fbITZO5", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "eng", - "label": "English", - "type": "Language" + "id" : "eng", + "label" : "English", + "type" : "Language" }, { - "id": "swe", - "label": "Swedish", - "type": "Language" + "id" : "swe", + "label" : "Swedish", + "type" : "Language" }, { - "id": "tur", - "label": "Turkish", - "type": "Language" + "id" : "tur", + "label" : "Turkish", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "oagougti", - "sourceIdentifier.value": "c67fbITZO5", - "identifiers.value": [ + "id" : "oagougti", + "sourceIdentifier.value" : "c67fbITZO5", + "identifiers.value" : [ "c67fbITZO5" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "English", "Swedish", "Turkish" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages English, Swedish, Turkish" + "title" : "A work with languages English, Swedish, Turkish" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"eng\",\"label\":\"English\",\"type\":\"Language\"}", - "{\"id\":\"swe\",\"label\":\"Swedish\",\"type\":\"Language\"}", - "{\"id\":\"tur\",\"label\":\"Turkish\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "eng", + "label" : "English" + }, + { + "id" : "swe", + "label" : "Swedish" + }, + { + "id" : "tur", + "label" : "Turkish" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "eng", "swe", "tur" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "c67fbITZO5" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.5.swe.json b/common/search/src/test/resources/test_documents/works.languages.5.swe.json index 36a6978dc..7e2a87acb 100644 --- a/common/search/src/test/resources/test_documents/works.languages.5.swe.json +++ b/common/search/src/test/resources/test_documents/works.languages.5.swe.json @@ -1,190 +1,193 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.475246Z", - "id": "olhrstrz", - "document": { - "debug": { - "source": { - "id": "olhrstrz", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.328731Z", + "id" : "olhrstrz", + "document" : { + "debug" : { + "source" : { + "id" : "olhrstrz", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "UagAbkJTEE" + "ontologyType" : "Work", + "value" : "UagAbkJTEE" }, - "version": 58, - "modifiedTime": "2026-09-11T17:29:57Z" + "version" : 58, + "modifiedTime" : "2026-09-11T17:29:57Z" }, - "mergedTime": "2026-09-11T17:29:57Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2026-09-11T17:29:57Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "olhrstrz", - "title": "A work with languages Swedish", - "alternativeTitles": [ + "display" : { + "id" : "olhrstrz", + "title" : "A work with languages Swedish", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "UagAbkJTEE", - "type": "Identifier" + "value" : "UagAbkJTEE", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "swe", - "label": "Swedish", - "type": "Language" + "id" : "swe", + "label" : "Swedish", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "olhrstrz", - "sourceIdentifier.value": "UagAbkJTEE", - "identifiers.value": [ + "id" : "olhrstrz", + "sourceIdentifier.value" : "UagAbkJTEE", + "identifiers.value" : [ "UagAbkJTEE" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Swedish" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages Swedish" + "title" : "A work with languages Swedish" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"swe\",\"label\":\"Swedish\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "swe", + "label" : "Swedish" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "swe" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "UagAbkJTEE" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.languages.6.tur.json b/common/search/src/test/resources/test_documents/works.languages.6.tur.json index ed8c4dfe7..85518ce44 100644 --- a/common/search/src/test/resources/test_documents/works.languages.6.tur.json +++ b/common/search/src/test/resources/test_documents/works.languages.6.tur.json @@ -1,190 +1,193 @@ { - "description": "one of a list of works with a variety of languages", - "createdAt": "2024-11-13T08:43:26.477043Z", - "id": "6navwg1c", - "document": { - "debug": { - "source": { - "id": "6navwg1c", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "one of a list of works with a variety of languages", + "createdAt" : "2024-11-25T15:15:12.330033Z", + "id" : "6navwg1c", + "document" : { + "debug" : { + "source" : { + "id" : "6navwg1c", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "Ra2FIC2DNd" + "ontologyType" : "Work", + "value" : "Ra2FIC2DNd" }, - "version": 19, - "modifiedTime": "1934-12-30T03:15:39Z" + "version" : 19, + "modifiedTime" : "1934-12-30T03:15:39Z" }, - "mergedTime": "1934-12-30T03:15:39Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1934-12-30T03:15:39Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "6navwg1c", - "title": "A work with languages Turkish", - "alternativeTitles": [ + "display" : { + "id" : "6navwg1c", + "title" : "A work with languages Turkish", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "Ra2FIC2DNd", - "type": "Identifier" + "value" : "Ra2FIC2DNd", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ { - "id": "tur", - "label": "Turkish", - "type": "Language" + "id" : "tur", + "label" : "Turkish", + "type" : "Language" } ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "6navwg1c", - "sourceIdentifier.value": "Ra2FIC2DNd", - "identifiers.value": [ + "id" : "6navwg1c", + "sourceIdentifier.value" : "Ra2FIC2DNd", + "identifiers.value" : [ "Ra2FIC2DNd" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ "Turkish" ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "A work with languages Turkish" + "title" : "A work with languages Turkish" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ - "{\"id\":\"tur\",\"label\":\"Turkish\",\"type\":\"Language\"}" + "languages" : [ + { + "id" : "tur", + "label" : "Turkish" + } ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ "tur" ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Ra2FIC2DNd" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.production.multi-year.0.json b/common/search/src/test/resources/test_documents/works.production.multi-year.0.json index 11edd0635..1ba1226fc 100644 --- a/common/search/src/test/resources/test_documents/works.production.multi-year.0.json +++ b/common/search/src/test/resources/test_documents/works.production.multi-year.0.json @@ -1,209 +1,212 @@ { - "description": "works with multi-year production ranges", - "createdAt": "2024-11-13T08:43:26.555984Z", - "id": "wrhbusqt", - "document": { - "debug": { - "source": { - "id": "wrhbusqt", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with multi-year production ranges", + "createdAt" : "2024-11-25T15:15:12.402369Z", + "id" : "wrhbusqt", + "document" : { + "debug" : { + "source" : { + "id" : "wrhbusqt", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "JWZRaIg4BP" + "ontologyType" : "Work", + "value" : "JWZRaIg4BP" }, - "version": 92, - "modifiedTime": "1941-03-30T16:00:44Z" + "version" : 92, + "modifiedTime" : "1941-03-30T16:00:44Z" }, - "mergedTime": "1941-03-30T16:00:44Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1941-03-30T16:00:44Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "wrhbusqt", - "title": "title-zUOjOyKabH", - "alternativeTitles": [ + "display" : { + "id" : "wrhbusqt", + "title" : "title-zUOjOyKabH", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "JWZRaIg4BP", - "type": "Identifier" + "value" : "JWZRaIg4BP", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "cUH8ak2gePdAnZy8IL7DS24A3", - "places": [ + "label" : "cUH8ak2gePdAnZy8IL7DS24A3", + "places" : [ { - "label": "bjh2WRDdYf", - "type": "Place" + "label" : "bjh2WRDdYf", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "1h8Be8UrT3", - "type": "Person" + "label" : "1h8Be8UrT3", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "1850", - "type": "Period" + "label" : "1850", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "wrhbusqt", - "sourceIdentifier.value": "JWZRaIg4BP", - "identifiers.value": [ + "id" : "wrhbusqt", + "sourceIdentifier.value" : "JWZRaIg4BP", + "identifiers.value" : [ "JWZRaIg4BP" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "bjh2WRDdYf", "1h8Be8UrT3", "1850" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-zUOjOyKabH" + "title" : "title-zUOjOyKabH" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1850\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1850", + "label" : "1850" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -3786825600000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "JWZRaIg4BP" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.production.multi-year.1.json b/common/search/src/test/resources/test_documents/works.production.multi-year.1.json index 4d0731381..d38841a93 100644 --- a/common/search/src/test/resources/test_documents/works.production.multi-year.1.json +++ b/common/search/src/test/resources/test_documents/works.production.multi-year.1.json @@ -1,209 +1,212 @@ { - "description": "works with multi-year production ranges", - "createdAt": "2024-11-13T08:43:26.556374Z", - "id": "yjdmhccz", - "document": { - "debug": { - "source": { - "id": "yjdmhccz", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with multi-year production ranges", + "createdAt" : "2024-11-25T15:15:12.402785Z", + "id" : "yjdmhccz", + "document" : { + "debug" : { + "source" : { + "id" : "yjdmhccz", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "pvvnQHgcJP" + "ontologyType" : "Work", + "value" : "pvvnQHgcJP" }, - "version": 49, - "modifiedTime": "1965-03-09T05:55:12Z" + "version" : 49, + "modifiedTime" : "1965-03-09T05:55:12Z" }, - "mergedTime": "1965-03-09T05:55:12Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1965-03-09T05:55:12Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "yjdmhccz", - "title": "title-NV4U4YKwyt", - "alternativeTitles": [ + "display" : { + "id" : "yjdmhccz", + "title" : "title-NV4U4YKwyt", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "pvvnQHgcJP", - "type": "Identifier" + "value" : "pvvnQHgcJP", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "wmZcSQaFLtBeNhpR5aFhbmGJs", - "places": [ + "label" : "wmZcSQaFLtBeNhpR5aFhbmGJs", + "places" : [ { - "label": "Mse28ReU0t", - "type": "Place" + "label" : "Mse28ReU0t", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "OIr878hfcC", - "type": "Person" + "label" : "OIr878hfcC", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "1850-2000", - "type": "Period" + "label" : "1850-2000", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "yjdmhccz", - "sourceIdentifier.value": "pvvnQHgcJP", - "identifiers.value": [ + "id" : "yjdmhccz", + "sourceIdentifier.value" : "pvvnQHgcJP", + "identifiers.value" : [ "pvvnQHgcJP" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "Mse28ReU0t", "OIr878hfcC", "1850-2000" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-NV4U4YKwyt" + "title" : "title-NV4U4YKwyt" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1850\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1850", + "label" : "1850" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -3786825600000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "pvvnQHgcJP" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.production.multi-year.2.json b/common/search/src/test/resources/test_documents/works.production.multi-year.2.json index fa9e2521d..aec6d2b35 100644 --- a/common/search/src/test/resources/test_documents/works.production.multi-year.2.json +++ b/common/search/src/test/resources/test_documents/works.production.multi-year.2.json @@ -1,209 +1,212 @@ { - "description": "works with multi-year production ranges", - "createdAt": "2024-11-13T08:43:26.556758Z", - "id": "v2jj5pko", - "document": { - "debug": { - "source": { - "id": "v2jj5pko", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with multi-year production ranges", + "createdAt" : "2024-11-25T15:15:12.403189Z", + "id" : "v2jj5pko", + "document" : { + "debug" : { + "source" : { + "id" : "v2jj5pko", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "XKeDQMh6zv" + "ontologyType" : "Work", + "value" : "XKeDQMh6zv" }, - "version": 34, - "modifiedTime": "1975-08-31T16:12:40Z" + "version" : 34, + "modifiedTime" : "1975-08-31T16:12:40Z" }, - "mergedTime": "1975-08-31T16:12:40Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1975-08-31T16:12:40Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "v2jj5pko", - "title": "title-kAlfIDxe8F", - "alternativeTitles": [ + "display" : { + "id" : "v2jj5pko", + "title" : "title-kAlfIDxe8F", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "XKeDQMh6zv", - "type": "Identifier" + "value" : "XKeDQMh6zv", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "T0mobVH4nMKaFfllypAUqLQ0g", - "places": [ + "label" : "T0mobVH4nMKaFfllypAUqLQ0g", + "places" : [ { - "label": "UKbghZ727m", - "type": "Place" + "label" : "UKbghZ727m", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "8zTnSvRiZt", - "type": "Person" + "label" : "8zTnSvRiZt", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "1860-1960", - "type": "Period" + "label" : "1860-1960", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "v2jj5pko", - "sourceIdentifier.value": "XKeDQMh6zv", - "identifiers.value": [ + "id" : "v2jj5pko", + "sourceIdentifier.value" : "XKeDQMh6zv", + "identifiers.value" : [ "XKeDQMh6zv" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "UKbghZ727m", "8zTnSvRiZt", "1860-1960" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-kAlfIDxe8F" + "title" : "title-kAlfIDxe8F" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1860\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1860", + "label" : "1860" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -3471292800000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "XKeDQMh6zv" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.production.multi-year.3.json b/common/search/src/test/resources/test_documents/works.production.multi-year.3.json index 39b19e4f7..13c957bd5 100644 --- a/common/search/src/test/resources/test_documents/works.production.multi-year.3.json +++ b/common/search/src/test/resources/test_documents/works.production.multi-year.3.json @@ -1,209 +1,212 @@ { - "description": "works with multi-year production ranges", - "createdAt": "2024-11-13T08:43:26.557151Z", - "id": "br9psxdd", - "document": { - "debug": { - "source": { - "id": "br9psxdd", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with multi-year production ranges", + "createdAt" : "2024-11-25T15:15:12.403564Z", + "id" : "br9psxdd", + "document" : { + "debug" : { + "source" : { + "id" : "br9psxdd", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "CpwHX9hOaw" + "ontologyType" : "Work", + "value" : "CpwHX9hOaw" }, - "version": 63, - "modifiedTime": "1971-04-20T21:05:04Z" + "version" : 63, + "modifiedTime" : "1971-04-20T21:05:04Z" }, - "mergedTime": "1971-04-20T21:05:04Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1971-04-20T21:05:04Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "br9psxdd", - "title": "title-TQ6alxfhhH", - "alternativeTitles": [ + "display" : { + "id" : "br9psxdd", + "title" : "title-TQ6alxfhhH", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "CpwHX9hOaw", - "type": "Identifier" + "value" : "CpwHX9hOaw", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "lLIHkQjFHQROpFfnFl9elPj6a", - "places": [ + "label" : "lLIHkQjFHQROpFfnFl9elPj6a", + "places" : [ { - "label": "56tujbhysw", - "type": "Place" + "label" : "56tujbhysw", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "OpLeG3f7j0", - "type": "Person" + "label" : "OpLeG3f7j0", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "1960", - "type": "Period" + "label" : "1960", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "br9psxdd", - "sourceIdentifier.value": "CpwHX9hOaw", - "identifiers.value": [ + "id" : "br9psxdd", + "sourceIdentifier.value" : "CpwHX9hOaw", + "identifiers.value" : [ "CpwHX9hOaw" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "56tujbhysw", "OpLeG3f7j0", "1960" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-TQ6alxfhhH" + "title" : "title-TQ6alxfhhH" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1960\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1960", + "label" : "1960" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -315619200000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "CpwHX9hOaw" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.production.multi-year.4.json b/common/search/src/test/resources/test_documents/works.production.multi-year.4.json index f7d0e2ba0..2e0f7e4ec 100644 --- a/common/search/src/test/resources/test_documents/works.production.multi-year.4.json +++ b/common/search/src/test/resources/test_documents/works.production.multi-year.4.json @@ -1,209 +1,212 @@ { - "description": "works with multi-year production ranges", - "createdAt": "2024-11-13T08:43:26.557522Z", - "id": "rx3okdwc", - "document": { - "debug": { - "source": { - "id": "rx3okdwc", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with multi-year production ranges", + "createdAt" : "2024-11-25T15:15:12.403922Z", + "id" : "rx3okdwc", + "document" : { + "debug" : { + "source" : { + "id" : "rx3okdwc", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "b0tnvUprsj" + "ontologyType" : "Work", + "value" : "b0tnvUprsj" }, - "version": 80, - "modifiedTime": "2029-08-13T07:01:03Z" + "version" : 80, + "modifiedTime" : "2029-08-13T07:01:03Z" }, - "mergedTime": "2029-08-13T07:01:03Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2029-08-13T07:01:03Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "rx3okdwc", - "title": "title-2lfjsLaubb", - "alternativeTitles": [ + "display" : { + "id" : "rx3okdwc", + "title" : "title-2lfjsLaubb", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "b0tnvUprsj", - "type": "Identifier" + "value" : "b0tnvUprsj", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "GsIdzZyGYBSGAtphRApGkJTZW", - "places": [ + "label" : "GsIdzZyGYBSGAtphRApGkJTZW", + "places" : [ { - "label": "wn4AhFD31A", - "type": "Place" + "label" : "wn4AhFD31A", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "dK5EfQwt6P", - "type": "Person" + "label" : "dK5EfQwt6P", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "1960-1964", - "type": "Period" + "label" : "1960-1964", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "rx3okdwc", - "sourceIdentifier.value": "b0tnvUprsj", - "identifiers.value": [ + "id" : "rx3okdwc", + "sourceIdentifier.value" : "b0tnvUprsj", + "identifiers.value" : [ "b0tnvUprsj" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "wn4AhFD31A", "dK5EfQwt6P", "1960-1964" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-2lfjsLaubb" + "title" : "title-2lfjsLaubb" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1960\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1960", + "label" : "1960" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -315619200000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "b0tnvUprsj" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.production.multi-year.5.json b/common/search/src/test/resources/test_documents/works.production.multi-year.5.json index 3801f98b2..39cfe95e1 100644 --- a/common/search/src/test/resources/test_documents/works.production.multi-year.5.json +++ b/common/search/src/test/resources/test_documents/works.production.multi-year.5.json @@ -1,209 +1,212 @@ { - "description": "works with multi-year production ranges", - "createdAt": "2024-11-13T08:43:26.557895Z", - "id": "dbkiu6iz", - "document": { - "debug": { - "source": { - "id": "dbkiu6iz", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with multi-year production ranges", + "createdAt" : "2024-11-25T15:15:12.404285Z", + "id" : "dbkiu6iz", + "document" : { + "debug" : { + "source" : { + "id" : "dbkiu6iz", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "lbspe4jqB3" + "ontologyType" : "Work", + "value" : "lbspe4jqB3" }, - "version": 18, - "modifiedTime": "1958-05-09T13:19:17Z" + "version" : 18, + "modifiedTime" : "1958-05-09T13:19:17Z" }, - "mergedTime": "1958-05-09T13:19:17Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1958-05-09T13:19:17Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "dbkiu6iz", - "title": "title-DrUzFkvgSy", - "alternativeTitles": [ + "display" : { + "id" : "dbkiu6iz", + "title" : "title-DrUzFkvgSy", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "lbspe4jqB3", - "type": "Identifier" + "value" : "lbspe4jqB3", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ { - "label": "yMDGo2rBCSPBNfFmnJIEpzyMJ", - "places": [ + "label" : "yMDGo2rBCSPBNfFmnJIEpzyMJ", + "places" : [ { - "label": "LtI2pjU6xn", - "type": "Place" + "label" : "LtI2pjU6xn", + "type" : "Place" } ], - "agents": [ + "agents" : [ { - "label": "Vo8KntFwFf", - "type": "Person" + "label" : "Vo8KntFwFf", + "type" : "Person" } ], - "dates": [ + "dates" : [ { - "label": "1962", - "type": "Period" + "label" : "1962", + "type" : "Period" } ], - "type": "ProductionEvent" + "type" : "ProductionEvent" } ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "dbkiu6iz", - "sourceIdentifier.value": "lbspe4jqB3", - "identifiers.value": [ + "id" : "dbkiu6iz", + "sourceIdentifier.value" : "lbspe4jqB3", + "identifiers.value" : [ "lbspe4jqB3" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ "LtI2pjU6xn", "Vo8KntFwFf", "1962" ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-DrUzFkvgSy" + "title" : "title-DrUzFkvgSy" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ - "{\"label\":\"1962\",\"type\":\"Period\"}" + "production.dates" : [ + { + "id" : "1962", + "label" : "1962" + } ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ -252460800000 ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "lbspe4jqB3" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.redirected.0.json b/common/search/src/test/resources/test_documents/works.redirected.0.json index dc2afcc8d..232dfc8fa 100644 --- a/common/search/src/test/resources/test_documents/works.redirected.0.json +++ b/common/search/src/test/resources/test_documents/works.redirected.0.json @@ -1,38 +1,38 @@ { - "description": "an arbitrary list of redirected works", - "createdAt": "2024-05-15T08:17:25.220502Z", - "id": "4nwkprdt", - "document": { - "debug": { - "source": { - "id": "4nwkprdt", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "an arbitrary list of redirected works", + "createdAt" : "2024-05-15T08:17:25.220502Z", + "id" : "4nwkprdt", + "document" : { + "debug" : { + "source" : { + "id" : "4nwkprdt", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "PciYoP2Wz6" + "ontologyType" : "Work", + "value" : "PciYoP2Wz6" }, - "version": 78, - "modifiedTime": "2044-05-21T11:37:26Z" + "version" : 78, + "modifiedTime" : "2044-05-21T11:37:26Z" }, - "mergedTime": "2044-05-21T11:37:26Z", - "indexedTime": "2001-01-01T01:01:01Z", - "mergeCandidates": [ + "mergedTime" : "2044-05-21T11:37:26Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "mergeCandidates" : [ ] }, - "redirectTarget": { - "canonicalId": "mv6kix0n", - "sourceIdentifier": { - "identifierType": { - "id": "sierra-system-number" + "redirectTarget" : { + "canonicalId" : "mv6kix0n", + "sourceIdentifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "qklbwm3uF6" + "ontologyType" : "Work", + "value" : "qklbwm3uF6" }, - "otherIdentifiers": [ + "otherIdentifiers" : [ ] }, - "type": "Redirected" + "type" : "Redirected" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.redirected.1.json b/common/search/src/test/resources/test_documents/works.redirected.1.json index fe9fc0049..e8ba7e39e 100644 --- a/common/search/src/test/resources/test_documents/works.redirected.1.json +++ b/common/search/src/test/resources/test_documents/works.redirected.1.json @@ -1,38 +1,38 @@ { - "description": "an arbitrary list of redirected works", - "createdAt": "2024-05-15T08:17:25.220873Z", - "id": "6yu7udsf", - "document": { - "debug": { - "source": { - "id": "6yu7udsf", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "an arbitrary list of redirected works", + "createdAt" : "2024-05-15T08:17:25.220873Z", + "id" : "6yu7udsf", + "document" : { + "debug" : { + "source" : { + "id" : "6yu7udsf", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "WDU051A4vR" + "ontologyType" : "Work", + "value" : "WDU051A4vR" }, - "version": 11, - "modifiedTime": "2018-10-24T16:12:55Z" + "version" : 11, + "modifiedTime" : "2018-10-24T16:12:55Z" }, - "mergedTime": "2018-10-24T16:12:55Z", - "indexedTime": "2001-01-01T01:01:01Z", - "mergeCandidates": [ + "mergedTime" : "2018-10-24T16:12:55Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "mergeCandidates" : [ ] }, - "redirectTarget": { - "canonicalId": "7wax09hv", - "sourceIdentifier": { - "identifierType": { - "id": "sierra-system-number" + "redirectTarget" : { + "canonicalId" : "7wax09hv", + "sourceIdentifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "qK07HsFHaW" + "ontologyType" : "Work", + "value" : "qK07HsFHaW" }, - "otherIdentifiers": [ + "otherIdentifiers" : [ ] }, - "type": "Redirected" + "type" : "Redirected" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.subjects.0.json b/common/search/src/test/resources/test_documents/works.subjects.0.json index b36c8a3d5..c2989d4ab 100644 --- a/common/search/src/test/resources/test_documents/works.subjects.0.json +++ b/common/search/src/test/resources/test_documents/works.subjects.0.json @@ -1,205 +1,208 @@ { - "description": "works with different subjects", - "createdAt": "2024-11-13T08:43:26.493183Z", - "id": "njj1gugw", - "document": { - "debug": { - "source": { - "id": "njj1gugw", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "works with different subjects", + "createdAt" : "2024-11-25T15:15:12.346502Z", + "id" : "njj1gugw", + "document" : { + "debug" : { + "source" : { + "id" : "njj1gugw", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "JeGRUgE73g" + "ontologyType" : "Work", + "value" : "JeGRUgE73g" }, - "version": 58, - "modifiedTime": "2009-03-20T11:29:10Z" + "version" : 58, + "modifiedTime" : "2009-03-20T11:29:10Z" }, - "mergedTime": "2009-03-20T11:29:10Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2009-03-20T11:29:10Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "njj1gugw", - "title": "title-kaqjnWIqBs", - "alternativeTitles": [ + "display" : { + "id" : "njj1gugw", + "title" : "title-kaqjnWIqBs", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "JeGRUgE73g", - "type": "Identifier" + "value" : "JeGRUgE73g", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "paleoNeuroBiology", - "concepts": [ + "label" : "paleoNeuroBiology", + "concepts" : [ { - "label": "OVfDtEVhuTjLML0", - "type": "Concept" + "label" : "OVfDtEVhuTjLML0", + "type" : "Concept" }, { - "label": "MOH1Bj9evx0cAh7", - "type": "Concept" + "label" : "MOH1Bj9evx0cAh7", + "type" : "Concept" }, { - "label": "0mKj49k3BjjuTuf", - "type": "Concept" + "label" : "0mKj49k3BjjuTuf", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "njj1gugw", - "sourceIdentifier.value": "JeGRUgE73g", - "identifiers.value": [ + "id" : "njj1gugw", + "sourceIdentifier.value" : "JeGRUgE73g", + "identifiers.value" : [ "JeGRUgE73g" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "OVfDtEVhuTjLML0", "MOH1Bj9evx0cAh7", "0mKj49k3BjjuTuf" ], - "title": "title-kaqjnWIqBs" + "title" : "title-kaqjnWIqBs" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"paleoNeuroBiology\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "paleoNeuroBiology", + "label" : "paleoNeuroBiology" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "paleoNeuroBiology" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "JeGRUgE73g" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.subjects.1.json b/common/search/src/test/resources/test_documents/works.subjects.1.json index 74e49072d..2966d4920 100644 --- a/common/search/src/test/resources/test_documents/works.subjects.1.json +++ b/common/search/src/test/resources/test_documents/works.subjects.1.json @@ -1,205 +1,208 @@ { - "description": "works with different subjects", - "createdAt": "2024-11-13T08:43:26.493716Z", - "id": "7xjjhlpg", - "document": { - "debug": { - "source": { - "id": "7xjjhlpg", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with different subjects", + "createdAt" : "2024-11-25T15:15:12.346990Z", + "id" : "7xjjhlpg", + "document" : { + "debug" : { + "source" : { + "id" : "7xjjhlpg", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "47LFZN2ZgN" + "ontologyType" : "Work", + "value" : "47LFZN2ZgN" }, - "version": 50, - "modifiedTime": "2055-06-09T03:30:20Z" + "version" : 50, + "modifiedTime" : "2055-06-09T03:30:20Z" }, - "mergedTime": "2055-06-09T03:30:20Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2055-06-09T03:30:20Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "7xjjhlpg", - "title": "title-U7nUYWbjoJ", - "alternativeTitles": [ + "display" : { + "id" : "7xjjhlpg", + "title" : "title-U7nUYWbjoJ", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "47LFZN2ZgN", - "type": "Identifier" + "value" : "47LFZN2ZgN", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "realAnalysis", - "concepts": [ + "label" : "realAnalysis", + "concepts" : [ { - "label": "KU2Yez08k6CNnSU", - "type": "Concept" + "label" : "KU2Yez08k6CNnSU", + "type" : "Concept" }, { - "label": "VMdWdPx74hNxKXA", - "type": "Concept" + "label" : "VMdWdPx74hNxKXA", + "type" : "Concept" }, { - "label": "vquihJgTfjChVoT", - "type": "Concept" + "label" : "vquihJgTfjChVoT", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "7xjjhlpg", - "sourceIdentifier.value": "47LFZN2ZgN", - "identifiers.value": [ + "id" : "7xjjhlpg", + "sourceIdentifier.value" : "47LFZN2ZgN", + "identifiers.value" : [ "47LFZN2ZgN" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "KU2Yez08k6CNnSU", "VMdWdPx74hNxKXA", "vquihJgTfjChVoT" ], - "title": "title-U7nUYWbjoJ" + "title" : "title-U7nUYWbjoJ" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"realAnalysis\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "realAnalysis", + "label" : "realAnalysis" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "realAnalysis" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "47LFZN2ZgN" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.subjects.2.json b/common/search/src/test/resources/test_documents/works.subjects.2.json index fc9693a9f..90ef43154 100644 --- a/common/search/src/test/resources/test_documents/works.subjects.2.json +++ b/common/search/src/test/resources/test_documents/works.subjects.2.json @@ -1,205 +1,208 @@ { - "description": "works with different subjects", - "createdAt": "2024-11-13T08:43:26.494201Z", - "id": "ixapupnn", - "document": { - "debug": { - "source": { - "id": "ixapupnn", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with different subjects", + "createdAt" : "2024-11-25T15:15:12.347405Z", + "id" : "ixapupnn", + "document" : { + "debug" : { + "source" : { + "id" : "ixapupnn", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "DSV5vB01pf" + "ontologyType" : "Work", + "value" : "DSV5vB01pf" }, - "version": 51, - "modifiedTime": "2038-11-26T21:07:39Z" + "version" : 51, + "modifiedTime" : "2038-11-26T21:07:39Z" }, - "mergedTime": "2038-11-26T21:07:39Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2038-11-26T21:07:39Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "ixapupnn", - "title": "title-FXwxyxQUQw", - "alternativeTitles": [ + "display" : { + "id" : "ixapupnn", + "title" : "title-FXwxyxQUQw", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "DSV5vB01pf", - "type": "Identifier" + "value" : "DSV5vB01pf", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "realAnalysis", - "concepts": [ + "label" : "realAnalysis", + "concepts" : [ { - "label": "KU2Yez08k6CNnSU", - "type": "Concept" + "label" : "KU2Yez08k6CNnSU", + "type" : "Concept" }, { - "label": "VMdWdPx74hNxKXA", - "type": "Concept" + "label" : "VMdWdPx74hNxKXA", + "type" : "Concept" }, { - "label": "vquihJgTfjChVoT", - "type": "Concept" + "label" : "vquihJgTfjChVoT", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "ixapupnn", - "sourceIdentifier.value": "DSV5vB01pf", - "identifiers.value": [ + "id" : "ixapupnn", + "sourceIdentifier.value" : "DSV5vB01pf", + "identifiers.value" : [ "DSV5vB01pf" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "KU2Yez08k6CNnSU", "VMdWdPx74hNxKXA", "vquihJgTfjChVoT" ], - "title": "title-FXwxyxQUQw" + "title" : "title-FXwxyxQUQw" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"realAnalysis\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "realAnalysis", + "label" : "realAnalysis" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "realAnalysis" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "DSV5vB01pf" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.subjects.3.json b/common/search/src/test/resources/test_documents/works.subjects.3.json index bd2dbe253..20d736f5a 100644 --- a/common/search/src/test/resources/test_documents/works.subjects.3.json +++ b/common/search/src/test/resources/test_documents/works.subjects.3.json @@ -1,152 +1,152 @@ { - "description": "works with different subjects", - "createdAt": "2024-11-13T08:43:26.495023Z", - "id": "opaupm4b", - "document": { - "debug": { - "source": { - "id": "opaupm4b", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "works with different subjects", + "createdAt" : "2024-11-25T15:15:12.347885Z", + "id" : "opaupm4b", + "document" : { + "debug" : { + "source" : { + "id" : "opaupm4b", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "spewkKE1s2" + "ontologyType" : "Work", + "value" : "spewkKE1s2" }, - "version": 2, - "modifiedTime": "1963-02-18T22:51:22Z" + "version" : 2, + "modifiedTime" : "1963-02-18T22:51:22Z" }, - "mergedTime": "1963-02-18T22:51:22Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1963-02-18T22:51:22Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "opaupm4b", - "title": "title-l7TlcjNV5v", - "alternativeTitles": [ + "display" : { + "id" : "opaupm4b", + "title" : "title-l7TlcjNV5v", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "spewkKE1s2", - "type": "Identifier" + "value" : "spewkKE1s2", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ { - "label": "paleoNeuroBiology", - "concepts": [ + "label" : "paleoNeuroBiology", + "concepts" : [ { - "label": "OVfDtEVhuTjLML0", - "type": "Concept" + "label" : "OVfDtEVhuTjLML0", + "type" : "Concept" }, { - "label": "MOH1Bj9evx0cAh7", - "type": "Concept" + "label" : "MOH1Bj9evx0cAh7", + "type" : "Concept" }, { - "label": "0mKj49k3BjjuTuf", - "type": "Concept" + "label" : "0mKj49k3BjjuTuf", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" }, { - "label": "realAnalysis", - "concepts": [ + "label" : "realAnalysis", + "concepts" : [ { - "label": "KU2Yez08k6CNnSU", - "type": "Concept" + "label" : "KU2Yez08k6CNnSU", + "type" : "Concept" }, { - "label": "VMdWdPx74hNxKXA", - "type": "Concept" + "label" : "VMdWdPx74hNxKXA", + "type" : "Concept" }, { - "label": "vquihJgTfjChVoT", - "type": "Concept" + "label" : "vquihJgTfjChVoT", + "type" : "Concept" } ], - "type": "Subject" + "type" : "Subject" } ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "opaupm4b", - "sourceIdentifier.value": "spewkKE1s2", - "identifiers.value": [ + "id" : "opaupm4b", + "sourceIdentifier.value" : "spewkKE1s2", + "identifiers.value" : [ "spewkKE1s2" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ "OVfDtEVhuTjLML0", "MOH1Bj9evx0cAh7", "0mKj49k3BjjuTuf", @@ -154,75 +154,81 @@ "VMdWdPx74hNxKXA", "vquihJgTfjChVoT" ], - "title": "title-l7TlcjNV5v" + "title" : "title-l7TlcjNV5v" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ - "{\"label\":\"paleoNeuroBiology\",\"concepts\":[],\"type\":\"Subject\"}", - "{\"label\":\"realAnalysis\",\"concepts\":[],\"type\":\"Subject\"}" + "subjects" : [ + { + "id" : "paleoNeuroBiology", + "label" : "paleoNeuroBiology" + }, + { + "id" : "realAnalysis", + "label" : "realAnalysis" + } ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ "paleoNeuroBiology", "realAnalysis" ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "spewkKE1s2" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.subjects.4.json b/common/search/src/test/resources/test_documents/works.subjects.4.json index 4c8db574c..930b00097 100644 --- a/common/search/src/test/resources/test_documents/works.subjects.4.json +++ b/common/search/src/test/resources/test_documents/works.subjects.4.json @@ -1,182 +1,182 @@ { - "description": "works with different subjects", - "createdAt": "2024-11-13T08:43:26.495435Z", - "id": "el28gega", - "document": { - "debug": { - "source": { - "id": "el28gega", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "works with different subjects", + "createdAt" : "2024-11-25T15:15:12.348203Z", + "id" : "el28gega", + "document" : { + "debug" : { + "source" : { + "id" : "el28gega", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "9qDYGFYXAa" + "ontologyType" : "Work", + "value" : "9qDYGFYXAa" }, - "version": 63, - "modifiedTime": "1997-06-19T05:13:34Z" + "version" : 63, + "modifiedTime" : "1997-06-19T05:13:34Z" }, - "mergedTime": "1997-06-19T05:13:34Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1997-06-19T05:13:34Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "el28gega", - "title": "title-be5yxr73Xc", - "alternativeTitles": [ + "display" : { + "id" : "el28gega", + "title" : "title-be5yxr73Xc", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "9qDYGFYXAa", - "type": "Identifier" + "value" : "9qDYGFYXAa", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "el28gega", - "sourceIdentifier.value": "9qDYGFYXAa", - "identifiers.value": [ + "id" : "el28gega", + "sourceIdentifier.value" : "9qDYGFYXAa", + "identifiers.value" : [ "9qDYGFYXAa" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-be5yxr73Xc" + "title" : "title-be5yxr73Xc" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "9qDYGFYXAa" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.title-query-parens.json b/common/search/src/test/resources/test_documents/works.title-query-parens.json index eb13c2090..b6071b798 100644 --- a/common/search/src/test/resources/test_documents/works.title-query-parens.json +++ b/common/search/src/test/resources/test_documents/works.title-query-parens.json @@ -1,182 +1,182 @@ { - "description": "a work whose title has parens meant to trip up ES", - "createdAt": "2024-11-13T08:43:26.462196Z", - "id": "1sxjupdc", - "document": { - "debug": { - "source": { - "id": "1sxjupdc", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "a work whose title has parens meant to trip up ES", + "createdAt" : "2024-11-25T15:15:12.315501Z", + "id" : "1sxjupdc", + "document" : { + "debug" : { + "source" : { + "id" : "1sxjupdc", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "weuV0WsLiG" + "ontologyType" : "Work", + "value" : "weuV0WsLiG" }, - "version": 89, - "modifiedTime": "2025-04-27T22:28:23Z" + "version" : 89, + "modifiedTime" : "2025-04-27T22:28:23Z" }, - "mergedTime": "2025-04-27T22:28:23Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2025-04-27T22:28:23Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "1sxjupdc", - "title": "(a b c d e) h", - "alternativeTitles": [ + "display" : { + "id" : "1sxjupdc", + "title" : "(a b c d e) h", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "weuV0WsLiG", - "type": "Identifier" + "value" : "weuV0WsLiG", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "1sxjupdc", - "sourceIdentifier.value": "weuV0WsLiG", - "identifiers.value": [ + "id" : "1sxjupdc", + "sourceIdentifier.value" : "weuV0WsLiG", + "identifiers.value" : [ "weuV0WsLiG" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "(a b c d e) h" + "title" : "(a b c d e) h" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "weuV0WsLiG" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.title-query-syntax.json b/common/search/src/test/resources/test_documents/works.title-query-syntax.json index 64ab3924c..5cd3b49ef 100644 --- a/common/search/src/test/resources/test_documents/works.title-query-syntax.json +++ b/common/search/src/test/resources/test_documents/works.title-query-syntax.json @@ -1,182 +1,182 @@ { - "description": "a work whose title has lots of ES query syntax operators", - "createdAt": "2024-11-13T08:43:26.460971Z", - "id": "mdg1yvuv", - "document": { - "debug": { - "source": { - "id": "mdg1yvuv", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "a work whose title has lots of ES query syntax operators", + "createdAt" : "2024-11-25T15:15:12.314313Z", + "id" : "mdg1yvuv", + "document" : { + "debug" : { + "source" : { + "id" : "mdg1yvuv", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "9P6mnsoyfd" + "ontologyType" : "Work", + "value" : "9P6mnsoyfd" }, - "version": 52, - "modifiedTime": "1967-11-04T04:23:34Z" + "version" : 52, + "modifiedTime" : "1967-11-04T04:23:34Z" }, - "mergedTime": "1967-11-04T04:23:34Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1967-11-04T04:23:34Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "mdg1yvuv", - "title": "+a -title | with (all the simple) query~4 syntax operators in it*", - "alternativeTitles": [ + "display" : { + "id" : "mdg1yvuv", + "title" : "+a -title | with (all the simple) query~4 syntax operators in it*", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "9P6mnsoyfd", - "type": "Identifier" + "value" : "9P6mnsoyfd", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "mdg1yvuv", - "sourceIdentifier.value": "9P6mnsoyfd", - "identifiers.value": [ + "id" : "mdg1yvuv", + "sourceIdentifier.value" : "9P6mnsoyfd", + "identifiers.value" : [ "9P6mnsoyfd" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "+a -title | with (all the simple) query~4 syntax operators in it*" + "title" : "+a -title | with (all the simple) query~4 syntax operators in it*" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "9P6mnsoyfd" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.visible.0.json b/common/search/src/test/resources/test_documents/works.visible.0.json index e3f0d2ada..6282c76d9 100644 --- a/common/search/src/test/resources/test_documents/works.visible.0.json +++ b/common/search/src/test/resources/test_documents/works.visible.0.json @@ -1,182 +1,182 @@ { - "description": "an arbitrary list of visible works", - "createdAt": "2024-11-13T08:43:26.177685Z", - "id": "2twopft1", - "document": { - "debug": { - "source": { - "id": "2twopft1", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "an arbitrary list of visible works", + "createdAt" : "2024-11-25T15:15:12.033415Z", + "id" : "2twopft1", + "document" : { + "debug" : { + "source" : { + "id" : "2twopft1", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "Uaequ81tpB" + "ontologyType" : "Work", + "value" : "Uaequ81tpB" }, - "version": 59, - "modifiedTime": "1972-02-10T18:53:31Z" + "version" : 59, + "modifiedTime" : "1972-02-10T18:53:31Z" }, - "mergedTime": "1972-02-10T18:53:31Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1972-02-10T18:53:31Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "2twopft1", - "title": "title-vaMzxd8prf", - "alternativeTitles": [ + "display" : { + "id" : "2twopft1", + "title" : "title-vaMzxd8prf", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "Uaequ81tpB", - "type": "Identifier" + "value" : "Uaequ81tpB", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "2twopft1", - "sourceIdentifier.value": "Uaequ81tpB", - "identifiers.value": [ + "id" : "2twopft1", + "sourceIdentifier.value" : "Uaequ81tpB", + "identifiers.value" : [ "Uaequ81tpB" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-vaMzxd8prf" + "title" : "title-vaMzxd8prf" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "Uaequ81tpB" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.visible.1.json b/common/search/src/test/resources/test_documents/works.visible.1.json index bfeab1e7e..b710bbde6 100644 --- a/common/search/src/test/resources/test_documents/works.visible.1.json +++ b/common/search/src/test/resources/test_documents/works.visible.1.json @@ -1,182 +1,182 @@ { - "description": "an arbitrary list of visible works", - "createdAt": "2024-11-13T08:43:26.179486Z", - "id": "dph7sjip", - "document": { - "debug": { - "source": { - "id": "dph7sjip", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "an arbitrary list of visible works", + "createdAt" : "2024-11-25T15:15:12.035090Z", + "id" : "dph7sjip", + "document" : { + "debug" : { + "source" : { + "id" : "dph7sjip", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "WpBejTwv1N" + "ontologyType" : "Work", + "value" : "WpBejTwv1N" }, - "version": 66, - "modifiedTime": "1971-11-19T03:42:42Z" + "version" : 66, + "modifiedTime" : "1971-11-19T03:42:42Z" }, - "mergedTime": "1971-11-19T03:42:42Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1971-11-19T03:42:42Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "dph7sjip", - "title": "title-3hvGdgZfc8", - "alternativeTitles": [ + "display" : { + "id" : "dph7sjip", + "title" : "title-3hvGdgZfc8", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "WpBejTwv1N", - "type": "Identifier" + "value" : "WpBejTwv1N", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "dph7sjip", - "sourceIdentifier.value": "WpBejTwv1N", - "identifiers.value": [ + "id" : "dph7sjip", + "sourceIdentifier.value" : "WpBejTwv1N", + "identifiers.value" : [ "WpBejTwv1N" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-3hvGdgZfc8" + "title" : "title-3hvGdgZfc8" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "WpBejTwv1N" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.visible.2.json b/common/search/src/test/resources/test_documents/works.visible.2.json index e1c611772..ae927e38f 100644 --- a/common/search/src/test/resources/test_documents/works.visible.2.json +++ b/common/search/src/test/resources/test_documents/works.visible.2.json @@ -1,182 +1,182 @@ { - "description": "an arbitrary list of visible works", - "createdAt": "2024-11-13T08:43:26.180590Z", - "id": "fyqts0co", - "document": { - "debug": { - "source": { - "id": "fyqts0co", - "identifier": { - "identifierType": { - "id": "calm-record-id" + "description" : "an arbitrary list of visible works", + "createdAt" : "2024-11-25T15:15:12.036077Z", + "id" : "fyqts0co", + "document" : { + "debug" : { + "source" : { + "id" : "fyqts0co", + "identifier" : { + "identifierType" : { + "id" : "calm-record-id" }, - "ontologyType": "Work", - "value": "ZvWebpA5WH" + "ontologyType" : "Work", + "value" : "ZvWebpA5WH" }, - "version": 89, - "modifiedTime": "1979-01-28T05:43:24Z" + "version" : 89, + "modifiedTime" : "1979-01-28T05:43:24Z" }, - "mergedTime": "1979-01-28T05:43:24Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1979-01-28T05:43:24Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "fyqts0co", - "title": "title-XQqPyuxbr5", - "alternativeTitles": [ + "display" : { + "id" : "fyqts0co", + "title" : "title-XQqPyuxbr5", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "calm-record-id", - "label": "Calm RecordIdentifier", - "type": "IdentifierType" + "identifierType" : { + "id" : "calm-record-id", + "label" : "Calm RecordIdentifier", + "type" : "IdentifierType" }, - "value": "ZvWebpA5WH", - "type": "Identifier" + "value" : "ZvWebpA5WH", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "fyqts0co", - "sourceIdentifier.value": "ZvWebpA5WH", - "identifiers.value": [ + "id" : "fyqts0co", + "sourceIdentifier.value" : "ZvWebpA5WH", + "identifiers.value" : [ "ZvWebpA5WH" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-XQqPyuxbr5" + "title" : "title-XQqPyuxbr5" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "ZvWebpA5WH" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.visible.3.json b/common/search/src/test/resources/test_documents/works.visible.3.json index 31b99434a..8a3786892 100644 --- a/common/search/src/test/resources/test_documents/works.visible.3.json +++ b/common/search/src/test/resources/test_documents/works.visible.3.json @@ -1,182 +1,182 @@ { - "description": "an arbitrary list of visible works", - "createdAt": "2024-11-13T08:43:26.181791Z", - "id": "raob2ruv", - "document": { - "debug": { - "source": { - "id": "raob2ruv", - "identifier": { - "identifierType": { - "id": "sierra-system-number" + "description" : "an arbitrary list of visible works", + "createdAt" : "2024-11-25T15:15:12.037100Z", + "id" : "raob2ruv", + "document" : { + "debug" : { + "source" : { + "id" : "raob2ruv", + "identifier" : { + "identifierType" : { + "id" : "sierra-system-number" }, - "ontologyType": "Work", - "value": "wyJzS2SuiH" + "ontologyType" : "Work", + "value" : "wyJzS2SuiH" }, - "version": 69, - "modifiedTime": "1966-03-23T00:51:51Z" + "version" : 69, + "modifiedTime" : "1966-03-23T00:51:51Z" }, - "mergedTime": "1966-03-23T00:51:51Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "1966-03-23T00:51:51Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "raob2ruv", - "title": "title-bFbQPNB7Zu", - "alternativeTitles": [ + "display" : { + "id" : "raob2ruv", + "title" : "title-bFbQPNB7Zu", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "sierra-system-number", - "label": "Sierra system number", - "type": "IdentifierType" + "identifierType" : { + "id" : "sierra-system-number", + "label" : "Sierra system number", + "type" : "IdentifierType" }, - "value": "wyJzS2SuiH", - "type": "Identifier" + "value" : "wyJzS2SuiH", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "raob2ruv", - "sourceIdentifier.value": "wyJzS2SuiH", - "identifiers.value": [ + "id" : "raob2ruv", + "sourceIdentifier.value" : "wyJzS2SuiH", + "identifiers.value" : [ "wyJzS2SuiH" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-bFbQPNB7Zu" + "title" : "title-bFbQPNB7Zu" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "wyJzS2SuiH" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/common/search/src/test/resources/test_documents/works.visible.4.json b/common/search/src/test/resources/test_documents/works.visible.4.json index 8d0a269cc..79d1c4f5f 100644 --- a/common/search/src/test/resources/test_documents/works.visible.4.json +++ b/common/search/src/test/resources/test_documents/works.visible.4.json @@ -1,182 +1,182 @@ { - "description": "an arbitrary list of visible works", - "createdAt": "2024-11-13T08:43:26.182838Z", - "id": "vbi1ii19", - "document": { - "debug": { - "source": { - "id": "vbi1ii19", - "identifier": { - "identifierType": { - "id": "miro-image-number" + "description" : "an arbitrary list of visible works", + "createdAt" : "2024-11-25T15:15:12.038053Z", + "id" : "vbi1ii19", + "document" : { + "debug" : { + "source" : { + "id" : "vbi1ii19", + "identifier" : { + "identifierType" : { + "id" : "miro-image-number" }, - "ontologyType": "Work", - "value": "CzLNHBFHuR" + "ontologyType" : "Work", + "value" : "CzLNHBFHuR" }, - "version": 46, - "modifiedTime": "2024-12-13T21:31:42Z" + "version" : 46, + "modifiedTime" : "2024-12-13T21:31:42Z" }, - "mergedTime": "2024-12-13T21:31:42Z", - "indexedTime": "2001-01-01T01:01:01Z", - "redirectSources": [ + "mergedTime" : "2024-12-13T21:31:42Z", + "indexedTime" : "2001-01-01T01:01:01Z", + "redirectSources" : [ ], - "mergeCandidates": [ + "mergeCandidates" : [ ] }, - "display": { - "id": "vbi1ii19", - "title": "title-jGGR8UNWut", - "alternativeTitles": [ + "display" : { + "id" : "vbi1ii19", + "title" : "title-jGGR8UNWut", + "alternativeTitles" : [ ], - "contributors": [ + "contributors" : [ ], - "identifiers": [ + "identifiers" : [ { - "identifierType": { - "id": "miro-image-number", - "label": "Miro image number", - "type": "IdentifierType" + "identifierType" : { + "id" : "miro-image-number", + "label" : "Miro image number", + "type" : "IdentifierType" }, - "value": "CzLNHBFHuR", - "type": "Identifier" + "value" : "CzLNHBFHuR", + "type" : "Identifier" } ], - "subjects": [ + "subjects" : [ ], - "genres": [ + "genres" : [ ], - "items": [ + "items" : [ ], - "holdings": [ + "holdings" : [ ], - "availabilities": [ + "availabilities" : [ ], - "production": [ + "production" : [ ], - "languages": [ + "languages" : [ ], - "notes": [ + "notes" : [ ], - "formerFrequency": [ + "formerFrequency" : [ ], - "designation": [ + "designation" : [ ], - "images": [ + "images" : [ ], - "parts": [ + "parts" : [ ], - "partOf": [ + "partOf" : [ ], - "precededBy": [ + "precededBy" : [ ], - "succeededBy": [ + "succeededBy" : [ ], - "type": "Work" + "type" : "Work" }, - "query": { - "collectionPath.label": null, - "collectionPath.path": null, - "alternativeTitles": [ + "query" : { + "collectionPath.label" : null, + "collectionPath.path" : null, + "alternativeTitles" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "description": null, - "edition": null, - "genres.concepts.label": [ + "description" : null, + "edition" : null, + "genres.concepts.label" : [ ], - "id": "vbi1ii19", - "sourceIdentifier.value": "CzLNHBFHuR", - "identifiers.value": [ + "id" : "vbi1ii19", + "sourceIdentifier.value" : "CzLNHBFHuR", + "identifiers.value" : [ "CzLNHBFHuR" ], - "images.id": [ + "images.id" : [ ], - "images.identifiers.value": [ + "images.identifiers.value" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.shelfmark.value": [ + "items.shelfmark.value" : [ ], - "languages.label": [ + "languages.label" : [ ], - "lettering": null, - "notes.contents": [ + "lettering" : null, + "notes.contents" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "physicalDescription": null, - "production.label": [ + "physicalDescription" : null, + "production.label" : [ ], - "referenceNumber": null, - "subjects.concepts.label": [ + "referenceNumber" : null, + "subjects.concepts.label" : [ ], - "title": "title-jGGR8UNWut" + "title" : "title-jGGR8UNWut" }, - "aggregatableValues": { - "workType": [ + "aggregatableValues" : { + "workType" : [ ], - "genres.label": [ + "genres" : [ ], - "production.dates": [ + "production.dates" : [ ], - "subjects.label": [ + "subjects" : [ ], - "languages": [ + "languages" : [ ], - "contributors.agent.label": [ + "contributors.agent" : [ ], - "items.locations.license": [ + "items.locations.license" : [ ], - "availabilities": [ + "availabilities" : [ ] }, - "filterableValues": { - "format.id": null, - "workType": "Standard", - "production.dates.range.from": [ + "filterableValues" : { + "format.id" : null, + "workType" : "Standard", + "production.dates.range.from" : [ ], - "languages.id": [ + "languages.id" : [ ], - "genres.label": [ + "genres.label" : [ ], - "genres.concepts.id": [ + "genres.concepts.id" : [ ], - "genres.concepts.sourceIdentifier": [ + "genres.concepts.sourceIdentifier" : [ ], - "subjects.label": [ + "subjects.label" : [ ], - "subjects.concepts.id": [ + "subjects.concepts.id" : [ ], - "subjects.concepts.sourceIdentifier": [ + "subjects.concepts.sourceIdentifier" : [ ], - "contributors.agent.label": [ + "contributors.agent.label" : [ ], - "contributors.agent.id": [ + "contributors.agent.id" : [ ], - "contributors.agent.sourceIdentifier": [ + "contributors.agent.sourceIdentifier" : [ ], - "identifiers.value": [ + "identifiers.value" : [ "CzLNHBFHuR" ], - "items.locations.license.id": [ + "items.locations.license.id" : [ ], - "items.locations.accessConditions.status.id": [ + "items.locations.accessConditions.status.id" : [ ], - "items.id": [ + "items.id" : [ ], - "items.identifiers.value": [ + "items.identifiers.value" : [ ], - "items.locations.locationType.id": [ + "items.locations.locationType.id" : [ ], - "partOf.id": [ + "partOf.id" : [ ], - "partOf.title": [ + "partOf.title" : [ ], - "availabilities.id": [ + "availabilities.id" : [ ] }, - "type": "Visible" + "type" : "Visible" } -} +} \ No newline at end of file diff --git a/search/src/test/scala/weco/api/search/models/AggregationResultsTest.scala b/search/src/test/scala/weco/api/search/models/AggregationResultsTest.scala index 20f10ed15..8be06bb87 100644 --- a/search/src/test/scala/weco/api/search/models/AggregationResultsTest.scala +++ b/search/src/test/scala/weco/api/search/models/AggregationResultsTest.scala @@ -165,6 +165,10 @@ class AggregationResultsTest extends AnyFunSpec with Matchers { AggregationBucket( AggregationBucketData("123", "absinthe"), count = 393145 + ), + AggregationBucket( + AggregationBucketData("456", "apple"), + count = 34 ) ) )