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

Reply via email to