Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Full-Text Search / July 2008

Tip: Looking for answers? Try searching our database.

Incorrect RANK results returned

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry Neylon - 15 Jul 2008 09:52 GMT
Morning all,

I'm having problems with my FTS rankings on our SQL2005 database and I'm a
bit stumped as where to start looking at what the the problem might be.

The simplified SQL is as follows:
---------------------------------------------------------------------------------------------

DECLARE @SEARCH nvarchar(2000)

SET @search = '"touchpoints"'

SELECT TOP 250 [KEY], SUM(Rank) AS Rank, content_live.title

FROM

(

SELECT Rank, [KEY] from CONTAINSTABLE(content_live,(title), @search)

) AS ftt

INNER JOIN content_live ON content_live.id = [KEY]

GROUP BY

[KEY], content_live.title

ORDER BY Rank DESC

---------------------------------------------------------------------------------------------

This returns me the following example results:

---------------------------------------------------------------------------------------------

KEY    RANK  TITLE
3304    192    TouchPoints Site: Using TouchPoints
3324    96     TouchPoints Site: Contact Us
3267    64     TouchPoints Site: TouchPoints Home
2137    48     Vision vs. practice seminar - agencies, media owners and
clients to discuss their views on TouchPoints
3273    32     TouchPoints Site: How we do it

---------------------------------------------------------------------------------------------

My problem is that the 3rd result with a Rank of 64 should have a rank of
192 based upon the occurence of the word "TouchPoints".

If I rebuild the index then I get the correct results back, but with the
knowledge that it'll start going wrong again.

The table in question is set to Track Changes : Automatic.

Title field is VARCHAR(1000).

Version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86)   Mar 23 2007
16:28:52   Copyright (c) 1988-2005 Microsoft Corporation  Standard Edition
on Windows NT 5.2 (Build 3790: Service Pack 2)

Any suggestions of what might be causing this problem?

Are there some settings that I need to change to ensure that the Rankings
get updated correctly?

Do I need to go through the crawl logs to see if there is a problem that
stops population (even though I'm sure that the record in question hasn't
been changed).

Anyone else seen this issue?

Many thanks,

Larry.
Hilary Cotter - 15 Jul 2008 10:54 GMT
You may need to reorganize your catalog/index from time to time. You will
occasionally get results like this if you are using change tracking.

> Morning all,
>
[quoted text clipped - 70 lines]
>
> Larry.
Larry Neylon - 15 Jul 2008 11:20 GMT
Thanks for the reply Hilary,

The "occasionally get results like this" seems very woolly.  Has MS got any
guidelines around this area to give an indication of how often I should be
reorganizing?

Are there any alternatives to Automatic Change Tracking?  There will only be
100 or so changes in a day, but the user would want to see the results
reasonably quickly.

We're talking 10,000s of records rather than millions.

Thanks again,
Larry.

> You may need to reorganize your catalog/index from time to time. You will
> occasionally get results like this if you are using change tracking.
[quoted text clipped - 73 lines]
>>
>> Larry.
Hilary Cotter - 15 Jul 2008 16:04 GMT
run full or incremental populations then:)

> Thanks for the reply Hilary,
>
[quoted text clipped - 89 lines]
>>>
>>> Larry.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.