Re: Full Text Search - Slow on common words

Поиск
Список
Период
Сортировка
От Reid Thompson
Тема Re: Full Text Search - Slow on common words
Дата
Msg-id 7C0800F63CCF4149AC0FC5EE2A041226D52386@sr002-2k3exc.ateb.com
обсуждение исходный текст
Ответ на Full Text Search - Slow on common words  (sub3 <steve@subwest.com>)
Ответы Re: Full Text Search - Slow on common words  (Dann Corbit <DCorbit@connx.com>)
Список pgsql-general

On Thu, 2010-10-28 at 12:08 -0700, sub3 wrote:
> Hi,
>
> I have a small web page set up to search within my domain based on keywords.
> One of the queries is:
>   SELECT page.id ts_rank_cd('{1.0, 1.0, 1.0, 1.0}',contFTI,q) FROM page,
>     to_tsquery('steve') as q WHERE contFTI @@ q
>
> My problem is: when someone puts in a commonly seen word, the system slows
> down and takes a while because of the large amount of data being returned
> (retrieved from the table) & processed by the rand_cd function.
>
> How does everyone else handle something like this?  I can only think of 2
> possible solutions:
> - change the query to search for the same terms at least twice in the same
> document (can I do that?)
> - limit any searches to x results before ranking & tell the user their
> search criteria is too generic.
>
> Is there a better solution that I am missing?
>

if the keyword is that common, is it really a keyword?  Exclude it.

В списке pgsql-general по дате отправления:

Предыдущее
От: sub3
Дата:
Сообщение: Full Text Search - Slow on common words
Следующее
От: Daniel.Crespo@l-3com.com
Дата:
Сообщение: Re: How to merge data from two separate databases into one (maybe using xlogs)?