You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We received a user complaint about NpgsqlTsVector.Parse not accepting a configuration argument; that function mimics the PG to_tsvector, which parses a text into a tsvector, optionally given a configuration ("language").
Unless I'm mistaken, this is another case of old Npgsql code which attempts to duplicate complex PostgreSQL functionality, although it's not possible to do so. PG's to_tsvector consults language-specific dictionaries to normalize lexemes (e.g. plural->singular), which is something that Npgsql can never do. For example, SELECT to_tsvector('rats') returns rat (normalized to singular), whereas NpgsqlTsVector.Parse("rats") returns rats.
Activity
payoff commentedon Feb 24, 2023
I agree that this code should be removed. The behavior of the client should not be to replicate the server's activities, but rather to utilize them.
Furthermore, the implementation is partial and incorrect, as evidenced.
[-]Consider removing full-text-search client-side parsing[/-][+]Obsolete full-text-search client-side parsing[/+]Remove obsoletions
Remove obsoletions
Remove obsoletions
Remove obsoletions
Remove obsoletions (npgsql#5393)