Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to use refinement with custom search code in SharePoint 2010

$
0
0

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.


Viewing all articles
Browse latest Browse all 11571

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>