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

Searching by suffix, columns with dots and digits

 
   Database Help (Home) -> Full Text RSS
Next:  IUGN Christmas Dinner  
Author Message
Wojciech Kowasz

External


Since: Dec 16, 2009
Posts: 2



(Msg. 1) Posted: Wed Dec 16, 2009 1:25 pm
Post subject: Searching by suffix, columns with dots and digits
Archived from groups: microsoft>public>sqlserver>fulltext (more info?)

Hello,

I have an ASP.NET application and SQL Server 2008 Web backend. I use
full-text catalog for searching and I'm looking for some advices.

The FT-indexed data table stores programs names and versions. It consists of
several columns: varchar(50) Name (like "OpenOffice") and varchar(50)
Version (like "2.0"). I would like to be able to search both by name and
name+version. For example, the search results should contain OpenOffice 2.0
after querying for "openoffice" or "openoffice 2.0". It should also search
by prefix (OpeOffice 2.0 should come up after searching for "open") and
suffix (searching for "office").

Now to partially accomplish that scenario I have another column called
FullTextName and it stores Name and Version values combined without the dots
(e.g. "OpenOffice 20"). When the user types "openoffice 2.0" in the search
box, I add the asterisks, divide it to '"openoffice *" AND "20 *"' and
search in FullTextName column using CONTAINSTABLE. It works, however I don't
know how to search by suffix - when the user types "office" he's unable to
find "OpenOffice". I've come up with the idea of storing another column with
reversed Name, but then the Version column is causing some further
problems...

Could anyone give me some hints about how to do it so that it will work
fine? Smile I believe Full-Text is a powerfull tool and there must be some way
to do it right.

Thank you very much for any suggestions and comments.

Regards,
Wojciech

 >> Stay informed about: Searching by suffix, columns with dots and digits 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 458



(Msg. 2) Posted: Wed Dec 16, 2009 1:25 pm
Post subject: Re: Searching by suffix, columns with dots and digits [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

First off - what are you doing using OpenOffice;) This is an MS platform for
gosh sakes.

Secondly searching on Open* should return hits to OpenOffice.

You can't search on suffixes. This might ship in another version of the
product as it is a frequently demanded feature.

Most of the time when I have to search on suffixes I do the reverse trick
you mention.


"Wojciech Kowasz" wrote in message

> Hello,
>
> I have an ASP.NET application and SQL Server 2008 Web backend. I use
> full-text catalog for searching and I'm looking for some advices.
>
> The FT-indexed data table stores programs names and versions. It consists
> of several columns: varchar(50) Name (like "OpenOffice") and varchar(50)
> Version (like "2.0"). I would like to be able to search both by name and
> name+version. For example, the search results should contain OpenOffice
> 2.0 after querying for "openoffice" or "openoffice 2.0". It should also
> search by prefix (OpeOffice 2.0 should come up after searching for "open")
> and suffix (searching for "office").
>
> Now to partially accomplish that scenario I have another column called
> FullTextName and it stores Name and Version values combined without the
> dots (e.g. "OpenOffice 20"). When the user types "openoffice 2.0" in the
> search box, I add the asterisks, divide it to '"openoffice *" AND "20 *"'
> and search in FullTextName column using CONTAINSTABLE. It works, however I
> don't know how to search by suffix - when the user types "office" he's
> unable to find "OpenOffice". I've come up with the idea of storing another
> column with reversed Name, but then the Version column is causing some
> further problems...
>
> Could anyone give me some hints about how to do it so that it will work
> fine? Smile I believe Full-Text is a powerfull tool and there must be some
> way to do it right.
>
> Thank you very much for any suggestions and comments.
>
> Regards,
> Wojciech

 >> Stay informed about: Searching by suffix, columns with dots and digits 
Back to top
Login to vote
Wojciech Kowasz

External


Since: Dec 16, 2009
Posts: 2



(Msg. 3) Posted: Wed Dec 16, 2009 2:25 pm
Post subject: Re: Searching by suffix, columns with dots and digits [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Personally I do not use OpenOffice, but unfortunately have some users that
need to search for it Wink

So, I'm going to do it that way: first, do a "normal" search, then do a
"reversed" search and then select distinct from both results. I'm afraid
there is no better way to do it than two separate queries?

Thanks,
Wojciech

"Hilary Cotter" wrote in message

> First off - what are you doing using OpenOffice;) This is an MS platform
> for gosh sakes.
>
> Secondly searching on Open* should return hits to OpenOffice.
>
> You can't search on suffixes. This might ship in another version of the
> product as it is a frequently demanded feature.
>
> Most of the time when I have to search on suffixes I do the reverse trick
> you mention.
>
>
> "Wojciech Kowasz" wrote in message
>
>> Hello,
>>
>> I have an ASP.NET application and SQL Server 2008 Web backend. I use
>> full-text catalog for searching and I'm looking for some advices.
>>
>> The FT-indexed data table stores programs names and versions. It consists
>> of several columns: varchar(50) Name (like "OpenOffice") and varchar(50)
>> Version (like "2.0"). I would like to be able to search both by name and
>> name+version. For example, the search results should contain OpenOffice
>> 2.0 after querying for "openoffice" or "openoffice 2.0". It should also
>> search by prefix (OpeOffice 2.0 should come up after searching for
>> "open") and suffix (searching for "office").
>>
>> Now to partially accomplish that scenario I have another column called
>> FullTextName and it stores Name and Version values combined without the
>> dots (e.g. "OpenOffice 20"). When the user types "openoffice 2.0" in the
>> search box, I add the asterisks, divide it to '"openoffice *" AND "20 *"'
>> and search in FullTextName column using CONTAINSTABLE. It works, however
>> I don't know how to search by suffix - when the user types "office" he's
>> unable to find "OpenOffice". I've come up with the idea of storing
>> another column with reversed Name, but then the Version column is causing
>> some further problems...
>>
>> Could anyone give me some hints about how to do it so that it will work
>> fine? Smile I believe Full-Text is a powerfull tool and there must be some
>> way to do it right.
>>
>> Thank you very much for any suggestions and comments.
>>
>> Regards,
>> Wojciech
>
 >> Stay informed about: Searching by suffix, columns with dots and digits 
Back to top
Login to vote
hilary

External


Since: Dec 19, 2009
Posts: 1



(Msg. 4) Posted: Sat Dec 19, 2009 8:13 am
Post subject: Re: Searching by suffix, columns with dots and digits [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

AFAIK - that is the best way.

"Wojciech Kowasz" wrote in message

> Personally I do not use OpenOffice, but unfortunately have some users that
> need to search for it Wink
>
> So, I'm going to do it that way: first, do a "normal" search, then do a
> "reversed" search and then select distinct from both results. I'm afraid
> there is no better way to do it than two separate queries?
>
> Thanks,
> Wojciech
>
> "Hilary Cotter" wrote in message
>
>> First off - what are you doing using OpenOffice;) This is an MS platform
>> for gosh sakes.
>>
>> Secondly searching on Open* should return hits to OpenOffice.
>>
>> You can't search on suffixes. This might ship in another version of the
>> product as it is a frequently demanded feature.
>>
>> Most of the time when I have to search on suffixes I do the reverse trick
>> you mention.
>>
>>
>> "Wojciech Kowasz" wrote in message
>>
>>> Hello,
>>>
>>> I have an ASP.NET application and SQL Server 2008 Web backend. I use
>>> full-text catalog for searching and I'm looking for some advices.
>>>
>>> The FT-indexed data table stores programs names and versions. It
>>> consists of several columns: varchar(50) Name (like "OpenOffice") and
>>> varchar(50) Version (like "2.0"). I would like to be able to search both
>>> by name and name+version. For example, the search results should contain
>>> OpenOffice 2.0 after querying for "openoffice" or "openoffice 2.0". It
>>> should also search by prefix (OpeOffice 2.0 should come up after
>>> searching for "open") and suffix (searching for "office").
>>>
>>> Now to partially accomplish that scenario I have another column called
>>> FullTextName and it stores Name and Version values combined without the
>>> dots (e.g. "OpenOffice 20"). When the user types "openoffice 2.0" in the
>>> search box, I add the asterisks, divide it to '"openoffice *" AND "20
>>> *"' and search in FullTextName column using CONTAINSTABLE. It works,
>>> however I don't know how to search by suffix - when the user types
>>> "office" he's unable to find "OpenOffice". I've come up with the idea of
>>> storing another column with reversed Name, but then the Version column
>>> is causing some further problems...
>>>
>>> Could anyone give me some hints about how to do it so that it will work
>>> fine? Smile I believe Full-Text is a powerfull tool and there must be some
>>> way to do it right.
>>>
>>> Thank you very much for any suggestions and comments.
>>>
>>> Regards,
>>> Wojciech
>>
 >> Stay informed about: Searching by suffix, columns with dots and digits 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
searching across multiple columns - Hi I've seen lots of posts on this subject but no satisfactory answers. I asked the question in 2004 before SQL 2005 arrived so I wondered if there is a neat solution to this problem now. I want a way to get return one row from the query below. ..

Searching not working - The service says it is working/running on my server. And my list, in the content settings, I have allow searching. But, when I attempt to search, nothing appears in the search. Any ideas?

Can Full Text Searching do this???? - 1. Create a robust search engine able searching of information across all types of content. 2. Support Open Search specification 3. content indexer applying A-Z indexing model and establish keyword metadata references. 4. performs naive Bayes..

Indexing (and searching for) percentages - Hi, I have got the following text in a column that is part of a full-text index (SQL Server 2005): Lorem 7% ipsum I understand that by default both the number 7 and the % character are ignored, the former being a noise word, the latter being a..

MULtiple columns search using Containstable. - I have atable called Books and contains following columns all varchar(2000) columns. Title,Comments,Reference,PLaceprinted etc. I want to search all these columns. for key word(s) entered by user. if user enters in a key word(s) GUI field e.g: "...
   Database Help (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 ]