This is what I am looking for prior to adding into index. SO that it can help me to display in my site first 10 tokens that has got maximum occurences in my index. In otherword, user can add weightage to these terms. - BR
Karl Wettin <[EMAIL PROTECTED]> wrote: 31 okt 2007 kl. 15.18 skrev Cool Coder: > Hi Group, > I need to display list of tokens (tags) in my side > those have got maximum occurances in my index. One way I can think > of is to keep track of all tokens during analysis and accordingly > display them. Is there any other way? e.g. if I want to display > tokens in order of their occurences as well as their weightage. Are you looking for the term frequency vector? IndexReader.html#getTermFreqVector(int,%20java.lang.String)> If you are using 2.3 the TermVectorMapper might save you a couple of clock ticks sorting. Or is this something you want to do prior to adding the document to the index? -- karl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com