An inverted index already stores informations about terms frequency and relevance (see tf/idf vectors). From the Lucene programmatic API it is really easy to retrieve such information, try to extract the same from the Elasticsearch API. Otherwise we have to create a parallel Lucene index used only for retrieve such information.
An inverted index already stores informations about terms frequency and relevance (see tf/idf vectors). From the Lucene programmatic API it is really easy to retrieve such information, try to extract the same from the Elasticsearch API. Otherwise we have to create a parallel Lucene index used only for retrieve such information.