Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using SharePoint 2013 and have links on the home page such as (Tax, Assurance, Advisory). Does anyone know how I can in SP 2013 use one search page but filter out the results depening on the link that was clicked (Tax, Assurance, Adivsory). I tried QueryParameter in query builder but that seems to be broken (Doesnt work with refinements)? Any ideas?

Thanks.

share|improve this question
    
I know how to construct a URL paired to a filter in 2010, but won't re-hash that if you're saying you know it to not work in 2013. –  bkwdesign Apr 23 '13 at 16:20

1 Answer 1

Without knowing your site structure or the structure of the data, the only reliable way would be to create custom Search Scopes and configure them to include only the desired content for those specific categories. You would then add the proper scope to the querystring when building the link.

A possible alternative is available if the desired filter can be configured as a Refiner then it is just a matter of adding that to the querystring using the refiner syntax. However, this option depends heavily on the nature and structure of the data as not all field types can be used in refiner filters.

share|improve this answer
    
Thanks for the response Dave, SP2013 doesnt have Search Scopes like 2010. I looked at "Results Sources" which replaces Search Scopes and it does have a QueryString parameter to filter by but its doesnt work with refiners. The problem is the Query String parameter uses the old style syntex ?Parm1=Val1&Parm2=Val2, etc... But when used with refiners SP puts a JSON structure in the URL so its breaks :( –  NYTom Apr 23 '13 at 17:45
    
The mechanics have changed a little but the functionality is still there. Perhaps this might help : blogs.technet.com/b/mspfe/archive/2013/02/01/… –  Dave Wise Apr 23 '13 at 17:51
    
Dave I followed you suggestion by using result blocks. The problem is SP limits the amount of items in a result block to a maximum of 10. Which wont help since the results will contain more then 10 items. Maybe creating a custom web part is my only option. –  NYTom Apr 23 '13 at 18:42
    
If you edit the Search Results page, the number of items per page is a setting on the web part itself. It can be set to anything but I think it has an internal limit of 50 items per page –  Dave Wise Apr 23 '13 at 19:28
    
Yes your correct, but a result block cant return more then 10 results overall regardless of the web part setting. –  NYTom Apr 23 '13 at 19:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.