Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Cannot supply Gson formatter for Bulk operations #68

Closed
bdurand opened this issue Sep 6, 2013 · 0 comments
Closed

Cannot supply Gson formatter for Bulk operations #68

bdurand opened this issue Sep 6, 2013 · 0 comments
Labels

Comments

@bdurand
Copy link

bdurand commented Sep 6, 2013

The code in Bulk creates a new Gson object for every Bulk action. This causes an issue where the JSON documents sent by Bulk are not the same as sent by individual Index actions where custom serialization is desired.

A getter and setter is provided for the Gson attribute, but the data is already serialized in the constructor so if you want to change the serialization, you have to do so twice.

Providing a mechanism to set the Gson object in the builder would be useful so it could use the same serializers across all actions.

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

No branches or pull requests

2 participants