English 中文(简体)
MSSql 全文检索缩略语
原标题:MSSql full-text search for words abbreviated with dots

I have been struggling with the following query:

select * from table_name where contains((field1,field2), "S.E.N.S" );

Following is the text I have in field 1: "S.E.N.S Productions"

如果我找“ 生产” 我取得了结果,但不是“S.E.N.S

关于如何取得预期结果的想法? 感谢。


更新:Sql服务器版本2005年,SP3。


Update: Well, it is quite weird. When I set the full-text to use noiseENG.txt the query in my question works fine. But everything stored in the database is in Turkish and all the settings are set accordingly, including noiseTRK.txt. "S.E.N.S" is not a word in Turkish nor in English as far as I know. I can set it to noiseENG.txt to get it work, but I doubt that would be appropriate. Can anyone know/think of a reason why noiseTRK.txt would break in above query ? Thanks.

P.S.我用未经修改的噪音文档以及单字母的土耳其噪音文档进行了测试。

最佳回答

Out of the box, it may not work for SQL 2005.

正如我回顾的那样,关于“S.E.N.S Productions”,2005年FTS(未来文本搜索)的字句将无视这种说法,将插手打成个人信件(S E NS)和“介绍”两字。 单封信件都是不实的言辞,因此在指数中就算得了。

你可以做两件事:

  1. Edit your noise word list and remove the single letters and rebuild your index
  2. Upgrade to a later version of SQL, as the word breaking behaviour changes to corretly return your result in 2008.
问题回答

暂无回答




相关问题
Acronyms with Sphinx search engine

how can i index acronyms like m.i.a. ? when i search for mia , i get results for mia and not m.i.a. . when i search for m.i.a. , i get nothing at all. edit: solution looks roughly like: ...

Querying multiple index in django-sphinx

The django-sphinx documentation shows that django-sphinx layer also supports some basic querying over multiple indexes. http://github.com/dcramer/django-sphinx/blob/master/README.rst from ...

Adding Search to Ruby on Rails - Easy Question

I am trying to figure out how to add search to my rails application. I am brand new so go slow. I have created a blog and done quite a bit of customizing including adding some AJAX, pretty proud of ...

Searching and ranking short phrases (e.g. movie titles)

I m trying to improve our search capabilities for short phrases (in our case movie titles) and am currently looking at SQL Server 2008 Full Text Search, which provides some of the functionality we ...

Will Full text search consider indexes?

Ok I have a full text search index created on my JobsToDo table, but what I m concerned about is if this is rendering my other indexes on the table useless. I have a normal nonclustered index on the ...

Lucene.NET on shared hosting

I m trying to get Lucene.NET to work on a shared hosting environment. Mascix over on codeproject outlines here how he got this to work on godaddy. I m attempting this on isqsolutions. Both ...

Hibernate Search or Compass

I can t seem to find any recent talk on the choice. Back in 06 there was criticism on Hibernate Search as being incomplete and not being ready to compete with Compass, is it now? Has anyone used both ...

热门标签