| От | Rob Nikander |
|---|---|
| Тема | querying both text and non-text properties |
| Дата | |
| Msg-id | BE65D660-2C05-47A3-8A0B-6D33DDE71826@gmail.com обсуждение |
| Ответы |
Re: querying both text and non-text properties
|
| Список | pgsql-general |
Hi, I’ve got an application where I’d like to search a collection of objects based on various properties, some text and othersnon-text (bools, enums, ints, etc). I’ve used full text search before, following the PG docs to set up a index on ats_vector. And of course I’ve used normal indexes before for accelerating basic queries that use non-text columns. Any recommendations on combining the two? For example, if I search for objects where the description text matches [some ts_query]and the color = red, I can imagine putting the color property into the text index somehow - maybe with tokens like:’color_red’, ‘color_blue’, but for something like an integer … ? Rob
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера