Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Results vary for hyphenated search terms

    • Article Type: General
    • Product: Primo
    • Product Version: 4.5.1

    Problem Symptoms:
    Searches for hyphenated terms produce different results if there are spaces between the words and the hyphens - as opposed to when there aren't any spaces.

    For example:
    "Daniel Day-Lewis" will produce less results than "Daniel Day - Lewis".

    This happens when "Remove Hyphens" is checked in the Back Office under Search Engine Configuration.

    Cause:
    During the search, if there are spaces between the words and hyphens, like in "Daniel Day - Lewis", the hyphens are normalized out.
    However, if there are no spaces -- the hyphen is not normalized out. This results in two different queries.

    In the logs you will see the following:
    2014-07-18 18:56:38,034 DEBUG [t-pool-223-thread-1] [c-BooleanOperator] - The query after operator normalization: daniel day-lewis > after searching daniel day-lewis
    2014-07-18 18:56:44,893 DEBUG [t-pool-224-thread-1] [c-BooleanOperator] - The query after operator normalization: daniel day lewis > after searching daniel day - lewis

    Resolution:
    No resolution yet - issue under Development.

    Category: Front End - Primo

    Subject: Search


    • Article last edited: 8/22/2014
    //Feedback