Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3359

SearchInputParsingUtils sanitize should replace special characters with spaces, not remove them

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None

    Description

      SearchInputParsingUtils removes some special characters to sanitize the query.
      Most special characters are word boundaries, by just removing these the information on word boundary is lost, creating unwanted concatenated words.
      Example Bagels&Beans -> BagelsBeans
      When replacing with a space query will conserve the information that query has two words: Bagels Beans
      Suggestion to make a new method so original behavior is not changed

      Reference
      http://unicode.org/reports/tr29/#Word_Boundaries

      Attachments

        Activity

          People

            Unassigned Unassigned
            abanck Arent-Jan Banck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: