lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Declan Newman <googly...@gmail.com>
Subject MultiSearcher and TopFieldDocCollector
Date Mon, 14 Jul 2008 18:46:57 GMT
Hi,

I'm in the process of trying to optimize searches and avoid the dreaded 
OutOfMemoryError s.

We currently return the entire document from each of the search results 
and then filter the results using parameters obtained from a database. 
Not very efficient.

The idea was to override TopFieldDocCollector to do the sorting etc. and 
only load the full document for those we need to display. But, I haven't 
found an easy way to use TopFieldDocCollector (FieldSortedHitQueue etc.) 
with MultiSearcher.

Is there an easy way I've missed?

Thanks for any advice.

Declan

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


Mime
View raw message