mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +03:00
Fix ts_rank_cd() to ignore stripped lexemes
Previously, stripped lexemes got a default location and could be considered if mixed with non-stripped lexemes. BACKWARD INCOMPATIBILITY CHANGE
This commit is contained in:
@@ -658,8 +658,9 @@ get_docrep(TSVector txt, QueryRepresentation *qr, int *doclen)
|
||||
}
|
||||
else
|
||||
{
|
||||
dimt = POSNULL.npos;
|
||||
post = POSNULL.pos;
|
||||
/* ignore words without positions */
|
||||
entry++;
|
||||
continue;
|
||||
}
|
||||
|
||||
while (cur + dimt >= len)
|
||||
|
Reference in New Issue
Block a user