I have already ingested data to the existing Elasticsearch index with _id as one of the column name "mainid" value in database. Now I have another table in that I have two columns "mainid" and path to the files. I want to ingest these files using fSCrawler into the existing Elasticsearch index and files should get ingested into corresponding _id.

1

There are 1 best solutions below

0
On

The _id is generated from the filename by FSCrawler. If you want to provide your own _id, for the time being, you need to use the REST service instead.

It allows you to provide the _id you want. Like:

echo "This is my text" > test.txt
curl -F "[email protected]" -F "id=my-test" "http://127.0.0.1:8080/fscrawler/_upload"