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
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
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