Skip to content

Releases: daniel3303/ParadeDbEntityFrameworkCore

v1.1.0

17 Mar 16:13
795fe57

Choose a tag to compare

What's New

JSON Query Builder & @@@ Operator Translation

Adds full LINQ support for ParadeDB's @@@ operator with JSON query syntax, eliminating the need for raw SQL when building complex boolean queries.

New classes:

  • ParadeDbJsonQuery — 20 factory methods: Parse, Term, TermSet, Match, FuzzyTerm, Phrase, Range, Boolean, Boost, ConstScore, Exists, All, DisjunctionMax, MoreLikeThis, and more
  • ParadeDbBooleanQuery — fluent builder for must/should/must_not clauses
  • ParadeDbSearchExtensions — IQueryable extensions: JsonSearch, OrderByScoreDescending, OrderByScore

New EF.Functions method:

  • JsonSearch(keyField, jsonQuery) → translates to keyField @@@ 'json'::pdb.query

Usage:

dbContext.Chunks
    .JsonSearch(c => c.Id, b => b
        .Must(
            ParadeDbJsonQuery.Parse("revenue growth"),
            ParadeDbJsonQuery.Term("DocumentId", documentId),
            ParadeDbJsonQuery.Term("DocumentType", 10)))
    .OrderByScoreDescending(c => c.Id)
    .Take(5)
    .ToListAsync();

CI & Code Coverage

  • Added GitHub Actions CI workflow with tests on push/PR
  • Added Codecov integration for code coverage tracking