Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Setting Criteria in PageSearch

Vote:
 
We have dynamic property "SectionName" set for pages. We want to filter search results by this property. It is added to the PageSearch as a criteria as follows Dim crit As PropertyCriteria = New PropertyCriteria crit.StringCondition = Filters.StringCompareMethod.Contained crit.Type = PropertyDataType.String crit.Name = "SectionName" crit.Value = "main" crit.Required = True PageSearch1.Criterias.Add(crit) PageSearch1.SearchQuery = "search string" PageSearch1.DataBind() The search results take no account of the criteria. The search above returns pages with "SectionName" property set to "tools" or "articles" as well as "main". It appears that the criteria is ignored in the search results. How should search criteria be used in the PageSearch control
#12577
Apr 05, 2006 13:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.