AI OnAI Off
Yup. You can simple use Filter<T>:
.Filter<YourInterface>(x => x.YourBool.Match(true))
The doesn't seem to work as the unified search is ISearchContent and can't convert the type to my interface or any of the model types.
I've tried a driect cast .Filter(x => ((SitePage) x).IsVideoPage.Match(true)); which isn't erroring but it's also not matching on true values.
The object casts never actually happens when the code is executed. The way the Find API works, it will only look at the property name, and then pass that on to the rest api.
So it should work to use the Filter<T>. It should also work with the direct cast. Could you post your complete query?
Hi guys,
I have an existing search that uses the unified search and I have added an iterface to a few page models that exposed a boolean property. I want the unified search to filter to show only types implementing this interface where the boolean is true. Can I do this without having to have 2 search methind one to unifieid and one to Search?
Thanks, Scott