On 4/3/07, Jens Kraemer <[EMAIL PROTECTED]> wrote: > On Tue, Apr 03, 2007 at 03:55:28AM +0200, Jin wrote: > > Jens Kraemer wrote: > > > On Mon, Apr 02, 2007 at 07:58:35AM +0200, Jin wrote: > > >> Anybody who knows whether ferret or acts_as_ferret support wordsegment > > >> search? > > > > > > I don't know what you mean with this. Could you give an example? Strange > > > enough, I only seem to find chinese documents when googling - looks like > > > that's a feature useful when analyzing chinese text... > > > > > Yep.Now the search system is build up but maybe more features more > > better,now customer's intension is if he input 'designpattern',there is > > no space between design and pattern,it should dived the two words just > > like google and provide the information of 'designpattern' and 'design > > pattern',that is it > > interesting, that could be useful for analyzing german text, too - we > have lots of composite words like this :-)
I've already mentioned this to Jin in private, but I think the better solution for something like this is to post-process the query if you get very few (or zero) matches. For example you could run the query through a spell checker that would suggest you to rewrite 'designpattern' as 'design pattern'. I'm not sure whether the spell checker approach would work in German or Chinese but some sort of post-processing should do the trick. If anyone has implemented something like this or has any good ideas I'd love to hear them. cheers, Dave -- Dave Balmain http://www.davebalmain.com/ _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

