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

ingest API #191

Closed
sckott opened this issue Aug 29, 2017 · 8 comments
Closed

ingest API #191

sckott opened this issue Aug 29, 2017 · 8 comments
Milestone

Comments

@sckott
Copy link
Contributor

sckott commented Aug 29, 2017

https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-apis.html

@sckott sckott added this to the v0.9 milestone Jan 21, 2018
@dbuijs
Copy link

dbuijs commented Jan 24, 2018

Temporary workaround to use pipelines (that you've already defined):

docs_bulk(my_data_frame, index = "my_index", type = "my_row", query = "pipeline=my_pipeline")

@sckott
Copy link
Contributor Author

sckott commented Jan 24, 2018

thanks @dbuijs will have a look

@sckott
Copy link
Contributor Author

sckott commented Jul 16, 2018

@Jensxy
Copy link

Jensxy commented Jul 17, 2018

How to use the workaround for arrays?

@sckott
Copy link
Contributor Author

sckott commented Jul 17, 2018

done in 6be1f45

@sckott sckott closed this as completed Jul 17, 2018
@sckott
Copy link
Contributor Author

sckott commented Jul 17, 2018

@dbuijs @Jensxy just added ingest/pipeline fxns, reinstall remotes::install_github("ropensci/elastic") and see ?ingest

@Jensxy
Copy link

Jensxy commented Jul 17, 2018

Thank you very much @sckott . But how do I load data to an index using the pipeline?

For example, the normal ES statement looks like this

curl -XPUT 'ES_HOST:ES_PORT/test_index/test_type/test_id?pipeline=attachment&pretty' -H 'Content-Type: application/json' -d '{
 "data": "UWJveCBlbmFibGVzIGxhdW5jaGluZyBzdXBwb3J0ZWQsIGZ1bGx5LW1hbmFnZWQsIFJFU1RmdWwgRWxhc3RpY3NlYXJjaCBTZXJ2aWNlIGluc3RhbnRseS4g"
}'

In other words, how do I use the created pipelines? And is it possible to use the attachment processor or the pipeline with arrays?

@sckott
Copy link
Contributor Author

sckott commented Oct 10, 2018

sorry, not sure how to do that

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

3 participants