diff --git a/contrib/tsearch/morph.c b/contrib/tsearch/morph.c index 4394448737..3acbef9862 100644 --- a/contrib/tsearch/morph.c +++ b/contrib/tsearch/morph.c @@ -173,6 +173,10 @@ lemmatize(char *word, int *len, int type) /* word is stopword */ return NULL; } + else if (nd == BYLOCALE) + { + continue; /* no dict for current locale */ + } else { dict = &dicts[nd];