简体   繁体   English

全文搜索记录未显示

[英]Full text search records not showing up

I have a column in my table to which I have added a Full Text Index. 我的表中有一列,其中已添加了全文索引。 When I write a query to do contains on that particular column, the query gives the output of those records which matches with contain and which were added to the table before 3-4 hours and later. 当我编写查询以在该特定列上进行包含时,该查询将提供与contains匹配且在3-4小时及之后添加到表中的那些记录的输出。 Those records which are added recently to the table don't show up in the output even though their text matches with the contains text. 那些最近添加到表中的记录即使它们的文本与包含文本匹配也不会显示在输出中。

Create table Table1 (Id int, Name varchar(20), Message varchar(1000), CreatedAt datetime)

Message is the column which has full text index. 消息是具有全文索引的列。

Can someone please help me as to why is this behavior of SQL and what can I do to rectify this? 有人可以帮我了解为什么这种SQL行为,我该怎么做才能纠正此问题?

It sounds like your full text index isn't being populated after changes to the data. 听起来好像在更改数据后没有填充您的全文索引。 You should either set up automatic population of the index or perform manual population whenever you update the data. 您应该在更新数据时设置索引的自动填充或执行手动填充

More here: MSDN: Populate Full-Text Indexes 更多信息在这里: MSDN:填充全文本索引

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM