lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beard, Brian" <>
Subject how do I get my own TopDocHitCollector?
Date Wed, 09 Jan 2008 21:34:33 GMT


The documents that I index have two id's - a unique document id and a
record_id that can link multiple documents together that belong to a
common record.

I'd like to use something like TopDocs to return the first 1024 results
that have unique record_id's, but I will want to skip some of the
returned documents that have the same record_id. We're using the

I read that I could use a HitCollector and throw an exception to get it
to stop, but is there a cleaner way?

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

View raw message