How do you write your query? Not a Find expert but I think you need to use MatchContained for your property
Hey Quan,
Authors wanted to see the output in CMS search from the nav top bar (in the edit screen of CMS) and not by code.
Thanks,
Rams
I just testet with an IList<T> property on mediafiles. The content of IList<T>-properties are not searchable for mediafiles either.
I tested both in the top navigation, and the search bar in assets pane.
It's expected, unfortunately. What you can try is to implement your search provider, extends EnterpriseContentSearchProviderBase, and make sure that you use MatchContained for your property. You likely can do that in AddContentSpecificFields
The top navigation search and assets pane search will search the properties Name and SearchText.
The easiest will be adding a property named SearchText to your AccordionTest class, and include your accordion items.
public string SearchText => this.SearchText() + " " +
string.Join(", ", AccordionItems?.Select(x => x.AccordionTitle + " " + x.AccordionContent?.ToHtmlString(PrincipalInfo.AnonymousPrincipal)) ?? Enumerable.Empty<string>())
Thanks Tomas, that did the trick. But eventually, we ended up doing the implementation as mentioned in this blog https://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2016/1/episerver-find-index-blocks-in-xhtmlstring/ as the requirement got changed for the entire system.
Hi,
We have an implementation where accordion items can be added as IList. The issue we are having is when the IList items are added to Html Editor, we can see the content as AsViewedByAnonymous in Index. But the search from CMS does not bring the content back where the keyword is part of IList as shown below. We are using Epi Find API version 13.2.6.0.
Any ideas why this is happening and ways to make the content appear on CMS Search?
Thanks,
Rams