London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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.