# Full Content Search within documents in S3

**URL:** <https://discuss.elastic.co/t/full-content-search-within-documents-in-s3/70729>\
**Category:** Elasticsearch\
**Created:** [January 5, 2017, 8:51pm UTC](https://discuss.elastic.co/t/full-content-search-within-documents-in-s3/70729 "2017-01-05T20:51:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shraddha](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Shraddha](https://discuss.elastic.co/u/Shraddha)\
**Post date:** [January 5, 2017, 8:51pm UTC](https://discuss.elastic.co/t/full-content-search-within-documents-in-s3/70729/1 "2017-01-05T20:51:39Z")

</div>

I have documents stored in S3 and am using ElasticSearch for indexing. I need to do a full text search within the contents of the files in S3 using NodeJs. Can you give me an example which includes the scenario I have

Please note: I am not sure how to add the mapper plugin in Nodejs

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 5, 2017, 9:08pm UTC](https://discuss.elastic.co/t/full-content-search-within-documents-in-s3/70729/2 "2017-01-05T21:08:25Z")

</div>

There used to be a S3 river [https://github.com/lbroudoux/es-amazon-s3-river](https://github.com/lbroudoux/es-amazon-s3-river) but rivers are gone now.

This is may be something I can support in FSCrawler project: [https://github.com/dadoonet/fscrawler](https://github.com/dadoonet/fscrawler)

If you want you can open an issue there and I'll see if I can make it happen at some point. No ETA.

BTW: prefer using ingest-attachment as mapper attachment is now deprecated.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/full-content-search-within-documents-in-s3/70729/4 "2017-01-05T22:27:17Z")

</div>

You need to do 3 things:

- read data from S3
- send to elasticsearch
- extract text

1. it's up to you. I can't tell how you read data from S3 using NodeJS. That's outside of the scope of this forum
2. there is a JS client for elasticsearch. Should be easy to use
3. you can register an ingest pipeline for that. Read elasticsearch guide. It's not specific to NodeJS. That's a simple REST API call

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 2, 2017, 10:27pm UTC](https://discuss.elastic.co/t/full-content-search-within-documents-in-s3/70729/5 "2017-02-02T22:27:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
