tf idf - Solr- Order by TF-IDF score -
i've got solr query returns tf-idf document , works fine. however, care top ten words, ranked tf-idf score. i'm analyzing large blocks of text, , current query brings every word, in alphabetical order, hundreds or thousands of words. there way order tf-idf score, or limit top ten based on tf-idf score?
i've tried different ideas, no luck far.
here's techproducts example query , result:
{ "responseheader":{ "status":0, "qtime":0}, "response":{"numfound":1,"start":0,"docs":[ { "id":"ma147ll/a", "includes":"earbud headphones, usb cable"}] }, "termvectors":[ "ma147ll/a",[ "uniquekey","ma147ll/a", "includes",[ "cable",[ "tf",1, "df",3, "tf-idf",0.3333333333333333], "earbud",[ "tf",1, "df",1, "tf-idf",1.0], "headphones",[ "tf",1, "df",1, "tf-idf",1.0], "usb",[ "tf",1, "df",3, "tf-idf",0.3333333333333333]]]]}
Comments
Post a Comment