diff options
| author | Teodor Sigaev <teodor@sigaev.ru> | 2004-06-28 16:19:09 +0000 |
|---|---|---|
| committer | Teodor Sigaev <teodor@sigaev.ru> | 2004-06-28 16:19:09 +0000 |
| commit | bb89237531439816c3f8d59b7b1891735e5f1f47 (patch) | |
| tree | afe5ab2775f14d1cd7652f38f909ba9ca15ced56 /contrib/tsearch2/ts_cfg.c | |
| parent | e48cfacb8414231db82dc930995492085a260fc7 (diff) | |
| download | postgresql-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/ts_cfg.c')
| -rw-r--r-- | contrib/tsearch2/ts_cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/ts_cfg.c b/contrib/tsearch2/ts_cfg.c index efd79a1e32..4e0a0bb904 100644 --- a/contrib/tsearch2/ts_cfg.c +++ b/contrib/tsearch2/ts_cfg.c @@ -510,7 +510,7 @@ genhl(HLPRSTEXT * prs) ptr = ((char *) out) + dist; } - if (wrd->in && !wrd->skip && !wrd->repeated) + if (wrd->in && !wrd->repeated) { if (wrd->replace) { @@ -532,7 +532,7 @@ genhl(HLPRSTEXT * prs) ptr += prs->stopsellen; } } - } + } else if (!wrd->repeated) pfree(wrd->word); |
