Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Module to provide suggested terms for search?

by Your Mother (Archbishop)
on Jun 29, 2008 at 05:59 UTC ( [id://694577]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Module to provide suggested terms for search?
in thread Module to provide suggested terms for search?

Nah. You were right before. It's not quite trivial but it's not that hard either. You have two fronts to attack it. Double metaphone, like you said before, and just load up a mirror of your DB index with metaphone versions. IMDb, for example, does this with actor names. And the other is just to run the search through aspell or ispell. If something is spelled wrong and is not found in the DB index, suggest correctly spelled terms that are known to be in the index.

update: hadn't read ahead when I wrote this to see that creamygoodness also suggested Aspell already. Wasn't trying to steal any ideas. :)

  • Comment on Re^4: Module to provide suggested terms for search?

Replies are listed 'Best First'.
Re^5: Module to provide suggested terms for search?
by samtregar (Abbot) on Jun 29, 2008 at 16:35 UTC
    Sounds good. If you have the time, why not make it into a CPAN module? Could be a fun plugin for CGI::Application::Search.

    -sam

      An excellent idea and one (related, it was a tunable vector search engine) I had 5 years ago. One of several big projects that I have failed to get going. Sigh. At the time I wasn't a good enough hacker to generalize it for public consumption. Now that I have the chops I'm too busy to work on a(nother) big project. Though I do think it's a good idea and I think there was a CDBI auto-index module I could look at for approaches... So many fun ideas, so few tuits.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://694577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-23 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found