Yes, I thought so. While the pubs and northwind database tables are good
> Hello, John. Thank you for your reply.
>
> Yes, I understand. Unfortunately, I'm using the pubs db, and I only have
> about 50 titles in the 'Titles' table.
> Here are the results of my query:
> --------------------------------------------------------------------------
------------------------------------------------
> Rank/Title/Notes/First Name/Last Name
>
> 375/We don't drink that much/Essay on abstinence./Napoleon/Borcan
>
> 266/Que c'est bon, c'est bon, c'est bon !/Essai sur les joies de boire
> beaucoup. Abstinents s'abstenir (eng: abstinence)./Pisica/Rindunel
>
> 121/No *abstinence* for me, please !/A smoker's paradise.
Smoke-smoke-smoke,
> boy, oh, isn't it a joy ?/Alberta/Curisor
>
> 121/ABSTINENCE for dummies./An epicurian's guide./Pupu/Balacarescu
> --------------------------------------------------------------------------
------------------------------------------------
>
> and this is the query, which is correct:
>
> --------------------------------------------------------------------------
------------------------------------------------
> strSearch = "SELECT " & _
> "SearchTable.[Rank], Titles.title as Title, Titles.notes
as
> Notes, Authors.au_fname as [First Name], Authors.au_lname as [Last Name]"
&
> _
> "FROM " & _
> "FREETEXTTABLE(Titles, *, '" & strText & "') as
SearchTable
> " & _
> "INNER JOIN Titles ON SearchTable.[Key] = Titles.title_id
"
> & _
> "INNER JOIN TitleAuthor ON Titles.title_id =
> TitleAuthor.title_id " & _
> "INNER JOIN Authors ON TitleAuthor.au_id = Authors.au_id "
&
> _
> "ORDER BY SearchTable.[Rank] DESC"
> --------------------------------------------------------------------------
------------------------------------------------
> The version is:
> Microsoft SQL Server 2000 - 8.00.194 (Intel X86) Aug 6 2000 00:57:48
> Copyright (c) 1988-2000 Microsoft Corporation Developer Edition on
Windows
> NT 5.1 (Build 2600: Service Pack 2)
>
> Alex.
>
>
>
>
> "John Kane" <jt-kane@comcast.net> wrote in message
> news:Oof9C5DBFHA.3644@TK2MSFTNGP15.phx.gbl...
> > Hi Alex,
> > Yes, I do, but it is complex and you need to understand a bit about
basic
> > Informational Retrieval theory. The Rank value from FREETEXTTABLE is
based
> > upon what is known as OKAPI or BM25 that was developed by Stephen
> > Robertson
> > (
http://research.microsoft.com/users/robertson/). You can see some of
the
> > formula documented in "SQL Server 2005 Full-Text Search: Internals and
> > Enhancements" at:
> >
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql90/html/sql2005ftsearch.asp
> > Specifically, under "Ranking of FREETEXT" -
> >
> > "Freetext ranking is based on the OKAPI BM25 ranking formula. Each term
in
> > the query is ranked, and the values are summed. Freetext queries will
add
> > words to the query via inflectional generation (stemmed forms of the
> > original query terms); these words are treated as separate terms with no
> > special weighting or relationship with the words from which they were
> > generated. Synonyms generated from the Thesaurus feature are treated as
> > separate, equally weighted terms."...
> >
> > See also
http://wickedsmrt.blogspot.com/2003_05_01_wickedsmrt_archive.html > > "From MS Newsgroups: However it was my understanding that rank is based
on
> > this formula:
> > ? W(i)=(K1+1) ?idf(i)?(K2+1) ?tf(i.j) /( K1?[(1-b)+b?dl
> > (j)/avdl])?K3(tf(i.j))
> >
> > W(i) - rank from each term in the search phrase
> > idf(i) - iS the inverse document frequency of term i
> > tf(i,j) - is the term frequency for term i, in row j
> > K1,K2,K3 - are constants
> > dl - is row/column length in words
> > AVdl - is the average row/column length length in words"
> >
> > Another factor is the number of rows and the number of unique non-noise
> > words per row as you must have a statistically significant number of
rows
> > (at least 10,000) for the OKAPI BM25 Freetexttable Rank value to be
> > meaningful. How many rows are in your table "titles"? Also keep in mind
> > that
> > the Rank values are specific to your freetext query and primarily useful
> > for
> > ordering of the results. See SQL Server 2000 BOL title "Full-text Search
> > Recommendations" - "What is RANK and how is it determined when used with
> > CONTAINSTABLE and FREETEXTTABLE predicates?..." for more info.
> >
> > Yes, OKAPI BM25 is very reliable, but complex. Note, that for US
English,
> > SQL FTS is case insensitive and "ABSTINENCE" will have the same rank
value
> > as "abstinence" with all other factors being equal. It is complex as you
> > can
> > see, but what is your true objective? Could you provide the exact
Freetext
> > query with sample data and results as well as the full output of SELECT
> > @@version ?
> >
> > Hope that helps!
> > John
> > --
> > SQL Full Text Search Blog
> >
http://spaces.msn.com/members/jtkane/ > >
> >
> >
> > "msnews.microsoft.com" <REMOVETHIScuca_macaii2000@yahoo.com> wrote in
> > message news:#YEbgXDBFHA.3824@TK2MSFTNGP10.phx.gbl...
> >> Hi. I have a question - does anyone know on what criteria is the rank
set
> > by
> >> FreeTextTable ? I created some records in the table "titles" containing
> > the
> >> words "drink", "much" and "abstinence" and.... well.... I can find no
> > rhyme
> >> or reason to the way this rank is established. I got the ranks 293,
266,
> > 266
> >> and 154. The funny thing is that a title like "No *abstinence* for me,
> >> please !" has a higher rank than "ABSTINENCE for dummies." with the
word
> > in
> >> capitals.
> >>
> >> So... how exactly is this rank set ? How reliable is it ?
> >>
> >> I'm "afraid" to filter the returns (for instance TOP N) and I am
"afraid"
> > to
> >> set conditions like "where rank >...." (of course, I could always show
> >> all
> >> the hits and page the datagrid).
> >>
> >> Thanks a lot.
> >> Alex.
> >>
> >>
> >
> >
>
>