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

Save Only in Elasticsearch #471

Open
iamMHZ opened this issue Jan 25, 2024 · 1 comment
Open

Save Only in Elasticsearch #471

iamMHZ opened this issue Jan 25, 2024 · 1 comment

Comments

@iamMHZ
Copy link

iamMHZ commented Jan 25, 2024

Suppose I have a Django model, and I registered the document class for it.
django-elasticsearch-dsl uses signals to index data in Elasticsearch, How can I only save data in ElasticSearch using Document class utilities or any other trick?

@dziugas505hq
Copy link

dziugas505hq commented Jan 26, 2024

I guess that you want to create some management command and then index products by batches?
If I can remember correctly, we had implemented a similar logic:

ProductDocument().update(
                qs,
                parallel=self.parallel,
                refresh=self.refresh,
                chunk_size=self.chunk_size,
            )

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

2 participants