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

[Feature] Implement createIndex method for engine #223

Open
matchish opened this issue Nov 29, 2022 · 0 comments
Open

[Feature] Implement createIndex method for engine #223

matchish opened this issue Nov 29, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@matchish
Copy link
Owner

Laravel scout have scout:index command that not implemented here

Describe the solution you'd like
Have to create index from index name and ignore index key. If there are settings and mappings for the index name they have to be applied. Otherwise default have to be applied

Context
#46 (comment)

Take a look how to instantiate an index

public static function fromSource(ImportSource $source): Index

Here how to store the index
public function handle(Client $elasticsearch): void

Also consider to check by alias if the index exists already before create new one. If the index exists already the method have to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant