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

Expose Elasticsearch api to add a preference to SearchRequestBuilder object

    Details

      Description

      See LOOP-5143 for context, and the commits for the Elasticsearch web plugin on 6.2. While upgrading to DXP, we noticed that the Elasticsearch implementation does not expose the api #addPreference on the SearchRequestBuilder object.

      We need this to avoid an issue where Elasticsearch alternates between primary and replica shards for each request. With pagination, this can prove problematic as the shards give different scores. By specifying some id as a "preference," the same shard will be used per user/session.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              timothy.bell Timothy Bell
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 18 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.0 M2
                  7.1.X
                  Master