I have a keyword search implemented and working fine until I use spaces in the keyword. As soon as I include space in a keyword it doesn't show me any results. Here is my query.
var keywordQuery = PredicateBuilder.True<SearchResultItem>(); keywordQuery = keywordQuery.Or(item => item.ShortTitle.Contains(keyword)); keywordQuery = keywordQuery.Or(item => item.LongTitle.Contains(keyword));
I have also gone through this article https://chrisperks.co/2018/02/12/sitecore-9-contentsearch-solr-query-quirks-with-spaces-and-wildcards/, discussed the same problem, and suggests to use "StartsWith" instead of "Contains" but it didn't help.