mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Distinguish between stop-word recognized in thesaurus_lexize()
This commit is contained in:
parent
c7faf45160
commit
efe1d427da
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.2 2006/06/02 15:35:42 teodor Exp $ */
|
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.3 2006/06/02 17:55:40 teodor Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* thesaurus
|
* thesaurus
|
||||||
@ -728,10 +728,11 @@ thesaurus_lexize(PG_FUNCTION_ARGS)
|
|||||||
|
|
||||||
info = findVariant( info, stored, curpos, infos, nlex);
|
info = findVariant( info, stored, curpos, infos, nlex);
|
||||||
}
|
}
|
||||||
|
} else if ( res ) { /* stop-word */
|
||||||
} else {
|
|
||||||
LexemeInfo *infos = findTheLexeme(d, NULL);
|
LexemeInfo *infos = findTheLexeme(d, NULL);
|
||||||
info = findVariant( NULL, stored, curpos, &infos, 1);
|
info = findVariant( NULL, stored, curpos, &infos, 1);
|
||||||
|
} else {
|
||||||
|
info = NULL; /* word isn't recognized */
|
||||||
}
|
}
|
||||||
|
|
||||||
dstate->private = (void*)info;
|
dstate->private = (void*)info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user