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

get type from record if present, fallback to type_name #31

Closed
ThomasLohner opened this issue Mar 24, 2014 · 1 comment
Closed

get type from record if present, fallback to type_name #31

ThomasLohner opened this issue Mar 24, 2014 · 1 comment

Comments

@ThomasLohner
Copy link

I'm storing different logs in elasticsearch and i want to utilize the type-field to separate them so i can have different mappings for each logformat.

I already took care that the _type field is in the record, but this plugin ingnores that and uses the type_name param instead.

Would it be pssoible to first check if there already is a _type field in the record and use this instead of type_name?

@pitr
Copy link
Contributor

pitr commented Mar 24, 2014

Absolutely. We are doing already this for _id and _parent. You can do the same for _type. Pull request is welcomed.

@pitr pitr closed this as completed Oct 28, 2014
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