You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Indexing the site for the very first time before sending the mapping may lead to an error
Example: 514 (Post): [illegal_argument_exception] mapper [meta._regular_price.double] cannot be changed from type [long] to [float]
Steps to Reproduce
Install ElasticPress for the first time
Add the details in the settings
Skip the Setup
Go to the sync page
Click Sync Now from the top box
Expected behavior
Any sync process should check if the mapping is already sent or not before indexing the content
Screenshots
Additional context
We can either remove the first sync box during the setup or can send mappings along with it.
The text was updated successfully, but these errors were encountered:
Normally during install the user will eventually be redirected to the sync page with the ?do_sync parameter so that a delete and sync is started automatically. However if install is skipped when the user navigates to the Sync page they will see a regular Sync and a Delete & Sync option. To avoid errors the first sync should be a delete and sync so that mappings are sent to Elasticsearch, but there's nothing stopping a user attempting a regular sync without sending mappings. This was not addressed with the Sync page JS refactor.
If mappings have not been sent, or an initial sync was not performed, the Sync page should be updated to only show a single option for syncing which will send mapping, and ideally have a message tailored towards an initial sync ("delete and sync" could be confusing if there's nothing to delete).
Describe the bug
Indexing the site for the very first time before sending the mapping may lead to an error
Example:
514 (Post): [illegal_argument_exception] mapper [meta._regular_price.double] cannot be changed from type [long] to [float]
Steps to Reproduce
Expected behavior
Any sync process should check if the mapping is already sent or not before indexing the content
Screenshots
Additional context
We can either remove the first sync box during the setup or can send mappings along with it.
The text was updated successfully, but these errors were encountered: