[ https://issues.apache.org/jira/browse/SOLR-651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642157#action_12642157 ]
Grant Ingersoll commented on SOLR-651: -------------------------------------- {quote} If the user has asked for tf=true&idf=true user implies give me both computation so the output would be <float name="display">1.0</float> {quote} Ah, so you are expecting Solr to do the computation tf*idf when you specify those two options, right? My interpretations (and implmentation) is that it means return those two values in the response. See http://wiki.apache.org/solr/TermVectorComponentExampleOptions I suppose we could add something like &tf-idf=true in which case Solr does the computation. Otherwise, I think it is useful to be able to deliver them separately, as I think it gives the most flexibility. Would adding a tf-idf option suit your needs? Such that, when it is true, Solr returns that computation? > A SearchComponent for fetching TF-IDF values > -------------------------------------------- > > Key: SOLR-651 > URL: https://issues.apache.org/jira/browse/SOLR-651 > Project: Solr > Issue Type: New Feature > Affects Versions: 1.3 > Reporter: Noble Paul > Assignee: Grant Ingersoll > Priority: Minor > Fix For: 1.4 > > Attachments: SOLR-651.patch, SOLR-651.patch, SOLR-651.patch, > SOLR-651.patch, SOLR-651.patch > > > A SearchComponent that can return TF-IDF vector for any given document in the > SOLR index > Query : A Document Number / a query identifying a Document > Response : A Map of term vs.TF-IDF value of every term in the Selected > Document > Why ? > Most of the Machine Learning Algorithms work on TFIDF representation of > documents, hence adding a Request Handler proving the TFIDF representation > will pave the way for incorporating Learning Paradigms to SOLR framework. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.