Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Googling with keywords "EPiServer Find wildcard search" then many results returned: Google search
My simple code for Unified search
var prefixFilter = Client.BuildFilter<ISearchContent>();
prefixFilter = prefixFilter.And(x =>
x.SearchTitle.PrefixCaseInsensitive(searchTerm) |
x.SearchTitle.AnyWordBeginsWith(searchTerm) |
x.SearchText.PrefixCaseInsensitive(searchTerm) |
x.SearchText.AnyWordBeginsWith(searchTerm));
This might be helpful https://world.episerver.com/forum/developer-forum/Search/Thread-Container/2019/4/prefixcaseinsensitive-for-strings-collection/
Requirement : I created an IList<Object> and each “Object” in the list has a property "Name" . I want search and get results where the Name in the Experiences class contain or start with Product.
Please can you suggest.
Example:
query.Filter(x => x.Experiences.MatchContainedCaseInsensitive(y => y.Name,"Product:*")) where * Is any characters after
Please suggest and help me.