This is very similar to what I do - I create a List of Maps from Hits
and its Documents.  So I think this change may be handy, if doable (I
didn't look into changing the two Lucene classes, actually).

Otis

--- petite_abeille <[EMAIL PROTECTED]> wrote:

> 
> On Dec 01, 2004, at 13:37, Karthik N S wrote:
> 
> >   We create a ArrayList Object and Load all the Hit Values into
> them 
> > and
> > return
> >   the same for Display purpose on a Servlet.
> 
> Talking of which...
> 
> It would be very handy if org.apache.lucene.search.Hits would
> implement 
> the java.util.List interface... in addition, 
> org.apache.lucene.document.Document could implement java.util.Map...
> 
> That way, the rest of the application could pretend to simply have to
> 
> deal with a List of Maps, without having to get exposed to any Lucene
> 
> internals...
> 
> Thought?
> 
> Cheers,
> 
> PA.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to