You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use linq pretty heavily to generate dynamic queries, so it would be great if there was a way to call FullTextContains, FullTextContainsAll, FullTextContainsAny etc. from linq.
The text was updated successfully, but these errors were encountered:
…y as LINQ extension method (#4980)
# 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:
```csharp
// 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
- [x] New feature (non-breaking change which adds functionality)
## Closing issues
#4941
To automatically close an issue: closes #IssueNumber
---------
Co-authored-by: leminh98 <[email protected]>
We use linq pretty heavily to generate dynamic queries, so it would be great if there was a way to call FullTextContains, FullTextContainsAll, FullTextContainsAny etc. from linq.
The text was updated successfully, but these errors were encountered: