# FS crawler should be used in the same server where elasticsearch is installed

**URL:** <https://discuss.elastic.co/t/fs-crawler-should-be-used-in-the-same-server-where-elasticsearch-is-installed/159003>\
**Category:** Elasticsearch\
**Created:** [December 1, 2018, 1:07pm UTC](https://discuss.elastic.co/t/fs-crawler-should-be-used-in-the-same-server-where-elasticsearch-is-installed/159003 "2018-12-01T13:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edu](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@Edu](https://discuss.elastic.co/u/Edu)\
**Post date:** [December 1, 2018, 1:07pm UTC](https://discuss.elastic.co/t/fs-crawler-should-be-used-in-the-same-server-where-elasticsearch-is-installed/159003/1 "2018-12-01T13:07:00Z")

</div>

Dear All,

I have started to work with elasticsearch last week. I apologize if I am asking something too obvious. I have to develop a fast solution for users to search inside MS-Office files.

I have two docker containers, one with the Django backend, which can access the user's files, and another container running elasticsearch-6, with host=elasticsearch:9200, where I have installed the "ingest-attachment" plugging.

I am using the elasticsearch\_dsl and django\_elasticsearch\_dsl on the django server, however I could not find a clear explanation of how could I upload the file to the elasticsearch- **6** (and I stress the SIX) server for indexing (only indexing the content... not to store it). The explanations that I found employed this 'Attachment" , that works only for elasticsearch 5.

Then, I came to find this nice project FS crawler with the promise that I could use a single api line like : curl -F "file=@test.txt" -F "id=my-test" "[http://127.0.0.1:8080/fscrawler/\_upload](http://127.0.0.1:8080/fscrawler/_upload)".

However it is still not clear how it works.  
Is FS crawler a plugin for elasticsearch or an stand-alone program just to create indexes?  
Should I install FS crawler in the elasticsearch docker container where I want the indexes to live?  
Should I install FS crawler in the django docker container where the files are accessible?

I would like to simply use the endpoint in my Django server:  
curl -F "file=@test.txt" -F "id=my-test" "[http://elasticsearch:8080/fscrawler/\_upload](http://elasticsearch:8080/fscrawler/_upload)"?  
and search using the "[http://elasticsearch:9200/](http://elasticsearch:9200/)" by using the elasticsearch\_dsl methods. Is it possible?

Any help would be appreciate, I am little lost here...  
Best regards  
Ed

---

<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:** [December 1, 2018, 3:27pm UTC](https://discuss.elastic.co/t/fs-crawler-should-be-used-in-the-same-server-where-elasticsearch-is-installed/159003/2 "2018-12-01T15:27:35Z")

</div>

It's a stand-alone application which should run within its own container.

---

<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:** [December 29, 2018, 3:33pm UTC](https://discuss.elastic.co/t/fs-crawler-should-be-used-in-the-same-server-where-elasticsearch-is-installed/159003/3 "2018-12-29T15:33:11Z")

</div>

Closed on December 29, 2018, 3:33pm UTC

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