How do I filter a search result based on the values of a given property?
Versions:
n/a,
FAQ number:
10,
Old FAQ number: 928
Q: How do I filter a search result based on the values of a given property?
A: The simplest way is to use a standard-filter in EPiServer, the following code shows how to filter a search result. At first it excludes every page except the ones that have been modified by a user named Eva, then it will sort the result by the published date in chronological order. The code is to be put in the Page_Load() event before DataBind().
(The Filters namespace used below can be found in the EPiServer namespace)