Skip to content

How do I update metadata of Elasticsearch Document Store? #3319

Answered by julian-risch
jais001 asked this question in Questions
Discussion options

You must be logged in to vote

Hi @JaisVJ you can do communicate document updates directly to your running Elasticsearch instance and don't need to use Haystack for that: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-update.html#_update_part_of_a_document

For some use cases one can use the custom_query parameter in Haystack here to interact with Elasticsearch but I don't think it works for updating a document's meta data:

:param custom_query: query string as per Elasticsearch DSL with a mandatory query placeholder(query).

Last but not least, what you can do is overwrite the existing document by using write_documents an…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jais001
Comment options

Answer selected by jais001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants