You are here: Re: newbie: Can results from "Contains" be ranked? « MsSQL Server « IT news, forums, messages
Re: newbie: Can results from "Contains" be ranked?

Posted by Simon Hayes on 09/27/55 11:16

"woody" <shellymatthys@yahoo.com> wrote in message
news:1116520901.938978.137540@z14g2000cwz.googlegroups.com...
>I was expecting results from a Contains clause to return better hits
> first. Am I off base?
>
> Example Table:
>
> Title
> -----
> red house
> green house
> red green house
>
> searching with Contains(' "red" or "green" or "house" '), I would
> expect the last row to show up first since it contains all three. Not
> the case.
>
> Is containstable the only way to get ranked results?
>
> All input is appreciated.
>

Books Online specifically says that if you require ranking, you should use
CONTAINSTABLE, so I would assume there's no (easy) way to do this with
CONTAINS. If this isn't helpful, you might try posting in
microsoft.public.sqlserver.fulltext - it would probably be useful to give
some extra details of what you're trying to do, why you don't want to use
CONTAINSTABLE etc.

Simon

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация