-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Rewrite query to achieve full text search using EF Core #4119
Comments
Maybe it should be supported via SqlServer provider via extension method for DbContext? |
We have #1590 tracking proper support for full text search. In the meantime, the best way to do this is with Here is an example that is using a TVF with full text search and then composing on the query with LINQ https://github.com/rowanmiller/UnicornStore/blob/master/UnicornStore/src/UnicornStore/Controllers/ShopController.cs#L92 |
come on, why would I use |
BTW @Ashish225 the http://www.entityframework.info/Home/FullTextSearch is dead |
@rowanmiller How would the suggestion to use |
Hello,
I am developing MVC6 application with EF7, I want to use full text search(SQL server feature). full text feature requires special type of query with 'CONTAINS' or 'FREETEXT' keyword. For more details see this
EF does not generate query that is supported by full text search. that is why I need to rewrite query before it goes to execution to SQL Server. Previously with EF6 I was using Interception to rewrite the query. See example here.
I have noticed that IDbCommandInterceptor interface is removed from EF7. So, I need to find out way for EF7. I have seen there are many classes to handle raw SQL functionality in DI. we might need put something on DI? (see attached picture)
I have also considered RelationalCommand and SqlStatementExecutor. RelationalCommand has similar functionality. we want to customize it to rewrite query.
Any solution to achieve this goals?
Thank you,
Ashish
The text was updated successfully, but these errors were encountered: