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

[Test] Functional Test: Boost with Elasticsearch Function Score Query

    Details

    • Type: Testing
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Search Infrastructure
    • Labels:
      None

      Description

      1. Import data using the Geolocation Bulk Loader
        1. Configure System Settings > Search Experiences > IPStack Data Provider
          1. Enable Feature
          2. API Key: Ask in Slack channel
          3. Test IP address: http://localhost:8080/
        2. Add the Geolocation Bulk Loader widget to the home page and import data
      2. Create a New Blueprint using the option "Custom Clauses" (don't include baseline fragments"
        1. Name: "The Closer The Better"
        2. Add fragment "Paste any Elasticsearch Query"
        3. Enter the JSON of an Elasticsearch Wrapper Query
          {
          	"function_score": {
          		"gauss": {
          			"expando__keyword__custom_fields__location_geolocation": {
          				"origin": {
          					"lat": "36.157897",
          					"lon": "-86.783853"
          				},
          				"scale": "1000km",
          				"decay": 0.3
          			}
          		},
          		"boost": 100
          	}
          }
          
      3. Add Blueprints options widget to the Search Page
      4. Configure the ID for "The Closer The Better"
      5. Search for "cafe"
      6. Assert that the Nashville cafes score higher than the ones from Los Angeles

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timothy.pak Timothy Pak
              Reporter:
              brooke.dalton Brooke Dalton
              Recent user:
              Timothy Pak
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package