|
PostgreSQL: Features new in 7.4: Full text indexing
- Not supported in vanilla installation
- tsearch2 module in contrib/
- Sophisticated implementation including:
- Indexing mechanism which strips punctuation, common words, plurals, other pollutants
- Stop words, default and user defined dictionaries
- Ranking
- Support for AND/OR/NOT operators
=# SELECT * FROM finddoc('passage|crawl')
id | headline | rank
----+-------------------------------------------------------+------
3 | <b>crawling</b> over cobbles in a low <b>passage</b>. | 0.19
1 | <b>crawl</b> over cobbles leads inward to the west. | 0.1
4 | <b>passages</b> lead east, north, and south. | 0.1
5 | <b>crawl</b> slants up. | 0.1
7 | <b>passage</b> here is blocked by a recent cave-in. | 0.1
(5 rows)
Page 12
|