Hi folks,
I have built a custom search box + search results page using KeywordQuery. I am successfully able to query SharePoint and get the required results. But not able to get the refinement working (for OOTB as well as custom managed properties).
I came across some links where it says refinement is only available for FAST search using customization, but did not find any official statement.
My logic - I am doing this the way SharePoint does, based on the URL query string(s), where -
k = search query
s = scope
r = selected refinement
I tried using below line, but it does not return any results.
keywordQuery.Refiners = "author";
keywordQuery.RefinementFilters.Add("author=\"USER NAME\"");
If any of you have came across such scenario or have any ides, please help.