How to index multiple root directories


Suppose, I have multiple root directories such as /root1 and /root2. But under "/" I also have many folders that I don't want to index.
What would be the best case to index the files in the above root directories?
Should I just create different indexes for each root directory? or
exclude the directories which are not needed and create single index ?
using FSCrawler!


I think you should think of creating 2 FSCrawler jobs, one for each folder.
But in the configuration, make them using the same index name (well, as you want. It's not mandatory as elasticsearch can search in multiple indices at the same time).

Thank you so much!

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