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

Search using quotes is not working properly

    Details

      Description

      7.0.x and master works fine: quote logic was rewritten, see LPS-56971 and other related LPS, but there are some related issues with tags, see: LPS-59837


      Steps to reproduce with Lucene

      1. Create four blog entries and add to it some tags:
        • title: aaaaaa tag: 'one'
        • title: bbbbbb tag: 'tag'
        • title: ccccccc tag: 'one tag' (with space)
        • title: dddddd tag: 'one tags' (with space)
      2. Open control panel search => blogs and execute following searchs
      3. Keyword: "one tag" (with quotes)
        • Wrong behavior: Both ccccccc and dddddd are found
        • Expected behavior: Only ccccccc is found
      4. Keyword: "tag" (with quotes)
        • Wrong behavior: bbbbbb, ccccccc and dddddd are found
        • Expected behavior: Both bbbbbb and ccccccc are found

      Steps to reproduce with Solr

      1. Configure index.portal.field.analyzer.enabled=false in portal-ext.properties (more info see LPS-67124)
      2. Configure Solr 4 plugin version 2.0.4 from marketplace or Solr plugin from ee-6.2.x
      3. Create four blog entries and add to it some tags:
        • title: aaaaaa tag: 'one'
        • title: bbbbbb tag: 'tag'
        • title: ccccccc tag: 'one tag' (with space)
        • title: dddddd tag: 'one tags' (with space)
      4. Open control panel search => blogs and execute following searchs
      5. Keyword: "one tag" (with quotes)
        • Wrong behavior (Solr plugin version 2.0.4): aaaaaa, ccccccc and dddddd are found
        • Wrong behavior (Solr plugin ee-6.2.x): Only aaaaaa is found
        • Expected behavior: Only ccccccc is found
      6. Keyword: "tag" (with quotes)
        • Wrong behavior (Solr plugin version 2.0.4): bbbbbb, ccccccc and dddddd are found
        • Wrong behavior (Solr plugin ee-6.2.x): Only bbbbbb is found
        • Expected behavior: Both bbbbbb and ccccccc are found
      7. Keyword: "one tag" tags (with quotes)
        • Wrong behavior (Solr plugin version 2.0.4): aaaaaa, ccccccc and dddddd are found
        • Wrong behavior (Solr plugin ee-6.2.x): Only aaaaaa is found
        • Expected behavior: Both ccccccc and dddddd are found

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  2 years, 35 weeks ago

                  Packages

                  Version Package