Re: ts_count
| От | Andrew Dunstan |
|---|---|
| Тема | Re: ts_count |
| Дата | |
| Msg-id | 4DEAC3A3.1080309@dunslane.net обсуждение исходный текст |
| Ответ на | Re: ts_count (Oleg Bartunov <oleg@sai.msu.su>) |
| Список | pgsql-hackers |
On 06/04/2011 04:51 PM, Oleg Bartunov wrote: > Well, there are several functions available around tsearch2. so I suggest > somebody to collect all of them and create one extension - ts_addon. > For example, these are what I remember: > 1. tsvector2array > 2. noccurences(tsvector, tsquery) - like your ts_count > 3. nmatches(tsvector, tsquery) - # of matched lexems in query > Of course, we need to think about better names for functions, since > ts_count is a bit ambiguous. > > Getting agreed names was one reason for posting. I don't know why these need to be an extension. I think they are of sufficiently general interest (and sufficiently lightweight) that we could just build them in. cheers andrew
В списке pgsql-hackers по дате отправления: