Result in a searchTermStartsWith with the same value as sr.SearchTerm. The .Value of the ExamineValue is just the string, but the other properties set on the ExamineValue, describes how the value should be treated.
var searchTermStartsWith = sr.SearchTerm.MultipleCharacterWildcard();
Umbraco 8 multiple wildcard examine is not working.
string searchTerm = sr.SearchTerm;
string searchTermStartsWith = sr.SearchTerm.MultipleCharacterWildcard().Value;
IBooleanOperation term = query.Field("excludeFromSearchResults", "0").And() .GroupedOr(searchProperties, searchTerm).Or() .GroupedOr(searchProperties, searchTermStartsWith);
I am trying to get the multiple wild card to return all items that start with the search term. In Umbraco 8 this is not working, Any clues?
Thanks.
Hi Danny,
The reason it's not working is that your line
Result in a searchTermStartsWith with the same value as sr.SearchTerm. The
.Value
of the ExamineValue is just the string, but the other properties set on the ExamineValue, describes how the value should be treated.should be the solution
HTH :)
is working on a reply...