Uploaded image for project: 'mod-search'
  1. mod-search
  2. MSEARCH-410

Unhandled exception while searching by identifiers.identifierTypeId

    XMLWordPrintable

Details

    • Spitfire Sprint 147
    • 1
    • Spitfire
    • Nolana (R3 2022)
    • Incomplete/missing requirements

    Description

      Steps to Reproduce:
      Send request /search/instances?query= query: (identifiers.identifierTypeId="c858e4f2-2b6b-4385-842b-60732ee14abb" and identifiers.value = "84641839")

      Expected Results:

      {
      	"totalRecords": 1,
      	"instances": [
      		{
      			"id": "69640328-788e-43fc-9c3c-af39e243f3b7",
      			"hrid": "inst000000000001",
      			"source": "FOLIO",
      			"statisticalCodeIds": [],
      			"title": "ABA Journal",
      			"series": [],
      			"alternativeTitles": [],
      			"identifiers": [
      				{
      					"value": "0747-0088",
      					"identifierTypeId": "913300b2-03ed-469a-8179-c1092c991227"
      				},
      				{
      					"value": "84641839",
      					"identifierTypeId": "c858e4f2-2b6b-4385-842b-60732ee14abb"
      				}
      			],
      			"contributors": [],
      			"subjects": [],
      			"instanceTypeId": "6312d172-f0cf-40f6-b27d-9fa8feaf332f",
      			"instanceFormatIds": [],
      			"languages": [],
      			"metadata": {
      				"createdDate": "2022-08-12T01:51:47.363+00:00",
      				"updatedDate": "2022-08-12T01:51:47.363+00:00"
      			},
      			"administrativeNotes": [],
      			"natureOfContentTermIds": [
      				"0abeee3d-8ad2-4b04-92ff-221b4fce1075"
      			],
      			"publication": [
      				{
      					"publisher": "American Bar Association",
      					"dateOfPublication": "1915-1983"
      				}
      			],
      			"staffSuppress": false,
      			"discoverySuppress": false,
      			"isBoundWith": false,
      			"classifications": [],
      			"electronicAccess": [],
      			"notes": [],
      			"items": [
      				{
      					"id": "645549b1-2a73-4251-b8bb-39598f773a93",
      					"hrid": "item000000000004",
      					"formerIds": [],
      					"barcode": "A14813848587",
      					"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"status": {
      						"name": "Available"
      					},
      					"materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
      					"discoverySuppress": false,
      					"effectiveCallNumberComponents": {
      						"callNumber": "K1 .M44"
      					},
      					"effectiveShelvingOrder": "K 11 M44 V 271 NO 16 12 41985 JULY DEC",
      					"electronicAccess": [],
      					"administrativeNotes": [],
      					"notes": [],
      					"statisticalCodeIds": [],
      					"circulationNotes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.694+00:00",
      						"updatedDate": "2022-08-12T01:51:47.694+00:00"
      					}
      				},
      				{
      					"id": "9428231b-dd31-4f70-8406-fe22fbdeabc2",
      					"hrid": "item000000000005",
      					"formerIds": [],
      					"barcode": "A14837334314",
      					"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"status": {
      						"name": "Available"
      					},
      					"materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
      					"discoverySuppress": false,
      					"effectiveCallNumberComponents": {
      						"callNumber": "K1 .M44"
      					},
      					"effectiveShelvingOrder": "K 11 M44 V 270 NO 17 212 41984 JULY DEC",
      					"electronicAccess": [],
      					"administrativeNotes": [],
      					"notes": [],
      					"statisticalCodeIds": [],
      					"circulationNotes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.737+00:00",
      						"updatedDate": "2022-08-12T01:51:47.737+00:00"
      					}
      				},
      				{
      					"id": "9ea1fd0b-0259-4edb-95a3-eb2f9a063e20",
      					"hrid": "item000000000006",
      					"formerIds": [
      						"3806267"
      					],
      					"barcode": "A14837334306",
      					"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"status": {
      						"name": "Available"
      					},
      					"materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
      					"discoverySuppress": false,
      					"effectiveCallNumberComponents": {
      						"callNumber": "K1 .M44"
      					},
      					"effectiveShelvingOrder": "K 11 M44 V 270 NO 11 16 41984 JAN JUNE 11",
      					"electronicAccess": [],
      					"administrativeNotes": [],
      					"notes": [],
      					"statisticalCodeIds": [
      						"775b6ad4-9c35-4d29-bf78-8775a9b42226"
      					],
      					"circulationNotes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.766+00:00",
      						"updatedDate": "2022-08-12T01:51:47.766+00:00"
      					}
      				},
      				{
      					"id": "bc90a3c9-26c9-4519-96bc-d9d44995afef",
      					"hrid": "item000000000001",
      					"formerIds": [],
      					"barcode": "A14811392695",
      					"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"status": {
      						"name": "Available"
      					},
      					"materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
      					"discoverySuppress": false,
      					"effectiveCallNumberComponents": {
      						"callNumber": "K1 .M44"
      					},
      					"effectiveShelvingOrder": "K 11 M44 V 273 NO 11 16 41987 JAN JUNE",
      					"electronicAccess": [],
      					"administrativeNotes": [
      						"an administrative note"
      					],
      					"notes": [],
      					"statisticalCodeIds": [],
      					"circulationNotes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.787+00:00",
      						"updatedDate": "2022-08-12T01:51:47.787+00:00"
      					}
      				},
      				{
      					"id": "eedd13c4-7d40-4b1e-8f77-b0b9d19a896b",
      					"hrid": "item000000000002",
      					"formerIds": [],
      					"barcode": "A1429864347",
      					"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"status": {
      						"name": "Available"
      					},
      					"materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
      					"discoverySuppress": false,
      					"effectiveCallNumberComponents": {
      						"callNumber": "K1 .M44"
      					},
      					"effectiveShelvingOrder": "K 11 M44 V 272 NO 16 17 210 212 41986 JULY AUG OCT DEC",
      					"electronicAccess": [],
      					"administrativeNotes": [],
      					"notes": [],
      					"statisticalCodeIds": [],
      					"circulationNotes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.769+00:00",
      						"updatedDate": "2022-08-12T01:51:47.769+00:00"
      					}
      				},
      				{
      					"id": "f8b6d973-60d4-41ce-a57b-a3884471a6d6",
      					"hrid": "item000000000003",
      					"formerIds": [],
      					"barcode": "A14811392645",
      					"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"status": {
      						"name": "Available"
      					},
      					"materialTypeId": "d9acad2f-2aac-4b48-9097-e6ab85906b25",
      					"discoverySuppress": false,
      					"effectiveCallNumberComponents": {
      						"callNumber": "K1 .M44"
      					},
      					"effectiveShelvingOrder": "K 11 M44 V 272 NO 11 16 41986 JAN JUNE",
      					"electronicAccess": [],
      					"administrativeNotes": [],
      					"notes": [],
      					"statisticalCodeIds": [],
      					"circulationNotes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.767+00:00",
      						"updatedDate": "2022-08-12T01:51:47.767+00:00"
      					}
      				}
      			],
      			"holdings": [
      				{
      					"id": "c4a15834-0184-4a6f-9c0c-0ca5bad8286d",
      					"permanentLocationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
      					"discoverySuppress": false,
      					"hrid": "hold000000000001",
      					"formerIds": [],
      					"statisticalCodeIds": [],
      					"electronicAccess": [
      						{
      							"uri": "https://search.proquest.com/publication/1396348",
      							"publicNote": "via ProQuest, the last 12 months are not available due to an embargo"
      						},
      						{
      							"uri": "https://www.emeraldinsight.com/loi/jepp",
      							"publicNote": "via Emerald"
      						},
      						{
      							"uri": "https://www.emeraldinsight.com/journal/jepp",
      							"publicNote": "via Emerald, national license"
      						}
      					],
      					"administrativeNotes": [
      						"cataloging note"
      					],
      					"notes": [],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.602+00:00",
      						"updatedDate": "2022-08-12T01:51:47.602+00:00"
      					}
      				},
      				{
      					"id": "0c45bb50-7c9b-48b0-86eb-178a494e25fe",
      					"permanentLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      					"discoverySuppress": false,
      					"hrid": "hold000000000002",
      					"formerIds": [
      						"ABW4508",
      						"442882"
      					],
      					"statisticalCodeIds": [
      						"775b6ad4-9c35-4d29-bf78-8775a9b42226"
      					],
      					"electronicAccess": [
      						{
      							"uri": "http://www.ebscohost.com"
      						},
      						{
      							"uri": "http://www.jstor.com",
      							"publicNote": "Most recent 4 years not available."
      						}
      					],
      					"administrativeNotes": [],
      					"notes": [
      						{
      							"note": " Subscription cancelled per Evans Current Periodicals Selector Review. acq",
      							"staffOnly": true
      						},
      						{
      							"note": "Asked Ebsco to check with publisher and ask what years were paid since we are missing (2001:Oct.-Dec.), (All of 2002), & (2003:Jan.-Feb.). 20030305. evaldez",
      							"staffOnly": false
      						},
      						{
      							"note": "Backorder:v.87(2001:Oct.-Dec)-v.88(2002). eluza",
      							"staffOnly": false
      						},
      						{
      							"note": "WITH 2010 TREAT ISSUE S AS DISCARDS. dgill",
      							"staffOnly": false
      						}
      					],
      					"metadata": {
      						"createdDate": "2022-08-12T01:51:47.629+00:00",
      						"updatedDate": "2022-08-12T01:51:47.629+00:00"
      					}
      				}
      			]
      		}
      	]
      }
      

      Actual Results:

      {
      	"errors": [
      		{
      			"message": "OpenSearch exception [type=search_phase_execution_exception, reason=all shards failed]",
      			"type": "OpenSearchStatusException",
      			"code": "elasticsearch_error"
      		}
      	],
      	"total_records": 1
      }
      

      Additional Information:
      Searching by identifers.value works as expected. The issue is reproducible in Lotus and Morning glory bugfest environments. Also in both snapshot environements.

      TestRail: Results

        Attachments

          1. MSEARCH-410_question.png
            MSEARCH-410_question.png
            140 kB
          2. MSEARCH-410_ss_01.png
            MSEARCH-410_ss_01.png
            235 kB
          3. MSEARCH-410_ss_02.png
            MSEARCH-410_ss_02.png
            235 kB
          4. screenshot-1.png
            screenshot-1.png
            237 kB

          Issue Links

            Activity

              People

                Shans Shans Kaluhin
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases