So far, I'm not getting meaningful results from my full-text queries so I decided to give a simple example of what I am trying to do and the results I expect.
I've made the the following test table (tblCars) with full-text enabled for the column [Car] and primary key [CarID].
CarID Car ----- ----------------- 9 BMW 330Ci 2009 14 AUDI A4 2010 16 AUDI A3 2.0T 2009
I want to run a ranked search for the terms 'audi OR bmw', I expect to get equal rankings on all search results.
SELECT tblCars.*, [RANK] AS Ranked FROM viewCarSearch INNER JOIN (SELECT [KEY] AS CarID, [RANK] AS Ranked FROM CONTAINSTABLE (tblCars, Car, @SearchOr)) tblSearch ON tblCars.CarID = tblSearch.CarID
Instead I get this:
CarID Car Ranked ----- ------------------ ------- 9 BMW 330Ci 2009 48 14 AUDI A4 2010 32 16 AUDI A3 2.0T 2009 32
In fact, no matter what combination of ORs I do, the BMW is always ranked higher or equal to the AUDI even if it seems totally illogical. I've tried using some ANDs in my search term and still it gives strange results, with the BMW always showing more favorably than expected.
Can anyone point to where I'm going wrong... I'm thinking my expectations must be all wrong, but I can't imagine how I'm gonna get well ranked results for a large table.