-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Index is created without a timestamp, when created by scout model observer #204
Comments
Thinking aloud; I checked the how that part is working, and I see that
So index name getting a suffix in this method is expected.
Inside this method, inside the |
Hey) Could you create a test that reproduce the issue? I think it can be possible when we do update, and before we didn't do an import by using the command. I would like to not do extra checks before update, but let's think what we can do. It would be great if we can put a request to a bulk that will create an index with alias if it's not exists |
Sure, I will write a test for the issue. |
@matchish you can check the problem with the test. |
What do you think if we add this parameter as default settings to a cluster? It will prevent the bug in default configuration. There is another case when user don't have access to the cluster. But until we don't have a feedback that devs actually have this case, I think we can postpone implementing more sophisticated solution. At least for now I don't see what we can do without adding extra check. |
For now, I could not find any other solution without adding the extra check, too. Maybe, we need to sleep on this a little bit more :D |
Any update about this issue? I still got the error using version 7.6. Is there a workaround that we can do? |
@Firman95 would it solve the issue for you? |
Describe the bug
If you are not using
scout:import
before you index the first model, the index is created without a timestamp. This leads to aninvalid alias name
error, if you then want to usescout:import
:To Reproduce
Steps to reproduce the behavior:
localhost:9200/_cat/indices
searchableAs
name without an appended timestampscout:import App\Model
Expected behavior
The index should always be created with a timestamp appended.
Version
Laravel: 9.13.0
Scout: 9.4.9
Matchish\Elasticsearch: 5.0.2
The text was updated successfully, but these errors were encountered: