lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Combining TopFieldCollector with custom Collector
Date Thu, 11 Mar 2010 21:27:20 GMT
On Thu, Mar 11, 2010 at 4:10 PM, Peter Keegan <peterlkeegan@gmail.com> wrote:
> I want the TFC to do all the cool things it does like custom sorting, saving
> the field values, max score, etc. I suppose the custom Collector could
> explicitly delegate all TFC's methods, but this doesn't seem right.

No need to delegate the TFC specific methods... just wrap the TFC in
your own collector, do the search, and then directly access the TFC to
get what you need.  This is what Solr does.

-Yonik
http://www.lucidimagination.com

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