Skip to content

fix: ES id-fn option uses unserializable fn#181

Open
kawas44 wants to merge 1 commit into
ngrunwald:develfrom
kawas44:fix-es-with-id
Open

fix: ES id-fn option uses unserializable fn#181
kawas44 wants to merge 1 commit into
ngrunwald:develfrom
kawas44:fix-es-with-id

Conversation

@kawas44

@kawas44 kawas44 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Writing data to Elasticsearch, using the id-fn option triggers an exception on an unserializable function from the Charred library. Datasplash code to extract the document id uses an anonymous function which cannot be serialized.

Clojure Var are serializable by default. The fix is to use a Var from the Charred library.

Indexing to Elasticsearch with the `id-fn` option,
the code uses a anonymous function which is, by
definition, not a serializable value. A fix, is
to use a Var from the Charred lib instead.
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

Successfully merging this pull request may close these issues.

1 participant