lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Shouldn't IndexWriter.commit(Map) accept Properties instead?
Date Mon, 22 Jun 2009 20:53:22 GMT

: But then when you retrieve your metadata it's converted to String -> String.

Correct ... the documentation should make it clear that what gets 
persisted is a String, but the method of giving the String to the API is 
by passing an Obejct that will be toString()ed.

(Asside: it would be really nice if Java had a Stringable interface)

It's not the prettiest API in the world, in a pure Java1.5 code base i 
wouldn't even suggest it, but in 1.4 code bases it tends to be a lot 
more freindly then then to document that people must pass a collection of 
Stings and cast them all.


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

View raw message