mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
1 Eliminate duplicate field HLWORD->skip
2 Rework support for html tags in parser 3 add HighlightAll to headline function for generating highlighted whole text with saved html tags
This commit is contained in:
@ -253,6 +253,20 @@ The sculpture of these granite seams,
|
||||
Upon a woman s face. E. J. Pratt (1882 1964)
|
||||
', to_tsquery('sea'));
|
||||
|
||||
|
||||
select headline('
|
||||
<html>
|
||||
<!-- some comment -->
|
||||
<body>
|
||||
Sea view wow <u>foo bar</u> <i>qq</i>
|
||||
<a href="http://www.google.com/foo.bar.html" target="_blank">YES </a>
|
||||
ff-bg
|
||||
<script>
|
||||
document.write(15);
|
||||
</script>
|
||||
</body>
|
||||
</html>',
|
||||
to_tsquery('sea&foo'), 'HighlightAll=true');
|
||||
--check debug
|
||||
select * from ts_debug('Tsearch module for PostgreSQL 7.3.3');
|
||||
|
||||
|
Reference in New Issue
Block a user