Re: FTS Weighted Values Implementation Problem
- From: Organic Man <davidmcmillin@xxxxxxx>
- Date: Thu, 06 Sep 2007 08:41:09 -0700
I have been making it too hard (as usual).
Instead of trying to cast from double or decimal to string (or vice
versa), I should have just started out with whole numbers between 0-9
as string data and concatenated into decimal string data. I thought
the SELECT statement required double or decimal data. String is just
fine all the way.
Dim Weight1 As String
Weight1 = ("." + WeightTextBox1.Text)
Dim Weight2 As String
Weight2 = ("." + WeightTextBox2.Text)
Dim Weight3 As String
Weight3 = ("." + WeightTextBox3.Text)
Dim adp As New SqlDataAdapter("SELECT FT_TBL.FullDocNo,
FT_TBL.DocType, KEY_TBL.RANK FROM FullDocuments AS FT_TBL INNER JOIN
CONTAINSTABLE(FullDocuments, SectionText, 'ISABOUT (""" + SearchTerm1
+ """ weight (""" + Weight1 + """), """ + SearchTerm2 + """ weight
(""" + Weight1 + """), """ + SearchTerm2 + """ weight (""" + Weight3 +
""") )' ) AS KEY_TBL ON FT_TBL.FullDocumentID = KEY_TBL.[KEY] ORDER BY
KEY_TBL.RANK DESC ", conn)
Thanks for sticking with me till resolution.
Best wishes,
Dave
On Sep 5, 3:39 pm, "Jean-Pierre Riehl" <jean-pierre.ri...@b-e-w-i-s-
e.fr> wrote:
Hi,
Message="Syntax error near 'RealWeight1.ToString' in the full-text
You wrote RealWeight1.ToString() as a literal string instead of a
concatenation of values.
Don't miss the parenthesis indicating to use ToString method on double
object.
You shoud use String.Format routine to prepare your Full-Text query, it
would be clearer in your mind. See MSDN documentation for examples.
.
- References:
- FTS Weighted Values Implementation Problem
- From: Organic Man
- Re: FTS Weighted Values Implementation Problem
- From: Jean-Pierre Riehl
- Re: FTS Weighted Values Implementation Problem
- From: Organic Man
- Re: FTS Weighted Values Implementation Problem
- From: Jean-Pierre Riehl
- Re: FTS Weighted Values Implementation Problem
- From: Organic Man
- Re: FTS Weighted Values Implementation Problem
- From: Jean-Pierre Riehl
- Re: FTS Weighted Values Implementation Problem
- From: Organic Man
- Re: FTS Weighted Values Implementation Problem
- From: Jean-Pierre Riehl
- Re: FTS Weighted Values Implementation Problem
- From: Organic Man
- Re: FTS Weighted Values Implementation Problem
- From: Jean-Pierre Riehl
- Re: FTS Weighted Values Implementation Problem
- From: Organic Man
- Re: FTS Weighted Values Implementation Problem
- From: Jean-Pierre Riehl
- FTS Weighted Values Implementation Problem
- Prev by Date: Re: FTS Weighted Values Implementation Problem
- Next by Date: Re: Get the FTS index keywords list
- Previous by thread: Re: FTS Weighted Values Implementation Problem
- Next by thread: Re: double space handling
- Index(es):
Relevant Pages
|