Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intelligent Searching with wildcards (*) and word grouping in SQL Full-text Search

What's the best way implement MS SQL full-text search using all the normal things like wildcards and quotations. For example:

If the search term the user inputs is

Overdose of "Vitamin C" for child*

I would like to treat "Vitamin C" as one phrase and would like to match "child" and "children"

The documentation offers so many alternatives, it's hard to differentiate them. I'd love to be able to throw the above string at Full-text search and have it decipher the word grouping and the wildcards, but I don't think it's that smart.

like image 488
Armstrongest Avatar asked Oct 16 '25 01:10

Armstrongest


1 Answers

Here is a very nice article Normalizing SQL Server Full-text Search Conditions.

It saved a bunch of time for me.

like image 103
Oleks Avatar answered Oct 18 '25 21:10

Oleks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!