We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expected to be able to perform a full text search using special characters.
Here is an example unit test that fails for each of these special characters, but there could be more.
[TestMethod] public void Contains_UsingSpecialCharacters_Succeeds() { foreach (string specialCharacter in new[] { "\"", "'", ")", "(", "%" }) { using (var db = new MyDbContext()) { db.Database.Log = Console.WriteLine; var text = FullTextSearchModelUtil.Contains(specialCharacter); var query = db.TestModel .Where(c => c.Name.Contains(text)) .ToList(); } } }
Any work-arounds or recommendations?
Thank you!
The text was updated successfully, but these errors were encountered:
Fixed #3
ebf464c
Add Test #4
#4 Test work with FreeText well but Contains
5bddb07
If I enter a string like '[Something]'. I get an error saying
Syntax error near '[' in the full-text search condition '(~[something])
Same issue with a string containing commas
Syntax error near ',' in the full-text search condition '(KGBV,Vinchiya,Jasdan)
@icnocop @chsword were you able to find a workaround for this?
Sorry, something went wrong.
@shyamal890 '[Something]' do not work with contains(it do not work in the T-SQL also), I think in this case, maybe try freetext
'[Something]' do not work with contains(it do not work in the T-SQL also), I think in this case, maybe try freetext
I also found the same error with these special characters: Underscore (_) Tilde (~) Caret Symbol (^)
No branches or pull requests
I expected to be able to perform a full text search using special characters.
Here is an example unit test that fails for each of these special characters, but there could be more.
Any work-arounds or recommendations?
Thank you!
The text was updated successfully, but these errors were encountered: