ValueListHandler pattern with Lucene

2004-04-09 Thread lucene
Hi! I implemented a VLH pattern Lucene's search hits but noticed that hits.doc() is quite slow (3000+ hits took about 500ms). So, I want to ask people here for a solution. I tought about something like a wrapper for the VO (value/transfer object), i.e. that the VO does not actually contain

Re: ValueListHandler pattern with Lucene

2004-04-09 Thread Erik Hatcher
On Apr 9, 2004, at 3:18 PM, [EMAIL PROTECTED] wrote: I implemented a VLH pattern Lucene's search hits but noticed that hits.doc() is quite slow (3000+ hits took about 500ms). So, I want to ask people here for a solution. I tought about something like a wrapper for the VO (value/transfer

Re: ValueListHandler pattern with Lucene

2004-04-09 Thread Erik Hatcher
Patterns are work-arounds for language deficiences :) Don't use patterns because some book said so - use them if they are the pragmatic choice. Flattening data for reports or search results and perhaps being a little more coupled to Lucene between tiers in order to avoid performance problems

Re: ValueListHandler pattern with Lucene

2004-04-09 Thread Ype Kingma
On Friday 09 April 2004 21:18, [EMAIL PROTECTED] wrote: Hi! I implemented a VLH pattern Lucene's search hits but noticed that hits.doc() is quite slow (3000+ hits took about 500ms). So, I want to ask people here for a solution. I tought about something like a wrapper for the VO

clustering results

2004-04-09 Thread Michael A. Schoen
I have an index of urls, and need to display the top 10 results for a given query, but want to display only 1 result per domain. It seems that using either Hits or a HitCollector, I'll need to access the doc, grab the domain field (I'll have it parse ahead of time) and only take/display