As a suggestion: why not build that with a spelling checker instead of Ferret?
I believe there's free services around for that, not to mention aspell on the console if you're running this on a *nix. You could then rebuild the sentence with the output of the spelling checker, and build a link with it that you can present to the user. Strikes me as easier than building the words index yourself. On Jan 7, 2008 5:16 AM, Lars Heese <[EMAIL PROTECTED]> wrote: > Hello, > > does anybody know how to implement a "Did you mean ...?" like Google > with act_as_ferret? > > I think this is a possible way: > > 1. Generate a keyword-list (this is my difficulty. I don't know how to > build such a list from the index) with no stop-words from the first > index. > e. g. (car, ship, plant, house) > > 2. Build a second index from this word-list where we store the word in > the index. > > 3. Make a Fuzzy-Search over the new list, e. g. "pland" > > 4. Fetch the stored keyword => plant, now you can write "Did you mean > 'plant'?" > > 5. Make a sharp search with "plant" on the first index. > > How can I generate a word-list from the first (standard) index? > > Best greetings > > Lars > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ferret-talk > _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

