Question

Suppose I have a search for government registered charities, how can I craft my SQL query so that it also searches for acronyms of the query submitted?

For example, if I search for 'Toronto SPCA' I would like it to return the results for 'Toronto Society for the Protect and Care of Animals'

Is there a way I can write my TSQL so that it does this for me in a Freetext search? or do I need to parse out the acronym myself before generating the TSQL query?

Was it helpful?

Solution

You could customize the thesaurus so that a fulltext search, using FORMSOF, would know that SPCA = Society for the Protection and Care of Animals.

See: Creating Custom Thesaurus Entries in SQL Server 2005 and 2008 Full Text Search for an example of how to do so.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top