Looks like I'm stuck.
In order to create a Full Text Index on my view, the view has to have a
unique index.
SQL 2005 doesn't allow you to create a index on a view if the view contains
an text, ntext, image or xml columns.
And mine does because we're storint the resume in an image column and the
resume is what we're after.
We can't add any special tokens, the content is an image field.
Any other ideas?
Kyle,
a) you can create an index on a view if you use VARCHAR(MAX) or
VARBINARY(MAX) instead of TEXT or IMAGE (which are deprecated in sql 2005).
b) AFAIK, those "tokens" can be other columns from the same view/table that
are also indexed in that FT catalog. You just specify CONTAINS(*,... Instead
of CONTAINS(MyClobColumn,...
it should work.
> Looks like I'm stuck.
>
[quoted text clipped - 92 lines]
>>>>
>>>> TIA - Kyle!
Kyle Jedrusiak - 26 Dec 2006 14:23 GMT
I will have to try changing the type over to VARBINARY(MAX). That may work.
It mght also be easier to FTI a second column since that will require less
program changes.
Thanks
> Kyle,
>
[quoted text clipped - 104 lines]
>>>>>
>>>>> TIA - Kyle!
Kyle Jedrusiak - 26 Dec 2006 18:19 GMT
I added Office nvchar(8) to my table and populated int
select count(DocumentID) from Document where contains(*, 'Office01 and
cobol')
> Kyle,
>
[quoted text clipped - 104 lines]
>>>>>
>>>>> TIA - Kyle!
Kyle Jedrusiak - 26 Dec 2006 18:24 GMT
I added a Office nvchar(8) column and populated it.
No matter what I specify for a search condition, it doesn't return what I'm
after.
For a test I tried
select count(DocumentID) from Document where contains(*, 'Office02 and
cobol')
'Office02' is in the new column, 'cobol' is in the image column.
If I search for them seperately there is overlap so the data is correct.
Ideas?
> Kyle,
>
[quoted text clipped - 104 lines]
>>>>>
>>>>> TIA - Kyle!
Kyle Jedrusiak - 26 Dec 2006 18:36 GMT
To be clear the 'Office' column will only ever hold an office identifier
liket 'Office01' or 'Office13'.
The Content column has the interedting data.
We want to use containstable to give us the top n by rank DocumentIDs for a
particular office.
>I added a Office nvchar(8) column and populated it.
>
[quoted text clipped - 120 lines]
>>>>>>
>>>>>> TIA - Kyle!