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

Adding a boost value to Custom Filter widget doesn't affect the search results

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce

      1. Download the Boston dataset here and add it to your deploy folder
      2. Add the Geolocation Bulk Load widget to the page and generate 1000 documents
      3. Re-index all search indexes
      4. Navigate to the search page
      5. Allow empty searches in the Search Options Widget
      6. Change the search scope to Everything
      7. Perform an empty search
      8. Add the Custom Filter widget with the following and click Apply:
        Filter Field: title_en_US
        Filter Value: street
        Filter Query Type: Query String
        Occur: Should 
        
      9. Add the Custom Filter widget with the following and click Apply:
        Filter Field: content_en_US
        Filter Value: roxbury
        Filter Query Type: Query String
        Occur: Should 
        
      10. Edit the previously created widget in Step 9 and change the Boost value to 3
      11. Click Apply

      Expected Result
      Expected search to return web content with titles containing "street" or with content containing "roxbury". Expected results containing "roxbury" to be listed before other results. 

      Actual Result
      Results appear in the following order, which is the same order when filtering without boost:

      1. Web content with titles containing "street" and content containing "roxbury"
      2. Web content with content containing multiple instances of "roxbury"
      3. Web content with titles containing "street"
      4. Web content with content containing "roxbury"

      Reproduced on:

      Tomcat 9.0.17 + MySQL 5.7
      Portal master GIT ID: b4c0890a995af2912793ee3566ba58125d309ba0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                timothy.pak Timothy Pak
                Participants of an Issue:
                Recent user:
                Timothy Pak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

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

                  Packages

                  Version Package