summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/expected
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2004-06-28 16:19:09 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2004-06-28 16:19:09 +0000
commitbb89237531439816c3f8d59b7b1891735e5f1f47 (patch)
treeafe5ab2775f14d1cd7652f38f909ba9ca15ced56 /contrib/tsearch2/expected
parente48cfacb8414231db82dc930995492085a260fc7 (diff)
downloadpostgresql-bb89237531439816c3f8d59b7b1891735e5f1f47.tar.gz
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
Diffstat (limited to 'contrib/tsearch2/expected')
-rw-r--r--contrib/tsearch2/expected/tsearch2.out37
1 files changed, 33 insertions, 4 deletions
diff --git a/contrib/tsearch2/expected/tsearch2.out b/contrib/tsearch2/expected/tsearch2.out
index fb836c087a..93fc11dad1 100644
--- a/contrib/tsearch2/expected/tsearch2.out
+++ b/contrib/tsearch2/expected/tsearch2.out
@@ -458,20 +458,20 @@ select * from parse('default', '345 qwe@efd.r \' http://www.com/ http://aew.werc
12 |
1 | asdf
12 |
- 13 |
+ 13 | <fr>
1 | qwer
12 |
1 | jf
12 |
1 | sdjk
- 13 |
+ 13 | <we hjwer <werrwe>
12 |
3 | ewr1
12 | >
12 |
3 | ewri2
12 |
- 13 |
+ 13 | <a href="qwe<qwe>">
12 |
19 | /usr/local/fff
@@ -515,7 +515,7 @@ select * from parse('default', '345 qwe@efd.r \' http://www.com/ http://aew.werc
22 | 234
12 |
- 13 |
+ 13 | <i <b>
12 |
1 | wow
12 |
@@ -2130,6 +2130,35 @@ A thousand years to trace
The granite features of this cliff
(1 row)
+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 &nbsp;</a>
+ff-bg
+<script>
+ document.write(15);
+</script>
+</body>
+</html>',
+to_tsquery('sea&foo'), 'HighlightAll=true');
+ headline
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+<html>
+<!-- some comment -->
+<body>
+<b>Sea</b> view wow <u><b>foo</b> bar</u> <i>qq</i>
+<a href="http://www.google.com/foo.bar.html" target="_blank">YES &nbsp;</a>
+ ff-bg
+<script>
+ document.write(15);
+</script>
+</body>
+</html>
+(1 row)
+
--check debug
select * from ts_debug('Tsearch module for PostgreSQL 7.3.3');
ts_name | tok_type | description | token | dict_name | tsvector