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:

http://localhost:8983/solr/techproducts/tvrh?q=id:ma147ll/a&&fl=id,includes&tv.tf=true&tv.df=true&tv.tf_idf=true&indent=on&wt=json

{   "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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -