Can you provide a small example of what you are trying to achieve? Are the discriminating terms known beforehand or is it dependent on the document? Have you looked into the new text scoring features which have been released since the original post? It is worth looking into:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-advanced-scripting.html You can probably calculate the TF values during indexing, but not the IDF since that value is based on all of the documents in a shard. Cheers, Ivan On Fri, Apr 25, 2014 at 8:46 AM, Ramdev Wudali <[email protected]> wrote: > A variant on this particular request: > > I would like to get the tf-idf for an indexed field. (the field is a body > of a news document). I would like to find discriminating terms in the > document set (the document set is a result of executing a filter on the > search index. > The discriminating terms are to help with improving the query as the > number of documents returned are too many and relevant documents are > getting lost in the search result (of executing a filter). > > > Is it possible to run the tf-idf calculations that Elastic does while > indexing the document.(the API to access the TF-IDF calculations) > > Thanks > > Ramdev > > > -- 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/CALY%3DcQAhqGSS8L5sEGe-d%2BwYmwC-fiMZP0FhyDa_UCf9xB8GGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
