Jump to content

Full text with IN BOOLEAN MODE question


AndrewJ1313

Recommended Posts

Is it possible to train your search query to find similar words to what the user submitted?

 

Example, the word "Lobster" is in the database, using Full text search with IN BOOLEAN MODE, if the user submits "Lobst" and the wild card variable "*" is added after the word, it will find "Lobster", but is there a way to still get the proper results if the user were to enter the word "Lobsters" - or plural?

 

Would it be best to automatically remove the last two letters of all words submitted that are over five characters long and just add the wild card?

 

Just curious if there is an easier way to do this and I'm just over analyzing.

 

Cheers,

Andrew

Link to comment
https://forums.phpfreaks.com/topic/205242-full-text-with-in-boolean-mode-question/
Share on other sites

Hi there.

 

Make a iterates over each letter "l, lo, lob, lobs..." that keeps a previous_iteration_results and a obtains a current_iteration results. As soon as there are no matches in current_iteration_results, you return previous_iteration_results.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.