vb.net - SQL - How do I search for "weight" within CONTAINS? -


we have full-text index setup allow searching directory pdf files containing specified text. i've been getting notifications that's it's blowing when people searching "weight loss" , need fix it. right @ user's input , remove that's not letter or number , build string pass contains function. tried wrapping weight in additional quotes try show i'm not specifying keyword didn't work. there can around this? here's vb.net string i'm using test searchstring = """weight"" , loss"

i got figured out. ended checking if input contains word weight, wrapped in quotes. there query string generated has contains statement works. where contains(contents, '"weight" or loss'). passing query string in without single quotes , wasn't working.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -