How to add condition in TermFacet.
.TermsFacetFor(x => x.ModelYears.SearchTerm, x => x.Size = TermsCount)
How to write condition like (x => x.ModelYears.SearchTerm.where(y=>year.any(c=>x.Endswith(y))
I need only xxx-2001 in FacetTerm.
Please Help me out,
What if you create another ModelYears field which only contains Year instead of xxx-Year or yyy-Year.
You can then index this computed field and use TermsFacetFor on it.
Here's a link to include computed fields in Episerver: