powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / full-text search : containstable , rank ! help pls
2 сообщений из 2, страница 1 из 1
full-text search : containstable , rank ! help pls
    #32021773
Olga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
пишу приложение для поисковой системы - все строю в dynamic SP
использую containstable с weights для разных частей фразы

вопрос такой : меня не устраивает как sql считает rank (он основывается на статистике )
а мне надо если фраза встречается целиком в тексте - пусть будет высший rank
чем если только отдельные слова

как это обойти ?????????

помогите !!!!
...
Рейтинг: 0 / 0
full-text search : containstable , rank ! help pls
    #32021814
Glory
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Сразу оговорюсь, что я не специалист по настройке full-text search, но разве этот пример из BOL не про вашу ситуацию ?

"Searching for Words or Phrases Using Weighted Values (Weighted Term)
You can search for words or phrases and specify a weighting value. Weight, a number from 0.0 through 1.0, indicates the degree of importance for each word and phrase within a set of words and phrases. A weight value of 0.0 is the lowest value available, and a weight value of 1.0 is the highest available value. For example, this query searches for all customer addresses, using weight values, in which any text beginning with the string "des" is near either Rue or Bouchers. Microsoft® SQL Server™ gives a higher rank to those rows with more of the words specified. Therefore, SQL Server gives a higher rank to a row with des Rue Bouchers than to a row with des Rue.

USE Northwind
GO
SELECT CompanyName, ContactName, Address
FROM Customers
WHERE CONTAINS(Address, 'ISABOUT ("*des*", Rue WEIGHT(0.5), Bouchers WEIGHT(0.9) ) ' )
GO
"

BOL - Accessing and Changing Relational Data - Full-text Search - Full-text Querying SQL Server Data - Using the CONTAINS Predicate - Searching for Words or Phrases Using Weighted Values (Weighted Term)
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / full-text search : containstable , rank ! help pls
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]