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

Unexpected search results when searching with synonyms that contain quotes

    Details

      Description

      Steps to reproduce:

      1. Add a web content article titled "stable" (include the quote characters in the title)
      2. Add a web content article titled upstream
      3. Add a web content article titled git hash
      4. In the home page embedded search bar, search for "stable" (quotes included)

        Observed behavior: The "stable" web content article appears in the search results

      5. In the Control Panel > Configuration > Search Tuning portlet, add the following synonym set: "stable", upstream
      6. Back on the home page, search for "stable"

        Observed behavior: The "stable" and upstream web content articles appear in the search results

      7. Edit the synonym set added earlier and add the synonym git hash
      8. Back on the home page, search for "stable"

        Expected Result: The web content articles "stable", upstream, and git hash appear in the search results
        Actual Result: Only git hash appears in the search results

      9. Edit the same synonym set, delete synonym git hash, and add the synonym git has
      10. Back on the home page, search for "stable"

        Expected Result: The web content articles "stable", upstream, and git hash appear in the search results
        Actual Result: No search results appear

      11. Search for git has

        Observed behavior: The web content article "stable", upstream, and git hash appear in the search results

      Note: I couldn't find a consistent pattern of behavior that would lead to the odd search results. I believe it has something to do with the combination of both the quoted synonym and a synonym that has a space in it. Using characters like a dash "-" or semicolon ";" instead of a space seems to result in the same behavior.

      Reproduced on:
      Portal master-private Git SHA: 42f0f00071090eef11549005abdeb1de66de4909
      Portal 7.2.x-private Git SHA: aa5d8170323eb111458bc1dec8c805101a43e550

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  Master