I have gone through Elastic working and understands how inverted index(faster look up) and index( storing actual document disk in ES). My understanding is that inverted index has most of the required stuff when search query is executed. For example : word to document id mapping/location/TF-IDF/boost score etc
Say If I search for
Java developer new york, Inverted index has all the stuff score/document id/primary key of record in DB to return as response etc.
So my question is should not we just store inverted index only but not actual documents on disk as query search is done on inverted index only not on documents ?