Home > Archive > SQL Server Full-Text Search > January 2006 > Issue with full-text query (containstable)..









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Issue with full-text query (containstable)..
noel.whelan@gmail.com

2006-01-11, 11:23 am

I've got a full-text index on a table 'items' with an image field
'item' into which I've imported word and pdf documents. I've only got
~10 docs imported currently, for testing. I know that each of these
documents, except for one, includes the term 'ontology' or
'ontologies'.

I've got the following query, which gives back only two of these
documents (1 word, 1 pdf):

select i.*, ct.rank as incl_ctr
from items i inner join
containstable(items,
item,
' ("class*" and "info*") or "ontology" '
) ct on i.id = ct.[key]
where (ct.rank > 1) and i.incl_ext in ('.doc','.pdf')
order by ct.rank desc;

I know this is incomplete, based on the content of each document, which
is an issue I'd like to work out; but prior to that, if I write the
query with "onto*" as a prefix term instead of "ontology", it only
gives back one of the two docs (the pdf):

select i.*, ct.rank as incl_ctr
from items i inner join
containstable(items,
item,
' ("class*" and "info*") or "onto*" '
) ct on i.id = ct.[key]
where (ct.rank > 1) and i.incl_ext in ('.doc','.pdf')
order by ct.rank desc;

I can't identify why this is. I'd be very interested in whatever input
I could get on this..

Installed evaluation version: 2000 - 8.00.194 on Windows XP.

noel.whelan@gmail.com

2006-01-12, 1:23 pm

Installing the pdf ifilter improves the circumstance described in the
initial post; yet I think it's odd that onto* yields fewer docs in that
query than ontology, which continues to be the case..

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com