[PHP] PHP Search Engine - Synonyms

2006-10-30 Thread Kevin

Hi,

Is it possible to automatically search for synonyms related to a word in 
a search engine for example if I create a search engine and search for 
the word 'Horse', it would automatically search for other words such as 
'Pony' etc?


Has anyone had any experience on how this would be implemented?

Thanks

Kevin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Search Engine - Synonyms

2006-10-30 Thread Ed Lazor
Another idea from what I just sent:  try googling synonym  
database.  It looks like there are a few leads in there as well.


On Oct 30, 2006, at 6:26 AM, Kevin wrote:


Hi,

Is it possible to automatically search for synonyms related to a  
word in a search engine for example if I create a search engine and  
search for the word 'Horse', it would automatically search for  
other words such as 'Pony' etc?


Has anyone had any experience on how this would be implemented?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Search Engine - Synonyms

2006-10-30 Thread Ed Lazor


On Oct 30, 2006, at 6:26 AM, Kevin wrote:


Hi,

Is it possible to automatically search for synonyms related to a  
word in a search engine for example if I create a search engine and  
search for the word 'Horse', it would automatically search for  
other words such as 'Pony' etc?


It is possible:  http://www.google.com/help/refinesearch.html


Has anyone had any experience on how this would be implemented?


I haven't done it, but it seems straight forward.  Start with one  
word, query a database for it's synonyms, and then use the resulting  
words (including the original word) in the final search query.  It  
just seems like it would take a lot of work to create a database of  
words and their synonyms.  You'll also need to add weight and sort  
the results so that your initial keyword scores higher.  Honestly, if  
I were you, I'd run this question by the MySQL mailing list.  PHP  
just works with the results of the search, so you still end up having  
to figure out how to do this in MySQL (or whatever database you're  
using).  Another thing that might help is to Google keywords like  
synonym search programming technique.  I had to sort through the  
results, but it did look like there were a few interesting articles.   
Here's one of them:  http://developer.apple.com/documentation/ 
UserExperience/Conceptual/SearchKitConcepts/searchKit_basics/ 
chapter_2_section_2.html


-Ed

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php