Re: Inconsistent Search Speed

2008-02-27 Thread fangz
score ) { TermFreqVector vector = null; vector = searcher.getIndexReader().getTermFreqVector(doc, "field"); ... Thank you again! fangz -- View this message in context: http://www.nabble.com/Inconsistent-Search-Speed-tp15698325p15719770.html Sent from the Lucene - Java Users mailing

Re: Inconsistent Search Speed

2008-02-26 Thread fangz
Thank you for the info. It makes sense. My search will return more than 1 documents and I have to loop through all documents to build a list with unique field values. It seems that the looping of the hits takes the longest time in the initial run but afterwards it becomes much faster. If th

Inconsistent Search Speed

2008-02-26 Thread fangz
onds. This does not change with or without calling indexsearcher.close(). As I know, Lucene does not cache results (no filter is involved). So what is causing such a big speed difference? Thank you in advance! fangz -- View this message in context: http://www.nabble.com/Inconsistent-Se