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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | refresh-index-3479405-2.diff | 3.34 KB | maijs |
Comments
Comment #2
maijs commentedThe attached patch adds the "refresh => wait_for" parameter to the preview document index query to immediately refresh the index after the indexing.
Comment #3
artis.bajars commentedTested and confirmed working. The index is now always refreshed before querying which prevents the issue.
Comment #5
maijs commentedComment #6
maijs commented