How can elasticsearch automatically index documents?

I frequently change data, so my json files inside fscrawler's tmp / es directory are constantly changing. may be deleting, may be changing the data inside a json file, or changing the json file name.
I am currently having problems as the index's document doesn't update itself when I change the data inside the tmp / es directory of fscrawler.
Hope everybody help please.