Since what is a stop word and it's the only only word, Postgres ignores this query (which is ok).
When I run the query mentioned I see this in my logs:
{
severity_local: "NOTICE",
severity: "NOTICE",
code: "00000",
message: "text-search query contains only stop words or doesn't contain lexemes, ignored",
file: "tsquery_cleanup.c",
line: "406",
routine: "cleanup_tsquery_stopwords"
}
I would like to be able to get the code or message before or after executing, so I can throw an error in my code so the frontend can handle it. Thanks.
Take for example the following query (it returns an empty array):
Since
what
is a stop word and it's the only only word, Postgres ignores this query (which is ok).When I run the query mentioned I see this in my logs:
I would like to be able to get the
code
ormessage
before or after executing, so I can throw an error in my code so the frontend can handle it. Thanks.