Heya Jens, Actually, I'm having the problem where no records get returned, when I query for the full number: 123-45-55555 for example.
M. Jens Kraemer wrote: > On Wed, Aug 30, 2006 at 08:24:02PM +0200, Michael Leung wrote: >> >> Hey again Jens, >> >> Strange, I no longer get an error when I reference the constant for >> untokenized by the fully qualified name as you suggested, but results >> still do not come back when searching with hyphens. > > maybe the problem isn't tokenization-related, but you're trying to > search for a substring of the phone number not beginning at the first > character ? > > example: > if your indexed value is '123-45-55555', > a search for '123*' or '123-45*' should find the record, but a search > for '45*' won't. Is this the behaviour you experience ? > > Wildcards at the beginning, as in '*45*', don't always work. There > currently is another thread about this topic, it's unclear if this is > supposed to work or not atm, hope Dave can shed some light on this). > > To be able to search only for area code or phone number, you should > tokenize the phone number into parts (split at the hyphens). > > Jens > > -- > webit! Gesellschaft f�r neue Medien mbH www.webit.de > Dipl.-Wirtschaftsingenieur Jens Kr�mer [EMAIL PROTECTED] > Schnorrstra�e 76 Tel +49 351 46766 0 > D-01069 Dresden Fax +49 351 46766 66 -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

