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

Possibility to addToIndex but not save in database #253

Open
libertey opened this issue Nov 8, 2023 · 0 comments
Open

Possibility to addToIndex but not save in database #253

libertey opened this issue Nov 8, 2023 · 0 comments

Comments

@libertey
Copy link

libertey commented Nov 8, 2023

Hey, is there a possibility to store some data only in Elasticsearch? we have a project in which we will import some content from huge texts so it will be huge data collection. We use MySQL and Elasticsearch to store the data most of the time we use it to create from eloquent model and while saving the model it will be added to the index. Now we want to import the new content only on our elasticsearchserver because of the huge amount of data and we only need that data for search queries.

So I tried to make a new model and imported anything but if it comes to the moment I want addToIndex my model it throws document not found.

this is because it will normally search from the database and check for the tableheads of the associated model table.

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

No branches or pull requests

1 participant