lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: HitCollector or Hits
Date Thu, 24 May 2007 13:20:04 GMT
I know of no way to alter the Hits behavior, I recommend using
a TopDocs/TopDocCollector.

But be aware that if you load the document for each one, you may incur
a significant penalty, although the lazy-loading helped me a lot, see

On 5/23/07, Carlos Pita <> wrote:
> Hi folks,
> I need to collect some global information from my first 1000 search
> results
> in order to build up some search refining components containing only
> relevant values (those which correspond to at least one of the first 1000
> hits). For example, the results are products and there is a store filter
> component that shows only the stores that sells a product between the
> first
> 1000 hits. So even if the user sees just the first 20, I would have to
> inspect the first 1000. I've read that Hits mantains a cache of about 100
> or
> 200 hits. Is this configurable? If I could set this cache to 1000 I would
> then use Hits to browse the search results. Another way, I should use
> HitCollector. What's your advice?
> Cheers,
> Carlos

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message