lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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.




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message