Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

FULL TEXT SEARCH PROBLEM

 
   Database Forums (Home) -> Full Text RSS
Next:  How to get a JPG image from a PDF?  
Author Message
in da club

External


Since: Jan 29, 2008
Posts: 7



(Msg. 1) Posted: Fri Feb 01, 2008 5:05 am
Post subject: FULL TEXT SEARCH PROBLEM
Archived from groups: microsoft>public>sqlserver>fulltext (more info?)

I have a table which has a record T17.1.516.32

I try
SELECT Urun_Ad as guUrun_Ad

FROM TBL_URUNLER

WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' )

))

it returns T17.1.516.32

i try

SELECT Urun_Ad as guUrun_Ad

FROM TBL_URUNLER

WHERE ( (CONTAINS(Urun_Ad, '"*1.516.32*"' )

))

it returns

T17.1.516.32



and i try

SELECT Urun_Ad as guUrun_Ad

FROM TBL_URUNLER

WHERE ( (CONTAINS(Urun_Ad, '"*516.32*"' )

))



it returns nothing. How can i solve the problem. i need like operator task
in fts.

 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Hilary Cotter

External


Since: Oct 09, 2005
Posts: 78



(Msg. 2) Posted: Tue Feb 05, 2008 11:25 am
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

you need to prepend a noise word on your query, ie:

use pubs
GO
create table fttable (pk int not null identity constraint fttablepk
primary key,
charcol char(200))
GO
insert into fttable values('516.32')
insert into fttable values('T17.1.516.32')
GO
sp_fulltext_database 'enable'
GO
create fulltext catalog test as default
GO
create fulltext index on fttable(charcol) key index fttablepk
GO
select * from fttable where contains(*,'516.32')--hit to 516.32
select * from fttable where contains(*,'1.516.32.1')--hit to
T17.1.516.32
select * from fttable where contains(*,'1.516.32')--hit to
T17.1.516.32


On Feb 1, 3:02 am, "in da club" <s> wrote:
> I have a table which has a record  T17.1.516.32
>
> I try
> SELECT Urun_Ad as guUrun_Ad
>
> FROM TBL_URUNLER
>
> WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' )
>
> ))
>
> it returns T17.1.516.32
>
> i try
>
> SELECT Urun_Ad as guUrun_Ad
>
> FROM TBL_URUNLER
>
> WHERE ( (CONTAINS(Urun_Ad, '"*1.516.32*"' )
>
> ))
>
> it returns
>
> T17.1.516.32
>
> and i try
>
> SELECT Urun_Ad as guUrun_Ad
>
> FROM TBL_URUNLER
>
> WHERE ( (CONTAINS(Urun_Ad, '"*516.32*"' )
>
> ))
>
> it returns nothing. How can i solve the problem. i need like operator task
> in fts.

 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
in da club

External


Since: Jan 29, 2008
Posts: 7



(Msg. 3) Posted: Wed Feb 06, 2008 6:09 am
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I deleted all noise words and chars in noiseXX..txt files. I know that it is
not a noise word issue.



"Hilary Cotter" , haber iletisinde sunlari
yazdi:fced9e28-2f5a-4111-b32a-7db63180edf0@q77g2000hsh.googlegroups.com...
you need to prepend a noise word on your query, ie:

use pubs
GO
create table fttable (pk int not null identity constraint fttablepk
primary key,
charcol char(200))
GO
insert into fttable values('516.32')
insert into fttable values('T17.1.516.32')
GO
sp_fulltext_database 'enable'
GO
create fulltext catalog test as default
GO
create fulltext index on fttable(charcol) key index fttablepk
GO
select * from fttable where contains(*,'516.32')--hit to 516.32
select * from fttable where contains(*,'1.516.32.1')--hit to
T17.1.516.32
select * from fttable where contains(*,'1.516.32')--hit to
T17.1.516.32


On Feb 1, 3:02 am, "in da club" <s> wrote:
> I have a table which has a record T17.1.516.32
>
> I try
> SELECT Urun_Ad as guUrun_Ad
>
> FROM TBL_URUNLER
>
> WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' )
>
> ))
>
> it returns T17.1.516.32
>
> i try
>
> SELECT Urun_Ad as guUrun_Ad
>
> FROM TBL_URUNLER
>
> WHERE ( (CONTAINS(Urun_Ad, '"*1.516.32*"' )
>
> ))
>
> it returns
>
> T17.1.516.32
>
> and i try
>
> SELECT Urun_Ad as guUrun_Ad
>
> FROM TBL_URUNLER
>
> WHERE ( (CONTAINS(Urun_Ad, '"*516.32*"' )
>
> ))
>
> it returns nothing. How can i solve the problem. i need like operator task
> in fts.
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Hilary Cotter

External


Since: Oct 09, 2005
Posts: 78



(Msg. 4) Posted: Wed Feb 06, 2008 8:25 am
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Add them back in.

Basically SQL FTS considers the * to be noise, so if what you are
looking for is also noise SQL FTS will be unable to tell them apart.

On Feb 6, 6:10 am, "Daniel Crichton" wrote:
> in wrote  on Wed, 6 Feb 2008 09:48:07 +0200:
>
> > I deleted all noise words and chars in noiseXX..txt files. I know that
> > it is  not a noise word issue.
>
> Why are you using * at the start of terms? FTS just ignores that, it's not
> part of the documentation.
>
> As to why it's not working, no idea. After you deleted the noise words did
> you do a full rebuild?
>
> Dan
>
>
>
>
>
> > "Hilary Cotter" , haber iletisinde sunlari yazdi:fced9e28-2f5a-4111-b32a-7db63180e...@q77g2000hsh.googlegroups.com.
> > ..
> > you need to prepend a noise word on your query, ie:
> > use pubs
> > GO create table fttable (pk int not null identity constraint fttablepk
> > primary key, charcol char(200))
> > GO insert into fttable values('516.32')
> > insert into fttable values('T17.1.516.32')
> > GO sp_fulltext_database 'enable'
> > GO create fulltext catalog test as default
> > GO create fulltext index on fttable(charcol) key index fttablepk
> > GO select * from fttable where contains(*,'516.32')--hit to 516.32
> > select * from fttable where contains(*,'1.516.32.1')--hit to
> > T17.1.516.32 select * from fttable where contains(*,'1.516.32')--hit to
> > T17.1.516.32
> > On Feb 1, 3:02 am, "in da club" <s> wrote:
>
>  >> I have a table which has a record T17.1.516.32
>
>  >> I try
>  >> SELECT Urun_Ad as guUrun_Ad
>
>  >> FROM TBL_URUNLER
>
>  >> WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' )
>
>  >> ))
>
>  >> it returns T17.1.516.32
>
>  >> i try
>
>  >> SELECT Urun_Ad as guUrun_Ad
>
>  >> FROM TBL_URUNLER
>
>  >> WHERE ( (CONTAINS(Urun_Ad, '"*1.516.32*"' )
>
>  >> ))
>
>  >> it returns
>
>  >> T17.1.516.32
>
>  >> and i try
>
>  >> SELECT Urun_Ad as guUrun_Ad
>
>  >> FROM TBL_URUNLER
>
>  >> WHERE ( (CONTAINS(Urun_Ad, '"*516.32*"' )
>
>  >> ))
>
>  >> it returns nothing. How can i solve the problem. i need like operator
>  >> task in fts.- Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Daniel Crichton

External


Since: Apr 21, 2006
Posts: 74



(Msg. 5) Posted: Wed Feb 06, 2008 9:00 am
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

in wrote on Wed, 6 Feb 2008 09:48:07 +0200:

> I deleted all noise words and chars in noiseXX..txt files. I know that
> it is not a noise word issue.


Why are you using * at the start of terms? FTS just ignores that, it's not
part of the documentation.

As to why it's not working, no idea. After you deleted the noise words did
you do a full rebuild?

Dan



> "Hilary Cotter" , haber iletisinde sunlari yazdi:fced9e28-2f5a-4111-b32a-7db63180edf0@q77g2000hsh.googlegroups.com.
> ..
> you need to prepend a noise word on your query, ie:

> use pubs
> GO create table fttable (pk int not null identity constraint fttablepk
> primary key, charcol char(200))
> GO insert into fttable values('516.32')
> insert into fttable values('T17.1.516.32')
> GO sp_fulltext_database 'enable'
> GO create fulltext catalog test as default
> GO create fulltext index on fttable(charcol) key index fttablepk
> GO select * from fttable where contains(*,'516.32')--hit to 516.32
> select * from fttable where contains(*,'1.516.32.1')--hit to
> T17.1.516.32 select * from fttable where contains(*,'1.516.32')--hit to
> T17.1.516.32


> On Feb 1, 3:02 am, "in da club" <s> wrote:
>> I have a table which has a record T17.1.516.32

>> I try
>> SELECT Urun_Ad as guUrun_Ad

>> FROM TBL_URUNLER

>> WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' )

>> ))

>> it returns T17.1.516.32

>> i try

>> SELECT Urun_Ad as guUrun_Ad

>> FROM TBL_URUNLER

>> WHERE ( (CONTAINS(Urun_Ad, '"*1.516.32*"' )

>> ))

>> it returns

>> T17.1.516.32

>> and i try

>> SELECT Urun_Ad as guUrun_Ad

>> FROM TBL_URUNLER

>> WHERE ( (CONTAINS(Urun_Ad, '"*516.32*"' )

>> ))

>> it returns nothing. How can i solve the problem. i need like operator
>> task in fts.
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
in da club

External


Since: Jan 29, 2008
Posts: 7



(Msg. 6) Posted: Wed Feb 06, 2008 3:01 pm
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

it is not a noise word issue.
I try SND191P
it returns SND191P ( it is stored as SND191P in db)

However When i try 191P it returns nothing.
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Daniel Crichton

External


Since: Apr 21, 2006
Posts: 74



(Msg. 7) Posted: Wed Feb 06, 2008 3:01 pm
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

in wrote on Wed, 6 Feb 2008 19:12:10 +0200:

> it is not a noise word issue.
> I try SND191P it returns SND191P ( it is stored as SND191P in db)

> However When i try 191P it returns nothing.

That's how it should work, FTS looks for whole words, or prefix's. It does
not allow searching for the end or middle of words.

When you say you cleared out the noise word file, did you remember to leave
a single space in it?

--
Dan
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Hilary Cotter

External


Since: Oct 09, 2005
Posts: 78



(Msg. 8) Posted: Wed Feb 06, 2008 3:01 pm
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

my trick only works if there is a . or another character that sql fts
recognizes as a word boundary marker like . or ! or ?, and sometimes
-.

you will have to do a like.


On Feb 6, 12:12 pm, "in da club" <s> wrote:
> it is not a noise word issue.
> I try  SND191P
> it returns SND191P ( it is stored as SND191P in db)
>
> However When i try 191P it returns nothing.
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Hilary Cotter

External


Since: Oct 09, 2005
Posts: 78



(Msg. 9) Posted: Wed Feb 06, 2008 3:01 pm
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

My trick only works with a . or other word boundary descriminator
like ? or ! or , and some others.

You will need to do a like.

On Feb 6, 12:20 pm, "Daniel Crichton" wrote:
> in wrote  on Wed, 6 Feb 2008 19:12:10 +0200:
>
> > it is not a noise word issue.
> > I try  SND191P it returns SND191P ( it is stored as SND191P in db)
> > However When i try 191P it returns nothing.
>
> That's how it should work, FTS looks for whole words, or prefix's. It does
> not allow searching for the end or middle of words.
>
> When you say you cleared out the noise word file, did you remember to leave
> a single space in it?
>
> --
> Dan
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
in da club

External


Since: Jan 29, 2008
Posts: 7



(Msg. 10) Posted: Thu Feb 07, 2008 9:00 am
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What can i do to use prefix search . Do i leave FTS and use like operator ?
any idea?
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Hilary Cotter

External


Since: Oct 09, 2005
Posts: 78



(Msg. 11) Posted: Thu Feb 07, 2008 9:01 am
Post subject: Re: FULL TEXT SEARCH PROBLEM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

one thing you can do is to store your content in reverse from and then
reverse your search phase and do the wildcard that way, ie a search on
*phone would be searched as enohp*.

Other than that you need to do a like.

On Feb 7, 5:39 am, "in da club" <s> wrote:
> What can i do to use prefix search . Do i leave FTS and use like operator ?
> any idea?
 >> Stay informed about: FULL TEXT SEARCH PROBLEM 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
FULL TEXT SEARCH - PROBLEM - I have query like that SELECT Urun_ID ,Urun_Ad FROM TBL_URUNLER WHERE CONTAINS(Urun_Ad, '"*mta1000-*"' ) it returns 62 MTA1000-1 When i chance the search phrase mta1000-1 it returns nothing. Urun_Ad is defined as NVARCHAR(50...

Problem running full text search - it's broken! - I have a 2-tier application The top tier is a web tier (IIS/ASP) and the lower tier runs SQLServer. This works fine for ALL database calls, except when it requires a full text query. The error message received is: --------------------------- Microsof...

Problem building index for Full text search - I have a clustered SQL Server 2000 and have created a search catalog for one of our databases using MS Search. I am getting some weird behaviour: When the cluster group is running on Server1 the index gets created successfully. However if I move the..

FULL TEXT SEARCH AND RECORD NUMBER PROBLEM - I dynamically create my query based on filter criteria , order by criteria and paging criterias. I have no promlem at that point. My problem is that How can i get total record number of my recordset in stored procedure. What is the best way to get it....

SQL 2000 Full Text Search - Hi all, Appologies if this has been asked before, I have been searching for days now on how to do this without success. We have a database we would like users to be able to search I have enabled full text search and it works great but I cannot figure..
   Database Forums (Home) -> Full Text All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]