Re: Problems with CONTAINS
- From: "Hilary Cotter" <hilary.cotter@xxxxxxxxx>
- Date: Mon, 18 Sep 2006 21:07:21 -0400
I assume you are using the French Word breaker even though you are in
Quebec. In this case HYDRO-QUÉBEC will only match with HYDRO-QUÉBEC. If you
are using by change the US or UK English word breakers or the neutral word
breaker it will match with HYDRO QUÉBEC, HYDRO-QUÉBEC, or HYDRO. QUÉBEC.
Does this explain what you are seeing?
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"LeCitadin" <boucher.pierre@xxxxxxxxx> wrote in message
news:1158605251.509317.131840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am executing the followings SELECT and the results are not as
expected.
======================================
Search 1
SELECT Valeur
FROM RechercheChaines
WHERE CONTAINS (Valeur, 'HYDRO-QUÉBEC')
Valeur
--------------------------------------------
BROCHURE HYDRO-QUÉBEC
======================================
Search 2
SELECT Valeur
FROM RechercheChaines
WHERE Valeur LIKE '%HYDRO-QUÉBEC%'
Valeur
--------------------------------------------
BROCHURE HYDRO-QUÉBEC
BROCHURE PUBLICATION D'HYDRO-QUÉBEC
PUBLICATION D'HYDRO-QUÉBEC
RAPPORT ANNUEL PUBLICATION D'HYDRO-QUÉBEC
RAPPORT PUBLICATION D'HYDRO-QUÉBEC
RAPPORT TECHNIQUE PUBLICATION D'HYDRO-QUÉBEC
======================================
As you can see, the two SELECT does not return the same results. The
search 2 is the one I was expected in the fulltext search.
We are using a french separator file.
Any ideas ?
.
- References:
- Problems with CONTAINS
- From: LeCitadin
- Problems with CONTAINS
- Prev by Date: Problems with CONTAINS
- Next by Date: Re: Backup failure due to full-text indexing
- Previous by thread: Problems with CONTAINS
- Index(es):
Relevant Pages
|
Loading