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

Search result display extra spaces as   for Blogs and Web Content

    Details

      Description

      When you put multiple spaces in a row in either Blogs or Web Content and search for it in the Search portlet, the preview will encode all spaces except the last space into  
      This happens in both default Lucene and in Solr.
      

      Steps to Reproduce
      1. Add a Blog, and put something like

      Blog5spaces     spaces
      

      2. Add a Web Content and put something like

      WC5spaces     spaces
      

      The point in both steps to have more than one subsequent space.
      3. Add the Search portlet to any page
      4. Search for your blog and web content.

      You'll see that the extra spaces are converted to  
      See my attached screenshot. It seems that Messageboards and Wiki's are not affected by this issue.
      Though if you click into the content, you'll see that the actual content is unchanged; it's just the search results.
      

      Errors
      none

      Testing
      Reproducible in 6.1.x dcaccf8e70d3fb9b7cb1ab49bbd329c151b48012
      Not Reproducible in 6.2 EE
      Not Reproducible in Master ae8680fb285afa5814a81638250d4ffb902dd686

      In 6.2 and Master, I've found that the search results simply strip away the extra spaces, so it only appears that there is one space even if you put five spaces.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                xinsui.zhao Xinsui Zhao (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 28 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.X EE