Re: Question about fulltext search and to_tsvector function
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Question about fulltext search and to_tsvector function |
| Дата | |
| Msg-id | 7565.1224214645@sss.pgh.pa.us обсуждение |
| Ответ на | Question about fulltext search and to_tsvector function (Mike Christensen <imaudi@comcast.net>) |
| Ответы |
Re: Question about fulltext search and to_tsvector function
|
| Список | pgsql-general |
Mike Christensen <imaudi@comcast.net> writes:
> Okay this one's driving me crazy.
> Should there be any difference between the following queries:
> SELECT R.Title FROM Recipes R
> WHERE (to_tsvector('english', title || description) @@
> plainto_tsquery('Cake'));
> and
> SELECT R.Title FROM Recipes R
> WHERE (to_tsvector('english', description || title) @@
> plainto_tsquery('Cake'));
Maybe it would be better to do description || ' ' || title ?
I suspect that 'Cake' is getting run together with some other
word in some of your rows ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера