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

Search's spell check suggestions ("Did you mean...?") do not work on startup

    Details

    • Fix Priority:
      3

      Description

      Deployment guide says that both "Search indexes" and "Spell Check indexes" must be reindexed when switching to REMOTE operation mode

      Description

      The 'Did you mean' spell check feature on the search portlet does not work by default when starting up a vanilla Liferay instance. This is due to the fact that the spell check dictionary is not indexed on server startup. Although this can be solved by going to Control Panel > Configuration > Server Administration > Reindex all spell check indexes, basic search spell check should be enabled by default, without this extra step.

      Steps to reproduce

      1) Check the default page's search portlet configuration and ensure "Display 'Did you mean:...'" is checked, with Threshold for Displaying "Did you mean: ..." set to a large enough positive value (default to 50).
      2) Search "happie" and "jumpin" one after the other.

      Results of Testing

      Expected Result: "happie" returns "Did you mean: happier," "jumpin" returns "Did you mean: jumping."
      Actual Results: no spelling suggestions are returned.

      To confirm how spell check should work, go to Control Panel > Configuration > Server Administration > Reindex all spell check indexes, and after that, you should see the expected results for those search queries.

      Errors/Logs

      No errors

      Master

      Reproduced
      f08886d834fd62d6422349a116834e6eef7a6708

      Branch

      Reproduced
      ad601082f5700519597180caf94708619ecb17a3

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  12 weeks ago

                  Packages

                  Version Package