new release of contrib/tsearch V2

Started by Oleg Bartunovabout 23 years ago1 messageshackers
Jump to latest
#1Oleg Bartunov
oleg@sai.msu.su

Hi there,

we just released new version of tsearch V2. It's available for
testing form http://www.sai.msu.su/~megera/postgres/gist/

Changes:

* new function reset_tsearch() - reset all tsearch's caches on dictionary, parser and config. Useful for debugging.
* It's possible to get words statistics.
select * from stat('select txtidx_field from test_txtidx') order by ndoc desc;
For each unique word it returns:
word, number of documents with it and total number of word occurencies in indexed collection.
(getting statisctics could be very slow !)

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83