Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-134909

Search Suggestions widget only shows the problematic string rather than the full phrase with the suggested string

    Details

      Description

      Issue
      Search Suggestions widget only shows the perceived string that is problematic

      Because it only shows the perceived string that is problematic, it will bring up all of the search results that contain that string because of the way that the updated query is formatted (e.g. http://localhost:8080/web/guest/search?q=leav)

      Search suggestion industry standards will show the full query including the correction and create a link that shows the updated search with the suggested correction (e.g. http://localhost:8080/web/guest/search?q=cash+out+leav)

      Steps to Reproduce

      1. Create a Basic Web Content with title: Cash out leave
      2. Publish
      3. Reindex all search indexes (Control Panel > Search > Reindex all search indexes)
      4. Reindex all spell check indexes (Control Panel > Search > Reindex all spell check indexes)
      5. Open the search page: http://localhost:8080/web/guest/search
      6. Add the Suggestions portlet to the page
      7. Configure the portlet
      8. Enable "Display "Did you mean: ..." if the number of search results does not meet the threshold."
      9. Save
      10. Do a search: Cash out laeve
      11. Look at the suggestion portlet and mouse over the link.

      Expected Behavior
      The suggestion is "Cash out leav" allowing the user to search again with the updated query: http://localhost:8080/web/guest/search?q=cash+out+leav.

      Also, "laeve" being suggested as "leav" seems a bit odd as well, since we should be expecting the closest approximation of "leave"

      Actual Behavior
      The suggestion is "leav", not "cash out leav". The "leav" portion links to http://localhost:8080/web/guest/search?q=leav.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.lee Brian Lee
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Joshua Cords
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 weeks, 6 days ago
                Development End Date:
                Development Start Date:

                  Packages

                  Version Package
                  7.3.X
                  7.4.2 CE GA3 DXP 7,4
                  Master