Problem/Motivation

When user clicks on the "Preview" button, in certain cases the preview request is executed faster than the indexing action on Elasticsearch's part.

Proposed resolution

The proposed solution is to give Elasticsearch some time (in seconds) to execute the index query before redirecting the user to the preview URL.

CommentFileSizeAuthor
#2 refresh-index-3479405-2.diff3.34 KBmaijs

Comments

maijs created an issue. See original summary.

maijs’s picture

Status: Active » Needs review
StatusFileSize
new3.34 KB

The attached patch adds the "refresh => wait_for" parameter to the preview document index query to immediately refresh the index after the indexing.

artis.bajars’s picture

Status: Needs review » Reviewed & tested by the community

Tested and confirmed working. The index is now always refreshed before querying which prevents the issue.

  • maijs committed d48c1ddf on 8.x-7.x
    Issue #3479405 by maijs, artis.bajars: Give time to Elasticsearch to...
maijs’s picture

Status: Reviewed & tested by the community » Fixed
maijs’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.