Re: IndexReader.getTermFreqVector penality

2006-08-09 Thread Amit Kumar
Yes thanks Grant I realize that if I need the term freq in all the documents I could use TermEnum, but I have a use case where I may need term frequencies of only selected documents, and the worst case scenario might be term freq for n-1 documents, where n is the total number of documents in

Re: IndexReader.getTermFreqVector penality

2006-08-09 Thread Grant Ingersoll
Hi Amit, If you want all the freqs of all the terms (or even just some of the terms) in all documents, you don't need to use Term Vectors, take a look at TermEnum and TermDocs. If you want for specific documents, then you do need Term Vectors. You may get some CPU ticks by only keeping P

IndexReader.getTermFreqVector penality

2006-08-09 Thread Amit Kumar
Hi Lucene Users, I am using the lucene indices to get term frequencies. I just wanted to check with you about the time it is taking to retrieve these term freq. Please suggest if I can improve the code/index or if this is expected. It takes 8 to 9 seconds to retrieve the term freq values of