Hey, have you seen the term vectors API, see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-termvectors.html
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. --Alex On Fri, Mar 28, 2014 at 9:40 AM, Eric Lu <[email protected]> wrote: > hi, > > 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. > > Or any suggestions? thank you. > > eric > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/96fac536-22de-4448-a00b-5c0b7660a743%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/96fac536-22de-4448-a00b-5c0b7660a743%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-RgbdebNjDi5z%2BuoF2zM2De9RK7YDzz%3Dqja2aAc4WFjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
