lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fangz <>
Subject Re: Inconsistent Search Speed
Date Wed, 27 Feb 2008 18:31:20 GMT

I implemented HitCollector as you suggested. It improved the initial run
significantly. However it only showed slight improvement in the subsequent
runs. I don't know how to implement FieldSelector in my situation. My codes
look like this:

public void collect( int doc, float score ) {

    TermFreqVector vector = null;
    vector = searcher.getIndexReader().getTermFreqVector(doc, "field");

Thank you again!

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message