Indexes files in elasticsearch