-
Notifications
You must be signed in to change notification settings - Fork 3
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
Dynamic collection name in loadElasticsearch command #2
Comments
Hi, I think I can easily provide such a solution. It shouldn't take long time to implement it. |
That would be great. Could you already think of an example on how this could look like? I am still a newbie to morphlines and I cannot think of single command that would allow you to specify something like this:
How would you approach that? Cheers, Martin |
Side comment: is this really referred to as "collection"? If yes, that's bad because ES doesn't have a notion of "collection" (SolrCloud does). ES uses the term "index". |
I think Martin writes about index. Morplines-ES use collection parameter and that's why Martin wrote that. |
I pushed a change (collection -> index) here: 4dcb709 |
Btw, I have solved this issue for now by providing the values for the index and the type name in dedicated fields. The problem with this solution is, however, that these temporary fields will also be index into elasticsearch. Still hoping for a better solution. |
Hi Martin, |
Hi Pawel, I can't really imagine how this would look like in the end, maybe you can scribble an example configuration? Example:
Since the fields 'indexName' and 'indexType' should not actually show up in the ES index, a configuration property 'ignoreFields' would come in handy to filter those fields out. Example:
Think this would be an easy solution that also does not require a proprietary naming solution. What do you think? Regards, Martin |
@metmajer if you maybe have a patch, we'll take the PR :) |
I've made a pull request for this issue. |
Thanks for providing this awesome lib! I am currently testing the loadElasticsearch command with the following configuration:
Is there a way to provide a dynamic collection name, e.g. with a date, or could you think of a simple solution to this?
Thanks and regards, Martin
The text was updated successfully, but these errors were encountered: