Similar Search Results - FULLTEXT or Algorithm

This is a discussion on Similar Search Results - FULLTEXT or Algorithm within the PHP Language forums, part of the PHP Programming Forums category; Ok, first of all I'm sure that what I want to do isn't going to be easy... I'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2005
SC
 
Posts: n/a
Default Similar Search Results - FULLTEXT or Algorithm

Ok, first of all I'm sure that what I want to do isn't going to be easy...



I'd like to be able to take user input and query the database to return
exact and similar results. I have added a FULLTEXT index of the column I
want to search to the table. Then taking user input and break it apart into
separate words and use something like:



MATCH (table) AGAINST ('*word1*' '*word2*' IN BOOLEAN MODE) AS Score



in my SELECT and then ORDER BY Score DESC and that works pretty good, but
I'd like to factor in misspellings, abbreviations, etc. I have searched to
see if I could find code for an existing algorithm that I could try, but all
I have found are articles talking about different algorithms and no actual
code.



Any help, suggestions, ideas, links to code, etc would be greatly
appreciated.



Thanks


Reply With Quote
  #2 (permalink)  
Old 01-11-2005
willl69
 
Posts: n/a
Default Re: Similar Search Results - FULLTEXT or Algorithm

Hi

I am having the same sort of problem, and surprisingly nobody has been
able to give me any help. However i've used the levenshtein() or
soundex() to give a reasonable accurate search of words exactly like and
'sound like' a word entered into a search field. Depending on the size of
your database to be searched, this may be a viable option. As it does need
every word entered into the search field to be matched against every word
in every field in the database that you want to search to get an accurate
result, it would be slow on larger sized databases.

I dont know if this helps but its the best i come across for the same
problem

Cheers

Will

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0