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

Optionally use Document Name from Avro Type #2

Open
jconlon opened this issue Mar 17, 2016 · 2 comments
Open

Optionally use Document Name from Avro Type #2

jconlon opened this issue Mar 17, 2016 · 2 comments

Comments

@jconlon
Copy link

jconlon commented Mar 17, 2016

Am consuming multiple topics with different Avro types on each topic. In the configuration for the connector the ElasticsearchSinkConnector.DOCUMENT_NAME is a static configuration option.

What do you think of making this parameter optional and using it for document names when it is configured and when its null using the Avro name as the document (type) name in the ES index?

@patelliandrea
Copy link
Contributor

With Avro name, do you mean the schema name?
If yes, this commit should solve the problem

@jconlon
Copy link
Author

jconlon commented Mar 18, 2016

Yes as AssignEvent in the following:

{"namespace": "com.verticon.im.avro",
 "type": "record",
 "name": "AssignEvent",
 "doc" : "Assigns the Entity to an assignedParent.",
 "fields": [
     {...

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