Re: Problem of getTermFrequencies()

2010-05-20 Thread manjula wijewickrema
Thanx On Mon, May 17, 2010 at 10:19 PM, Grant Ingersoll gsing...@apache.orgwrote: Note, depending on your downstream use, you may consider using a TermVectorMapper that allows you to construct your own data structures as needed. -Grant On May 17, 2010, at 3:16 PM, Ian Lea wrote: terms

Problem of getTermFrequencies()

2010-05-17 Thread manjula wijewickrema
Hi, I wrote a code with a view to display the indexed terms and get their term frequencies of a single document. Although it displys those terms in the index, it does not give the term frequencies. Instead it displays ' frequencies are:[...@80fa6f '. What's the reason for this. The code I have

Re: Problem of getTermFrequencies()

2010-05-17 Thread Ian Lea
terms and freqs are arrays. Try terms[i] and freqs[i]. -- Ian. On Mon, May 17, 2010 at 12:23 PM, manjula wijewickrema manjul...@gmail.com wrote: Hi, I wrote a code with a view to display the indexed terms and get their term frequencies of a single document. Although it displys those terms

Re: Problem of getTermFrequencies()

2010-05-17 Thread manjula wijewickrema
Dear Ian, I changed it as you said and now it is working nicely. Thanks a lot for your kind help. Manjula On Mon, May 17, 2010 at 6:46 PM, Ian Lea ian@gmail.com wrote: terms and freqs are arrays. Try terms[i] and freqs[i]. -- Ian. On Mon, May 17, 2010 at 12:23 PM, manjula

Re: Problem of getTermFrequencies()

2010-05-17 Thread Grant Ingersoll
Note, depending on your downstream use, you may consider using a TermVectorMapper that allows you to construct your own data structures as needed. -Grant On May 17, 2010, at 3:16 PM, Ian Lea wrote: terms and freqs are arrays. Try terms[i] and freqs[i]. -- Ian. On Mon, May 17,