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

Solr plugin not generating ngrams for spell checker: "Did you mean" feature is not working

    Details

      Description

      1. Integrate Liferay with Solr 5: https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/using-solr (Reproduced with Liferay Solr 5 Search Engine 1.0.0)
      2. Reindex Indexes
      3. Reindex spell check indexes
      4. Wait until messages like
        16:44:52,162 INFO  [liferay/search_writer/SYSTEM_ENGINE-3][BaseSpellCheckIndexWriter:291] Finished indexing dictionary for com/liferay/portal/search/dependencies/spellchecker/en_US.txt
        

        appear in the log

      5. Enable "Did you mean..." feature in Search Portlet configuration (set threshold to 1 for simplicity)
      6. Search for "herc"

      Expected: "Did you mean: herb" hint displayed
      Actual: No hints displayed.


      QA & Solution Notes
      As the fix includes changes to the "portal-search-solr" app too, build it from source to test the solution in case of branch versions:

      1. Build portal (required due to the portal-kernel changes)
      2. Go to modules/app/portal-search-solr
      3. Run ./../../../../gradlew deploy

      In case of Marketplace versions, the fix will be included in a future release of Liferay (CE) Solr 5 Search Engine (>1.0.0!).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 46 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP28
                  7.0.X EE
                  7.0.4 CE GA5
                  Master