lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <>
Subject Re: Document-Map, Hits-List
Date Wed, 01 Dec 2004 17:04:35 GMT

On Dec 01, 2004, at 17:41, Luke Francl wrote:

> Yes, but Otis hasn't implemented that interface. He's wrapping his Hits
> with a List of Maps.

Right... I'm sure that Otis knows what he is doing :)

As far as implementation goes, you have at least 3 options:

- Implement List and Map directly in Lucene's relevant objects (e.g. 
Hits and Document)
- Extend Hits and Document to achieve the same
- Wrap Hits and Document in another class which implements the relevant 
interfaces (e.g HitsList and DocumentMap)

The point of the exercise being to provide a standard interface while 
still benefiting from the underlying Lucene optimizations.


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

View raw message