Vulnerability in EPiServer.Forms
Is there a way to lower the weighting of an entire page type?
We're using a TypeSearch for a base page type, but would like to deprioritize (lower) one of it's grandchildren. There are hundreds of pages of this type, and we're worried about it throwing off searches for other content.
I think you can use "Boosting" here and apply a lower boost value for your page type-
.BoostMatching(x => x.MatchType(typeof(TestPage)),2)
Thank you for taking the time to reply.
I meant to add this here, I ended up doing this and it worked:
.BoostMatching(page => page.ContentTypeName().AnyWordBeginsWith("TEST"), 0.1)
This is doing the trick and moving all of the matching page types far down the list.