Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npgsql.PostgresException: function mt_grams_vector(character varying) does not exist error when using NGramIndex with a db schema #2835

Closed
mysticmind opened this issue Dec 2, 2023 · 0 comments

Comments

@mysticmind
Copy link
Member

mysticmind commented Dec 2, 2023

A simple example using NgramIndex with non-public db schema throws Npgsql.PostgresException: function mt_grams_vector(character varying) does not exist error

options.Schema.For<OrganizationDetail>()
    .NgramIndex(x => x.Name);

Note: Raised by Jay Zahiri in Discord. https://discord.com/channels/1074998995086225460/1074999076896112661/1180171331677986837 and https://discord.com/channels/1074998995086225460/1074999076896112661/1180175625168879616

This was also raised in comments #2304 (comment) and #2304 (comment).

@mysticmind mysticmind self-assigned this Dec 2, 2023
mysticmind added a commit that referenced this issue Dec 2, 2023
- Add fix to NGramIndex to include the schema name for mt_grams_vector index definition
- Update unit tests to use NGramIndex
- Update sameple to include usage of NGramIndex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant