Our system needs to calculate the TFs(term frequency) of the result of
search. i.e, we get a set of documents by a "query_string" search, and we
want to get the TF of every document.
As we know, elasticseach provides the inverted index(term---->documents),
but it do produce forward index table(document--->terms) when index a
document. is it possible to get it?
If it is not possible, we have to manually process the search result to get
the documents' TF. It actually is what elasticsearch has done before.
However, executing this after every search request might be really slow,
but better gather your own numbers... also it requires mapping and will
increase your index size.
Our system needs to calculate the TFs(term frequency) of the result of
search. i.e, we get a set of documents by a "query_string" search, and we
want to get the TF of every document.
As we know, elasticseach provides the inverted index(term---->documents),
but it do produce forward index table(document--->terms) when index a
document. is it possible to get it?
If it is not possible, we have to manually process the search result to
get the documents' TF. It actually is what elasticsearch has done before.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.