Seems ColognePhonetic will be supported in Apache Commons Codec 1.4.1.
Thanks for your patch Marc. Has there been any discussion on a tentative release date for 1.4.1?
When this happens I'll be happy to add it.
Besides, do you think it is a good idea to allow a fully qualified class name as "encoder" in PhoneticFilterFactory? Extending solr by a custom phonetic filter could be much easier for developers.
I think the reason its not done with reflection might be historical, before all tokenstreams were reused?
But I still think its a good idea to avoid reflection when possible, so I think we should keep the statically built map.
However, if you supply a string thats not in this map, I don't think it would hurt to try to reflect the name
before throwing an exception, as in this case you would only get an exception anyway.