rcmuir at gmail
Aug 16, 2012, 11:55 AM
Post #4 of 6
On Thu, Aug 16, 2012 at 10:56 AM, jellyman <colm_rice [at] hotmail> wrote:
Re: Lucene making reference to a .jar -- How do I this code?
[In reply to]
> Hi Ted,
> Thanks for the URL. To answer your question: I'm adding another phoenetic
> algorithm to the org.apache.commons.codec.language package (as the rest of
> them live there) and then hardwire it into the
> lucene/analysis/phoenetic/src/java path like the existing phoenetic filters
> that exist there already. Following existing pattern essentially.
> I'm assuming that you have to edit this pre-built package or am I missing
> something? I think that I am...
You don't need to actually modify commons-codec to do that, you can
just write your own phonetic encoder, extending
org.apache.commons.codec.Encoder, and pass that to PhoneticFilter.