lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Document-Map, Hits-List
Date Wed, 01 Dec 2004 16:27:00 GMT
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 <petite_abeille@mac.com> 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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message