Skip to content

Obsolete full-text-search client-side parsing #4946

Closed

Description

@roji

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

  1. added this to the 8.0.0 milestone on Feb 24, 2023
  2. payoff commented on Feb 24, 2023

    @payoff

    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.

    For example, SELECT to_tsvector('rats') returns rat (normalized to singular), whereas NpgsqlTsVector.Parse("rats") returns rats.

    Furthermore, the implementation is partial and incorrect, as evidenced.

  3. changed the title [-]Consider removing full-text-search client-side parsing[/-] [+]Obsolete full-text-search client-side parsing[/+] on Nov 13, 2023
  4. self-assigned this
    on Nov 13, 2023
  5. added 4 commits that reference this issue on Nov 13, 2023
    32f43a0
    b4b9818
    e422b87
    3c837ef
  6. added a commit that references this issue on Feb 12, 2024
    dfa5c16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions