Board: 5789.com Development

Subject

Re: SOUNDEX

Author

Tim Joyce

Status

Date

18/03/2000 07:04

Message

William,
> You would override the auto-generated setSurname method to update the
> Metaphone pronunciation of the contact's name every time it was
> changed:
this is at the app level, I was wondering if melati should be more generally
SOUNDEX aware, so in your DSD you would put:
String name (size = 60)
(displayname = "Full name")
(description = "The user's real name")
(displayorderpriority = 0) (primarydisplay) (indexed) (soundex);
?
timj
>
> public class Contact extends ContactBase {
> // Programmer's app-specific code here
>
> public void setSurname(String name) {
> super.setSurname(name);
> setSurname_mp(Metaphone.pronunciation(name));
> }
> }
>
> I think that's the most elegant and transparent and nearly the most
> concise way of doing it.
>

5789.com Development Board

 

Post Follow-up

Search This Board

 

Message Context:

SOUNDEX Tim Joyce 15/03/2000 16:31

    SOUNDEX William Chesters 17/03/2000 18:44

        Re: SOUNDEX Tim Joyce 17/03/2000 20:28

            Re: SOUNDEX William Chesters 17/03/2000 21:55

                Re: SOUNDEX Tim Joyce 18/03/2000 07:04

                    Re: SOUNDEX William Chesters 18/03/2000 10:40

                        Re: SOUNDEX Tim Joyce 19/03/2000 08:24

                Re: SOUNDEX Tim Joyce 07/08/2000 12:36

                    Re: SOUNDEX Tim Joyce 07/08/2000 13:27

        Re: Metaphone source code? William Chesters 17/03/2000 21:46



Home -  News -  Reference Sites -  Members -  Partners -  Guidelines -  Philosophy -  Your Details -  Logout