{"id":24495254,"url":"https://github.com/joymoe/pgroonga.entityframeworkcore","last_synced_at":"2025-04-14T02:52:15.619Z","repository":{"id":56298416,"uuid":"163095358","full_name":"JoyMoe/PGroonga.EntityFrameworkCore","owner":"JoyMoe","description":"PGroonga extension for Npgsql.EntityFrameworkCore.PostgreSQL (PostgreSQL / Npgsql Entity Framework Core provider). It enable the ability to do full text search, especially Chinese, Japanese, and so on, with EntityFramework Core, PostgreSQL and Groonga.","archived":false,"fork":false,"pushed_at":"2023-01-04T05:58:17.000Z","size":298,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-27T16:55:53.355Z","etag":null,"topics":["dotnet","entity-framework-core","full-text-search","groonga","npgsql","pgroonga","postgres","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoyMoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-25T15:57:30.000Z","updated_at":"2024-06-21T17:55:15.000Z","dependencies_parsed_at":"2023-02-02T00:01:24.091Z","dependency_job_id":null,"html_url":"https://github.com/JoyMoe/PGroonga.EntityFrameworkCore","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoyMoe%2FPGroonga.EntityFrameworkCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoyMoe%2FPGroonga.EntityFrameworkCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoyMoe%2FPGroonga.EntityFrameworkCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoyMoe%2FPGroonga.EntityFrameworkCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoyMoe","download_url":"https://codeload.github.com/JoyMoe/PGroonga.EntityFrameworkCore/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813827,"owners_count":21165631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","entity-framework-core","full-text-search","groonga","npgsql","pgroonga","postgres","postgresql"],"created_at":"2025-01-21T20:19:33.627Z","updated_at":"2025-04-14T02:52:15.600Z","avatar_url":"https://github.com/JoyMoe.png","language":"PowerShell","readme":"# PGroonga.EntityFrameworkCore\n\n[PGroonga](https://pgroonga.github.io) extension for [Npgsql.EntityFrameworkCore.PostgreSQL](https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL) (PostgreSQL / Npgsql Entity Framework Core provider). It enable the ability to do full text search, especially Chinese, Japanese, and so on, with EntityFramework Core, PostgreSQL and Groonga.\n\n![postgresql](postgresql.png)![pgroonga](pgroonga.png)\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/JoyMoe/PGroonga.EntityFrameworkCore/build)](https://github.com/JoyMoe/PGroonga.EntityFrameworkCore/actions?query=workflow%3Abuild)\n[![Codecov](https://img.shields.io/codecov/c/gh/JoyMoe/PGroonga.EntityFrameworkCore)](https://codecov.io/gh/JoyMoe/PGroonga.EntityFrameworkCore)\n[![License](https://img.shields.io/github/license/JoyMoe/Base62.Net.svg)](https://github.com/JoyMoe/Base62.Net/blob/master/LICENSE)\n[![NuGet](https://img.shields.io/nuget/v/PGroonga.EntityFrameworkCore.svg)](https://www.nuget.org/packages/PGroonga.EntityFrameworkCore)\n[![NuGet](https://img.shields.io/nuget/vpre/PGroonga.EntityFrameworkCore.svg)](https://www.nuget.org/packages/PGroonga.EntityFrameworkCore/absoluteLatest)\n![netstandard2.0](https://img.shields.io/badge/.Net-netstandard2.0-brightgreen.svg)\n\n## Attention\n\n`EF.Functions.Pgroonga*` only works with `Npgsql.EntityFrameworkCore.PostgreSQL` \u003e= 2.2.6 and \u003e= 3.0.1 due to [aspnet/EntityFrameworkCore#13454](https://github.com/aspnet/EntityFrameworkCore/issues/13454).\n\n## Usage\n\n```csharp\npublic class ApplicationDbContext : DbContext\n{\n    // ...\n\n    protected override void OnModelCreating(ModelBuilder modelBuilder)\n    {\n        base.OnModelCreating(modelBuilder);\n\n        // ...\n\n        modelBuilder.Entity\u003cPost\u003e()\n            .HasIndex(g =\u003e g.Content)\n            .HasMethod(\"pgroonga\")\n            .HasOperators(\"pgroonga_varchar_full_text_search_ops_v2\");\n\n    }\n}\n\npublic class Startup\n{\n    // ...\n\n    public void ConfigureServices(IServiceCollection services)\n    {\n        services.AddDbContextPool\u003cApplicationDbContext\u003e(options =\u003e\n            options.UseNpgsql(Configuration.GetConnectionString(\"DefaultConnection\"),\n            builder =\u003e builder.UsePGroonga()));\n\n        // ...\n    }\n}\n\nvar posts = await _dbContext.Posts.Where(g =\u003e g.Content.SimilarSearch(q))\n    .OrderByDescending(g =\u003e EF.Functions.PgroongaScore())\n    .ToArrayAsync();\n```\n\nFor more information, see `PGroongaLinqExtensions` and `PGroongaDbFunctionsExtensions`.\n\n## Features\n\n* [x] Operators\n  * [x] ~`LIKE`~ same as PostgreSQL standard `LIKE`\n  * [x] ~`ILIKE`~ same as PostgreSQL standard `ILIKE`\n  * [x] ==== pgroonga_xxx_full_text_search_ops[_v2] ====\n  * [x] `\u0026@` Match\n  * [x] `\u0026@~` Query\n  * [x] `\u0026@*` SimilarSearch\n  * [x] `` \u0026` `` ScriptQuery\n  * [x] `\u0026@|` MatchIn\n  * [x] `\u0026@~|` QueryIn\n  * [x] ==== pgroonga_xxx_term_search_ops[_v2] ====\n  * [x] `\u0026^` PrefixSearch\n  * [x] `\u0026^~` PrefixRkSearch\n  * [x] `\u0026^|` PrefixSearchIn\n  * [x] `\u0026^~|` PrefixRkSearchIn\n  * [x] ==== pgroonga_xxx_regexp_ops[_v2] ====\n  * [x] `\u0026~` RegexpMatch\n* [x] Functions\n  * [x] `pgroonga_command`\n  * [x] `pgroonga_command_escape_value`\n  * [x] `pgroonga_escape`\n  * [x] `pgroonga_flush`\n  * [x] `pgroonga_highlight_html`\n  * [x] `pgroonga_is_writable`\n  * [x] `pgroonga_match_positions_byte`\n  * [x] `pgroonga_match_positions_character`\n  * [x] `pgroonga_normalize`\n  * [x] `pgroonga_query_escape`\n  * [x] `pgroonga_query_expand`\n  * [x] `pgroonga_query_extract_keywords`\n  * [x] `pgroonga_set_writable`\n  * [x] `pgroonga_score`\n  * [x] `pgroonga_snippet_html`\n  * [x] `pgroonga_table_name`\n  * [x] `pgroonga_wal_apply`\n  * [x] `pgroonga_wal_truncate`\n\n## License\n\nThe MIT License\n\nMore info see [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoymoe%2Fpgroonga.entityframeworkcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoymoe%2Fpgroonga.entityframeworkcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoymoe%2Fpgroonga.entityframeworkcore/lists"}