문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top