Let’s say I want to search for a list containing ‘PS3’:
SELECT * FROM [TABLE] WHERE CONTAINS(Title, 'PS3')
When the Title is proceeded by an underscore it will not return it.
- Oblivion-PS3 -> Good
- Oblivion PS3 -> Good
- Oblivion_PS3 -> Not returning
I suppose the underscore is not a break word.
How can I fix it so that the underscore can be used as a break word?
I found it! 🙂
I changed the Language for Word Breaker in the Full-Text Catalog to Traditional Chinese.
I used the sys.dm_fts_parser in order to find what language could use the underscore as a break word.
1033 – English
1028 – Traditional Chinese
select * from sys.dm_fts_parser('Oblivion_PS3', 1028, 5, 0)
return Oblivion AND PS3
select * from sys.dm_fts_parser('Oblivion_PS3', 1033, 5, 0)