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

Query: Adds FullTextContains, FullTextContainsAll, FullTextContainsAny as LINQ extension method #4980

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leminh98
Copy link
Contributor

@leminh98 leminh98 commented Jan 27, 2025

Pull Request Template

Description

This PR introduces three new LINQ extension methods to provide support for Full Text Search. The new methods are FullTextContains, FullTextContainsAll, and FullTextContainsAny.

Usage example:

// FullTextContains
var query = container.GetItemLinqQueryable<Items>.Where(item => item.Description.FullTextContains("bug"))
// FullTextContainsAll
var queryAll1 = container.GetItemLinqQueryable<Items>.Where(item => item.Description.FullTextContainsAll("bug"))
var queryAll2 = container.GetItemLinqQueryable<Items>.Where(item => item.Description.FullTextContainsAll("Syntax Error", "Out Of Memory", "Stack overflow"))

// FullTextContainsAny
var queryAny1 = container.GetItemLinqQueryable<Items>.Where(item => item.Description.FullTextContainsAny("bug"))
var queryAny2 = container.GetItemLinqQueryable<Items>.Where(item => item.Description.FullTextContainsAny("Syntax Error", "Out Of Memory", "Stack overflow"))

Type of change

  • New feature (non-breaking change which adds functionality)

Closing issues

#4941
To automatically close an issue: closes #IssueNumber

@leminh98 leminh98 added the auto-merge Enables automation to merge PRs label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Enables automation to merge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant