Smart Search Filter Values sourced from its Smart Search Results

Jeff Torririt asked on November 22, 2018 03:28

I'm new in using Kentico and I would like to know how to source the Smart Search Filter values from its Smart Search Results.


Recent Answers

Eric Dugre answered on November 26, 2018 20:52

It seems like you want to set up faceted search results which is something you can set up with Azure Search as described here:

If you'd like to do this with local Smart Search indexes, it would most likely require a custom web part based on the out-of-box Smart Search Filter web part. The system stores search results in SearchContext.CurrentSearchResults, so you can check the results in your custom code and display the filtering options you'd like.

It may even be possible to accomplish this by placing a custom macro method in the out-of-box Smart Search Filter web part's Values property, which uses SearchContext.CurrentSearchResults to generate the filter options. I haven't tested this and there might be some issue with the page/control lifecycle.

0 votesVote for this answer Mark as a Correct answer

Jeff Torririt answered on December 3, 2018 03:35

Hi Eric,

How do you use SearchContext.CurrentSearchResults in the web part's Value property. I'm sorry, I'm really new with Kentico


0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.