AI OnAI Off
You can add a SearchSection() extension method for WebContent.
"By having a property or extension method with the same name and type as a property in the interface, the property is treated as if it were received from the interface."
http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/9/DotNET-Client-API/Searching/Unified-search/
We are using Episerver find to index our site (using our own type ISearchableContent) along with an external connector to crawl another site for new articles.
We then use TermsFacetFor to build a list of types that we use as filters available in our search result screen.
The issue we have is the WebCotent doesnt appear to implement all of the properties of ISearchContent, namely SearchSection which we are using for our Facets.
Any idea how we use could specify a common field for facets in both types of content? All of the fields in WebContent seem unsuitable.
Couple of Ideas I had were
- somehow force all the WebContent to have a set value for SearchSection?
- maybe use SearchSourceName in WebContent and add that to ISearchableContent but that would require the index to have a specific name which doesnt seem ideal.
Ben