Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2803

Manually entered fielded search queries not working in discovery

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.4
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      We have noticed that fielded searches, when entered manually on the discovery pages don't work in DSpace 5.3. By "don't work", I mean, they are acting more like fulltext queries.

      For example, if I go to demo dspace and search for title:test, it will return items whose titles do not contain the word test, but whose other fields do.

      This appears to be occurring due to this fix which was part of the overall set of changes intended to address DS-2602 and DS-2461:

      https://github.com/DSpace/DSpace/commit/b04b3f867d875c4983f328e3d8d9c98b7b42442b#diff-fd8ee17cc766f918b2dbaa4a758aed43R730

      If this line is commented out, fielded searches begin working again. However, this might also re-introduce the bugs it was intended to fix. I'm not sure at this point. Perhaps a "smarter" escape is needed here, which ignores colons?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              schweer Andrea Schweer
              Reporter:
              cwilper Chris Wilper
              Reviewer:
              Tim Donohue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: