Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic does not build index on dev/build #19

Open
silbinarywolf opened this issue May 24, 2018 · 0 comments
Open

Elastic does not build index on dev/build #19

silbinarywolf opened this issue May 24, 2018 · 0 comments

Comments

@silbinarywolf
Copy link

The problem

When trying to save new records that are indexed by Elastic, you might get an error with something like the error below.

To avoid it currently, you need to know to run dev/tasks/Symbiote-Elastica-ReindexTask?rebuild=1

Uncaught Elastica\Exception\Bulk\ResponseException: Error in one or more bulk request actions: index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_1_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_2_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_3_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_4_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_5_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_6_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_7_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_8_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_9_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_10_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_11_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_12_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_13_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_14_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_15_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_16_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_17_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_18_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_19_Stage caused failed to parse [GlobalID] index: /my-elastic-index/MyCustomDataObject/MyCustomDataObject_20_Stage caused failed to parse [GlobalID] index: /transport-mpw-

The solution

Make the index get created during dev/build. This means developers wont need to remember to run this and wont get an obtuse error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant