Text Search zero padding

Поиск
Список
Период
Сортировка
От Richard Greenwood
Тема Text Search zero padding
Дата
Msg-id ae9185aa0802281940v23754426y39fac4c62e3c72f6@mail.gmail.com
обсуждение исходный текст
Ответы Re: Text Search zero padding
Re: Text Search zero padding
Список pgsql-general
I am using text search across multiple columns. Two of the columns
have values that have zero padding - sort of. The values look like
R0001234 (1 char followed by 7 digits, zero padded). Users are
accustom to searching with and without the zero padding (entering
R0001234 or R1234 should return identical results). This is easy to
accommodate when parsing user input for a single column, but text
searching across multiple columns it is harder determine if a
char/digit group should be padded.

So far my best idea is to create a tsvector column containing both
padded and non-padded versions of the value. i.e. put both R1234 and
R0001234 into the tsvector column. This seems pretty brute force, and
I am pretty new to text search, so I'd welcome any suggestions.

Thanks,
Rich

--
Richard Greenwood
richard.greenwood@gmail.com
www.greenwoodmap.com

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

Предыдущее
От: Tim Rupp
Дата:
Сообщение: rule question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Text Search zero padding