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

Inventory Elastic Search (Morning Glory). Keyword search throw unexpected results when the search only contains numbers and dashes.

    XMLWordPrintable

Details

    • Spitfire Sprint 149
    • 5
    • Spitfire
    • Nolana (R3 2022)
    • Conduct Identifier (all) search
    • !!!ALL!!!
    • Implementation coding issue

    Description

      Overview: It has been verified that Keyword search when searching on ISSN in Lotus HF2 behaves normal, but apparently something has changed when developing MG.

      Precondition:
      Start enter an instance record with title: Test ISSN and a contributor with the personal name: Doe, John, 0747-0850. The 0747-0850 is a fake born and death data. This record do not have a resource identifier of type ISSN.

      Steps to Reproduce:

      1. Log into FOLIO Snapshot as user diku_admin
      2. Go to Inventory, select any of the segments (instance, holdings, item)
      3. In the Keyword search box, search for: 0747-0088

      Expected Results:
      I get one record: ABA Journal.

      Actual Results:
      I get two records: ABA Journal and Test ISSN. In the newly created record Test ISSN, here the personal name is: Doe, John, 0747-0850 - and this should most definitely not be found when searching 0747-0088.

      Additional Information:
      The expected behavior on ISSN search when using keyword search is:
      In the Lotus environment then a search for keyword = 0747-0088 finds only that one instance, where 0747-0088 is included as identifier - https://folio-lotus.dev.folio.org/inventory/view/69640328-788e-43fc-9c3c-af39e243f3b7?query=0747-0088&sort=title
      That is correct!

      A search using keyword = 0747 finds 0 instances, while this is an exact value which is not present as a title, contributor name, or any identifier in Lotus - https://folio-lotus.dev.folio.org/inventory?query=0747&sort=title
      That is also correct and behave as expected!

      If I add to the FOLIO Lotus environment an instance as the described Test ISSN title with a contributor with the personal name Doe, John, 0747-0850, then I don't get this record as a hit, when using Keyword search, searching 0747-0088.
      Again this is correct behavior.

      KG NOTES for viacheslav_kolesnyk 

      • It seems like the issue is with Keyword - Identifier searching, in particular ISXN searching. 
        • Works as expected: If you conduct a Keyword search - an ISXN without spaces: 1302900544 then you get the expected results (5-6 instances about Black Panther comic book)  – the ISXN is under the Identifiers accordion.
          • It works as expected when you choose the search option = Identifier (all) 
        • Works as expected: If you conduct a Keyword search - an ISXN with spaces 130 29 06 496 then you get the expected results (5-6 instances about Black Panther comic book) – the ISXN is under the Identifiers accordion.
          • It works as expected when you choose the search option = Identifier (all) 
        • Problem WE NEED to Fix: If you conduct a Keyword search - an ISXN with dashes 978-1302-901-912 then it seems like mod-search interprets the search as a find any across keyword searched fields when it should only return instances that contain 978-1302-901-912 under Identifiers accordion. It should also return at least one Black panther comic book result. 
          • It works as expected when you choose the search option = Identifier (all)  
        • Works as expected: This only seems an issue when searching just numbers with dashes.  If I conduct a keyword search for The Paul McCartney catalog, 1967-2019 then I get expected results https://bugfest-mg.int.aws.folio.org/inventory/view/1b3b1dd6-f0d0-4604-8660-5615954d1a02?query=The%20Paul%20McCartney%20catalog%2C%201967-2019&segment=instances&sort=title&xidtype=6f171ee7-7a0a-4dd4-8959-bd67ec07cc88 
            • Title contains 1967-2019
            •  It works as expected when you choose the search option = Title (all)
        • Works as expected: If I conduct a keyword search for Chin, Staceyann 1972- then I get the expected results https://bugfest-mg.int.aws.folio.org/inventory?query=Chin%2C%20Staceyann%201972-&segment=instances&sort=title&xidtype=6f171ee7-7a0a-4dd4-8959-bd67ec07cc88
          • Chin, Staceyann 1972- is  a contributor 
          • Problem WE NEED to Fix: It DOES NOT work as expected when you choose the search option = Contributor UIIN-2191

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                viacheslav_kolesnyk Viacheslav Kolesnyk
                charlotte Charlotte Whitt
                Charlotte Whitt Charlotte Whitt
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases