I have an existing website developped using ASP.NET MVC 3 and Entity Framework 4 querying an Sql Server 2008 database. It contains a search form with around 10 fields, and when the user clicks the submit button I dynamically create an Entity SQL request containing only the specified search fields, omitting the empty ones. It works. So far so good.
Now, the client wants a Full Text Search behavior for one of the fields. I see this request as being pretty complex because (AFAIK) :
Solutions I could think of so far :
What's the best way for daeling with this ?
Can you not just use raw sql? then you can keep the logic in your .NET code.
So, it would look something like:
string sql = "DO FULLTEXT STUFF";
MyObjectContext.ExecuteStoreQuery<MyEntity>(sql, .......);
You don't have to think about performance - this will be slow anyway because you will be replacing indexed full text search with standard string comparing on concatenated value.
There are three ways to go:
Any of this methods is not solution for performance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With