lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <Eric.J...@isb-sib.ch>
Subject Re: too many hits - OutOfMemoryError
Date Tue, 27 May 2003 19:43:38 GMT
> Hits hits = searcher.search(myQuery);

BitSet results = new BitSet();

searcher.search(myQuery, new HitCollector()
{
  public void collect(int doc, float score)
  {
    if (score > THRESHOLD)
      results.set(doc);
  }
});

--
Eric Jain


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message