SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Full-text search with small words


Full-text search with small words

Author
Message
PiMané
PiMané
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2702 Visits: 1351
Hi,

I'm implementing a full-text search in SQL Server but I have a doubt when searching for small words...
I use the CONTAINSTABLE(table, *, '"word1*" AND "word2*") for the all words search and CONTAINSTABLE(table, *, '"phrase") for exact search...
It works as expected, but when I search for "Windows 8" the all words search returns nothing cause the "8" is "dumped" and probably converted to NULL... The exact search returns all records with "Windows"..
Is there a way to solve this? "Tell" the full-text to index all words despite their size?

Thanks,
Pedro



If you need to work better, try working less...
Ness
Ness
SSC Eights!
SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)

Group: General Forum Members
Points: 921 Visits: 974
Try the NEAR expression. That may solve the issue if you search for the word windows near 8. I assume(ok, shoot me down now) it works with numbers

BOL - CONTAINS(column_name, 'NEAR((John, Smith), 2)')

SQL DBA
Every day is a school day, and don't trust anyone who tells you any different.
http://sqlblogness.blogspot.co.uk
PiMané
PiMané
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2702 Visits: 1351
Don't know if its a configuration for the FULL-TEXT but the words with just 1 char are not indexed, they don't show up on the sys.dm_fts_index_keyords...
The NEAR solution doesn't work cause the "8" isn't on the words' catalog.

Thanks,
Pedro



If you need to work better, try working less...
PiMané
PiMané
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2702 Visits: 1351
Tried to "play" with the stoplist and stopwords but still 1 character words aren't indexed.
Please hellpppp!!!

Thx,
Pedro



If you need to work better, try working less...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search