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

Search portlet's spellcheck and suggestion feature has a few bugs

    Details

      Description

      1) Solr only: Spellcheck throws ClassCastException

      1. Configure portal to use solr
      2. Go to control panel > server administration > resources >> click "Reindex all spell check indexes"
      3. Search for indexef in embedded search portlet
        Expected Result: No errors would occur
        Actual Result: "Portlet is temporarily unavailable" error and ClassCastException in logs

      2) Solr only: Related queries suggestion should be given for multiple words

      1. Configure portal to use solr
      2. Create a web content article with the title indexed this phrase
      3. Go to embedded search portlet config >
        Uncheck "Display Did you mean"
        Check "Display Related Queries"  (make sure threshold = 5)
        Check "Add New Related Queries" (make sure threshold = 1)
      4. Search for indexed this phrase to index the successful result
      5. Go back to config and uncheck "Add New Related Queries"
      6. Search for indexef this phrasd
        Expected Result: Related Queries suggestion should be displayed
        Actual Result: Related Queries suggestion is not displayed

      3) Search portlet should spellcheck multiple words

      1. Go to control panel > server administration > resources >> click "Reindex all spell check indexes"
      2. Search for indexef in embedded search portlet > notice spellcheck suggestion (a suggestion is given not because the word is misspelled but because the number of results is below the threshold)
      3. Search for indexef liferay in embedded search portlet
        Expected Result: Spellcheck suggestion should be displayed
        Actual Result: Spellcheck suggestion is not displayed

      4) Elasticsearch only : Search portlet should spellcheck words that are quoted

      1. Go to control panel > server administration > resources >> click "Reindex all spell check indexes"
      2. Search for indexef in embedded search portlet > notice the spellcheck suggestion
      3. Search for "indexef" in embedded search portlet
        Expected Result: Spellcheck suggestion should be displayed
        Actual Result: Spellcheck suggestion is not displayed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                bryan.engler Bryan Engler
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 47 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP42
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master